[vtkusers] iMac build issues VTK_USE_X

Wes Turner wes.turner at kitware.com
Tue Feb 22 08:28:09 EST 2011


Just as another warning.  Once you have a program built with VTK/X support,
you will probably need to manually start your X server on the Mac before you
run your program.

- Wes

On Tue, Feb 22, 2011 at 8:20 AM, David Partyka <david.partyka at kitware.com>wrote:

> Though, digging into Slicers build system, (it builds VTK with X11 on Mac)
> this is what you need to set to do so.
>
>
> CMAKE_SHARED_LINKER_FLAGS:STRING="-Wl,dylib_file,/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib:/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib"
>
> CMAKE_EXE_LINKER_FLAGS="-Wl,-dylib_file,/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib:/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib"
>
> VTK_USE_CARBON:BOOL=OFF
> VTK_USE_COCOA:BOOL=OFF
> VTK_USE_X:BOOL=ON
>
> OPENGL_INCLUDE_DIR:PATH=/usr/X11R6/include
>
>
> On Tue, Feb 22, 2011 at 8:15 AM, David Partyka <david.partyka at kitware.com>wrote:
>
>> VTK should be able to build with X11 or Cocoa but not both. Do you require
>> X11? If not, just build with VTK_USE_COCOA set to ON and VTK_USE_X11 OFF.
>>
>>
>> On Tue, Feb 22, 2011 at 8:10 AM, Brickle Macho <michael at borck.id.au>wrote:
>>
>>> Hi All,
>>>
>>> I have managed to build VTK and run a simple program that renders a
>>> shape and writes some text to a window to convince myself that VTK is
>>> working.     Next I have attempted to build PCL+Visualization standalone
>>> which has VTK as a dependency.  When I run ccmake I get the following
>>> error as I attempt to configure makefiles:
>>>
>>> [ 73%] Building CXX object
>>>
>>> CMakeFiles/pcl_visualization.dir/src/libpcl_visualization/interactor.cpp.o
>>> In file included from
>>>
>>> /Users/brickle/Development/source/pcl-core-visualization/src/libpcl_visualization/interactor.cpp:38:
>>>
>>> /Users/brickle/Development/source/pcl-core-visualization/include/pcl_visualization/interactor.h:43:42:
>>> error: vtkXRenderWindowInteractor.h: No such file or directory
>>>
>>> I found "vtkXRenderWindowInteractor.h" in my VTK source tree and does
>>> not show up in install directory.   I assumed that I probably need to
>>> build VTK with X.  Is this a correct assumption?   I attempted to
>>> reconfigure/build VTK with the VTK_USE_X option selected and I get the
>>> following error:
>>>
>>> CMake Error at CMake/vtkTestGLX.cmake:212 (file):
>>>  file STRINGS file "/System/Library/Frameworks/OpenGL.framework/GL/glx.h"
>>>  cannot be read.
>>> Call Stack (most recent call first):
>>>  Rendering/CMakeLists.txt:482 (INCLUDE)
>>>
>>> I do have the following directory:
>>> /System/Library/Frameworks/OpenGL.framework/OpenGL but I cannot find
>>> glx.h anywhere on my system.
>>>
>>> I am not sure what to try next, should I
>>>
>>> * Build VTK to use X as well as Cocoa
>>> * Install a different OpenGL framework.
>>> * Modify PCL+Visualization CMakelist.txt (would know where to start)
>>>
>>>  Any help would be appreciated.  If you need more information please let
>>> me know.
>>>
>>> Regards,
>>>
>>> Brickle
>>> --
>>> _______________________________________________
>>> Powered by www.kitware.com
>>>
>>> Visit other Kitware open-source projects at
>>> http://www.kitware.com/opensource/opensource.html
>>>
>>> Please keep messages on-topic and check the VTK FAQ at:
>>> http://www.vtk.org/Wiki/VTK_FAQ
>>>
>>> Follow this link to subscribe/unsubscribe:
>>> http://www.vtk.org/mailman/listinfo/vtkusers
>>>
>>
>>
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the VTK FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>
>


-- 
Wesley D. Turner, Ph.D.
Kitware, Inc.
Technical Leader
28 Corporate Drive
Clifton Park, NY 12065-8662
Phone: 518-881-4920
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20110222/ff0b64a1/attachment.htm>


More information about the vtkusers mailing list