[vtkusers] a question about compile vtk source on linux,

Dženan Zukić dzenanz at gmail.com
Thu Aug 18 03:49:28 EDT 2011


GetProcAddress is a Windows function. Make sure you delete the CMake's cache
before configuring it for Linux (you cannot use the same build directory for
Windows and Linux). Also make sure that there are no such defines as WIN32,
MSC_VER etc

On Thu, Aug 18, 2011 at 09:23, steelblue <812075761 at qq.com> wrote:

> hi everyone:
> when i compile vtk on linux,the gcc report something wrong:
>
> [ 40%] Building CXX object
> Rendering/CMakeFiles/vtkRendering.dir/vtkOpenGLExtensionManager.o
> /root/Desktop/VTK/Rendering/vtkOpenGLExtensionManager.cxx: In member
> function ‘virtual void (* vtkOpenGLExtensionManager::GetProcAddress(const
> char*))()’:
> /root/Desktop/VTK/Rendering/vtkOpenGLExtensionManager.cxx:273:
> 错误:‘glXGetProcAddressARB’ 在此作用域中尚未声明
> make[2]: ***
> [Rendering/CMakeFiles/vtkRendering.dir/vtkOpenGLExtensionManager.o] 错误 1
> make[1]: *** [Rendering/CMakeFiles/vtkRendering.dir/all] 错误 2
> make: *** [all] 错误 2
>
> the gcc versin is 4.1.2,
> vtk version is 4.4.2
>
> how to deal with this problem?
> waiting for your help ,thank!
>
>
> --
> View this message in context:
> http://vtk.1045678.n5.nabble.com/a-question-about-compile-vtk-source-on-linux-tp4711153p4711153.html
> Sent from the VTK - Users mailing list archive at Nabble.com.
> _______________________________________________
> 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20110818/2359e15e/attachment.htm>


More information about the vtkusers mailing list