[vtkusers] VTK & Qt 4.4.3 on Mac
David Cole
david.cole at kitware.com
Mon Dec 1 10:15:39 EST 2008
What do your OpenGL settings look like in your CMakeCache.txt?
Specifically these variables:
$ grep -in opengl CMakeCache.txt
......
293://Include for OpenGL on OSX
294:OPENGL_INCLUDE_DIR:PATH=/System/Library/Frameworks/OpenGL.framework
296://OpenGL lib for OSX
297:OPENGL_gl_LIBRARY:FILEPATH=/System/Library/Frameworks/OpenGL.framework
300:OPENGL_glu_LIBRARY:FILEPATH=/System/Library/Frameworks/AGL.framework
......
Looks like the gl_LIBRARY or glu_LIBRARY is not set properly from your link
errors....
On Mon, Dec 1, 2008 at 10:08 AM, Arnaud Gelas
<Arnaud_Gelas at hms.harvard.edu>wrote:
> Hi Elvis,
>
> When I compile with these settings, I got these link errors:
>
>
> VTK_USE_CARBON ON
>>> VTK_USE_COCOA OFF
>>> VTK_USE_QVTK ON
>>> VTK_USE_X OFF
>>>
>>> I get these link errors:
>>>
>>> Linking CXX shared library ../bin/libvtkRendering.dylib
>>> Undefined symbols:
>>> "_aglSwapBuffers", referenced from:
>>> vtkCarbonRenderWindow::Frame() in vtkCarbonRenderWindow.o
>>> "_aglDestroyPixelFormat", referenced from:
>>> vtkCarbonRenderWindowInternal::CreateContext(int, int&, int&,
>>> int&, int&, int&, char const*&)in vtkCarbonRenderWindow.o
>>> "_aglCreateContext", referenced from:
>>> vtkCarbonRenderWindowInternal::CreateContext(int, int&, int&,
>>> int&, int&, int&, char const*&)in vtkCarbonRenderWindow.o
>>> "_aglErrorString", referenced from:
>>> aglReportError() in vtkCarbonRenderWindow.o
>>> "_aglDisable", referenced from:
>>> vtkCarbonRenderWindow::UpdateGLRegion() in
>>> vtkCarbonRenderWindow.o
>>> "_aglIsEnabled", referenced from:
>>> vtkCarbonRenderWindow::UpdateGLRegion() in
>>> vtkCarbonRenderWindow.o
>>> vtkCarbonRenderWindow::UpdateGLRegion() in
>>> vtkCarbonRenderWindow.o
>>> "_aglSetInteger", referenced from:
>>> vtkCarbonRenderWindow::UpdateGLRegion() in
>>> vtkCarbonRenderWindow.o
>>> vtkCarbonRenderWindow::UpdateGLRegion() in
>>> vtkCarbonRenderWindow.o
>>> vtkCarbonRenderWindow::UpdateGLRegion() in
>>> vtkCarbonRenderWindow.o
>>> vtkCarbonRenderWindow::CreateAWindow() in
>>> vtkCarbonRenderWindow.o
>>> "_aglGetCurrentContext", referenced from:
>>> vtkCarbonRenderWindow::MakeCurrent() in
>>> vtkCarbonRenderWindow.o
>>> vtkCarbonRenderWindow::MakeCurrent() in
>>> vtkCarbonRenderWindow.o
>>> vtkCarbonRenderWindow::IsCurrent() in
>>> vtkCarbonRenderWindow.o
>>> vtkCarbonRenderWindow::IsCurrent() in
>>> vtkCarbonRenderWindow.o
>>> "_aglEnable", referenced from:
>>> vtkCarbonRenderWindow::UpdateGLRegion() in
>>> vtkCarbonRenderWindow.o
>>> vtkCarbonRenderWindow::UpdateGLRegion() in
>>> vtkCarbonRenderWindow.o
>>> vtkCarbonRenderWindow::UpdateGLRegion() in
>>> vtkCarbonRenderWindow.o
>>> "_aglSetOffScreen", referenced from:
>>> vtkCarbonRenderWindow::CreateOffScreenWindow(int, int)in
>>> vtkCarbonRenderWindow.o
>>> "_aglChoosePixelFormat", referenced from:
>>> vtkCarbonRenderWindowInternal::ChoosePixelFormat(int, int, int,
>>> int, int, int, int)in vtkCarbonRenderWindow.o
>>> "_aglDestroyContext", referenced from:
>>> vtkCarbonRenderWindow::DestroyWindow() in
>>> vtkCarbonRenderWindow.o
>>> vtkCarbonRenderWindow::DestroyOffScreenWindow() in
>>> vtkCarbonRenderWindow.o
>>> "_aglUpdateContext", referenced from:
>>> vtkCarbonRenderWindow::UpdateGLRegion() in
>>> vtkCarbonRenderWindow.o
>>> "_aglGetError", referenced from:
>>> aglReportError() in vtkCarbonRenderWindow.o
>>> "_aglSetDrawable", referenced from:
>>> vtkCarbonRenderWindow::UpdateGLRegion() in
>>> vtkCarbonRenderWindow.o
>>> vtkCarbonRenderWindow::CreateAWindow() in
>>> vtkCarbonRenderWindow.o
>>> "_aglSetCurrentContext", referenced from:
>>> vtkCarbonRenderWindow::DestroyWindow() in
>>> vtkCarbonRenderWindow.o
>>> vtkCarbonRenderWindow::MakeCurrent() in
>>> vtkCarbonRenderWindow.o
>>> vtkCarbonRenderWindow::MakeCurrent() in
>>> vtkCarbonRenderWindow.o
>>> vtkCarbonRenderWindow::CreateOffScreenWindow(int, int)in
>>> vtkCarbonRenderWindow.o
>>> vtkCarbonRenderWindow::CreateAWindow() in
>>> vtkCarbonRenderWindow.o
>>> ld: symbol(s) not found
>>> collect2: ld returned 1 exit status
>>> make[2]: *** [bin/libvtkRendering.5.3.0.dylib] Error 1
>>> make[1]: *** [Rendering/CMakeFiles/vtkRendering.dir/all] Error 2
>>> make: *** [all] Error 2
>>>
>>
>
>
>
> On Dec 1, 2008, at 10:02 AM, Elvis Dowson wrote:
>
> Hi Arnaud,
>> You need to set VTK_USE_CARBON to ON, then
>> configure. After that, set the VTK_GUI_SUPPORT to ON, then configure,
>> then it will prompt you for the QT version, set it to 4, and then
>> configure and generate the configuration.
>>
>> Best regards,
>>
>> Elvis
>>
>> On Dec 1, 2008, at 6:51 PM, Arnaud Gelas wrote:
>>
>> Hi guys,
>>>
>>> I have been trying to compile VTK (cvs snapshot), with Qt 4.4.3. I
>>> have successfully managed to compile and use it on linux, win32,
>>> still some minor issues on win64, but I can not figure out what
>>> should the option on Mac. Is there any wiki page that deals with it?
>>> Anyway, I would really appreciate any advice.
>>>
>>> Thanks in advance,
>>> Arnaud
>>>
>>> I have already tried several configurations, but none of them
>>> worked... Every time I have some link errors :-/.
>>>
>>> Note:
>>>
>>> * when I compile with:
>>> VTK_USE_CARBON OFF
>>> VTK_USE_COCOA OFF
>>> VTK_USE_QVTK ON
>>> VTK_USE_X OFF
>>>
>>> I get this link errors:
>>>
>>> Linking CXX shared library ../../bin/libQVTK.dylib
>>> Undefined symbols:
>>> "vtkCarbonRenderWindow::UpdateGLRegion()", referenced from:
>>> QVTKWidget::DirtyRegionProcessor(OpaqueEventHandlerCallRef*,
>>> OpaqueEventRef*, void*) in QVTKWidget.o
>>> ld: symbol(s) not found
>>> collect2: ld returned 1 exit status
>>> make[2]: *** [bin/libQVTK.5.3.0.dylib] Error 1
>>> make[1]: *** [GUISupport/Qt/CMakeFiles/QVTK.dir/all] Error 2
>>> make: *** [all] Error 2
>>>
>>> => It seems that QVTK needs CARBON ??
>>>
>>>
>>> * when I compile with:
>>> VTK_USE_CARBON OFF
>>> VTK_USE_COCOA ON
>>> VTK_USE_QVTK ON
>>> VTK_USE_X OFF
>>>
>>> I get this link errors:
>>>
>>> Linking CXX shared library ../../bin/libQVTK.dylib
>>> Undefined symbols:
>>> "vtkCarbonRenderWindow::UpdateGLRegion()", referenced from:
>>> QVTKWidget::DirtyRegionProcessor(OpaqueEventHandlerCallRef*,
>>> OpaqueEventRef*, void*) in QVTKWidget.o
>>> ld: symbol(s) not found
>>> collect2: ld returned 1 exit status
>>> make[2]: *** [bin/libQVTK.5.3.0.dylib] Error 1
>>> make[1]: *** [GUISupport/Qt/CMakeFiles/QVTK.dir/all] Error 2
>>> make: *** [all] Error 2
>>>
>>> => It seems that QVTK really needs CARBON ?
>>>
>>> * When I compile with:
>>> VTK_USE_CARBON ON
>>> VTK_USE_COCOA OFF
>>> VTK_USE_QVTK ON
>>> VTK_USE_X OFF
>>>
>>> I get these link errors:
>>>
>>> Linking CXX shared library ../bin/libvtkRendering.dylib
>>> Undefined symbols:
>>> "_aglSwapBuffers", referenced from:
>>> vtkCarbonRenderWindow::Frame() in vtkCarbonRenderWindow.o
>>> "_aglDestroyPixelFormat", referenced from:
>>> vtkCarbonRenderWindowInternal::CreateContext(int, int&, int&,
>>> int&, int&, int&, char const*&)in vtkCarbonRenderWindow.o
>>> "_aglCreateContext", referenced from:
>>> vtkCarbonRenderWindowInternal::CreateContext(int, int&, int&,
>>> int&, int&, int&, char const*&)in vtkCarbonRenderWindow.o
>>> "_aglErrorString", referenced from:
>>> aglReportError() in vtkCarbonRenderWindow.o
>>> "_aglDisable", referenced from:
>>> vtkCarbonRenderWindow::UpdateGLRegion() in
>>> vtkCarbonRenderWindow.o
>>> "_aglIsEnabled", referenced from:
>>> vtkCarbonRenderWindow::UpdateGLRegion() in
>>> vtkCarbonRenderWindow.o
>>> vtkCarbonRenderWindow::UpdateGLRegion() in
>>> vtkCarbonRenderWindow.o
>>> "_aglSetInteger", referenced from:
>>> vtkCarbonRenderWindow::UpdateGLRegion() in
>>> vtkCarbonRenderWindow.o
>>> vtkCarbonRenderWindow::UpdateGLRegion() in
>>> vtkCarbonRenderWindow.o
>>> vtkCarbonRenderWindow::UpdateGLRegion() in
>>> vtkCarbonRenderWindow.o
>>> vtkCarbonRenderWindow::CreateAWindow() in
>>> vtkCarbonRenderWindow.o
>>> "_aglGetCurrentContext", referenced from:
>>> vtkCarbonRenderWindow::MakeCurrent() in
>>> vtkCarbonRenderWindow.o
>>> vtkCarbonRenderWindow::MakeCurrent() in
>>> vtkCarbonRenderWindow.o
>>> vtkCarbonRenderWindow::IsCurrent() in
>>> vtkCarbonRenderWindow.o
>>> vtkCarbonRenderWindow::IsCurrent() in
>>> vtkCarbonRenderWindow.o
>>> "_aglEnable", referenced from:
>>> vtkCarbonRenderWindow::UpdateGLRegion() in
>>> vtkCarbonRenderWindow.o
>>> vtkCarbonRenderWindow::UpdateGLRegion() in
>>> vtkCarbonRenderWindow.o
>>> vtkCarbonRenderWindow::UpdateGLRegion() in
>>> vtkCarbonRenderWindow.o
>>> "_aglSetOffScreen", referenced from:
>>> vtkCarbonRenderWindow::CreateOffScreenWindow(int, int)in
>>> vtkCarbonRenderWindow.o
>>> "_aglChoosePixelFormat", referenced from:
>>> vtkCarbonRenderWindowInternal::ChoosePixelFormat(int, int, int,
>>> int, int, int, int)in vtkCarbonRenderWindow.o
>>> "_aglDestroyContext", referenced from:
>>> vtkCarbonRenderWindow::DestroyWindow() in
>>> vtkCarbonRenderWindow.o
>>> vtkCarbonRenderWindow::DestroyOffScreenWindow() in
>>> vtkCarbonRenderWindow.o
>>> "_aglUpdateContext", referenced from:
>>> vtkCarbonRenderWindow::UpdateGLRegion() in
>>> vtkCarbonRenderWindow.o
>>> "_aglGetError", referenced from:
>>> aglReportError() in vtkCarbonRenderWindow.o
>>> "_aglSetDrawable", referenced from:
>>> vtkCarbonRenderWindow::UpdateGLRegion() in
>>> vtkCarbonRenderWindow.o
>>> vtkCarbonRenderWindow::CreateAWindow() in
>>> vtkCarbonRenderWindow.o
>>> "_aglSetCurrentContext", referenced from:
>>> vtkCarbonRenderWindow::DestroyWindow() in
>>> vtkCarbonRenderWindow.o
>>> vtkCarbonRenderWindow::MakeCurrent() in
>>> vtkCarbonRenderWindow.o
>>> vtkCarbonRenderWindow::MakeCurrent() in
>>> vtkCarbonRenderWindow.o
>>> vtkCarbonRenderWindow::CreateOffScreenWindow(int, int)in
>>> vtkCarbonRenderWindow.o
>>> vtkCarbonRenderWindow::CreateAWindow() in
>>> vtkCarbonRenderWindow.o
>>> ld: symbol(s) not found
>>> collect2: ld returned 1 exit status
>>> make[2]: *** [bin/libvtkRendering.5.3.0.dylib] Error 1
>>> make[1]: *** [Rendering/CMakeFiles/vtkRendering.dir/all] Error 2
>>> make: *** [all] Error 2
>>>
>>>
>>> _______________________________________________
>>> This is the private VTK discussion list.
>>> Please keep messages on-topic. Check the FAQ at:
>>> http://www.vtk.org/Wiki/VTK_FAQ
>>> Follow this link to subscribe/unsubscribe:
>>> http://www.vtk.org/mailman/listinfo/vtkusers
>>>
>>
>>
> _______________________________________________
> This is the private VTK discussion list.
> Please keep messages on-topic. Check the FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20081201/74f71c0c/attachment.htm>
More information about the vtkusers
mailing list