<font><span class="Apple-style-span" style="background-color: rgb(255, 255, 255); "><font class="Apple-style-span" face="arial, sans-serif"><span class="Apple-style-span" style="font-size: 16px;">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</span></font></span><br>
</font><br><div class="gmail_quote">On Thu, Aug 18, 2011 at 09:23, steelblue <span dir="ltr"><<a href="mailto:812075761@qq.com">812075761@qq.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
hi everyone:<br>
when i compile vtk on linux,the gcc report something wrong:<br>
<br>
[ 40%] Building CXX object<br>
Rendering/CMakeFiles/vtkRendering.dir/vtkOpenGLExtensionManager.o<br>
/root/Desktop/VTK/Rendering/vtkOpenGLExtensionManager.cxx: In member<br>
function ‘virtual void (* vtkOpenGLExtensionManager::GetProcAddress(const<br>
char*))()’:<br>
/root/Desktop/VTK/Rendering/vtkOpenGLExtensionManager.cxx:273:<br>
错误:‘glXGetProcAddressARB’ 在此作用域中尚未声明<br>
make[2]: ***<br>
[Rendering/CMakeFiles/vtkRendering.dir/vtkOpenGLExtensionManager.o] 错误 1<br>
make[1]: *** [Rendering/CMakeFiles/vtkRendering.dir/all] 错误 2<br>
make: *** [all] 错误 2<br>
<br>
the gcc versin is 4.1.2,<br>
vtk version is 4.4.2<br>
<br>
how to deal with this problem?<br>
waiting for your help ,thank!<br>
<br>
<br>
--<br>
View this message in context: <a href="http://vtk.1045678.n5.nabble.com/a-question-about-compile-vtk-source-on-linux-tp4711153p4711153.html" target="_blank">http://vtk.1045678.n5.nabble.com/a-question-about-compile-vtk-source-on-linux-tp4711153p4711153.html</a><br>
Sent from the VTK - Users mailing list archive at Nabble.com.<br>
_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
</blockquote></div><br>