[vtkusers] Compiling VTK 5.0 using Visual C++ 6.0
berry
lua.byhh at gmail.com
Thu Feb 23 08:40:49 EST 2006
Hi, everyone
I am tring to compiling vtk 5.0 with VS 6 and CMake 2.2. I think compiling
has been done successfully and vtk was installed in the
directory "C:/Program Files/VTK" and I am sure I have configured the
directory rightly in Visual Studio 6.0
but when I trying to use vtk 5.0 headers and libraries to compile the STL
file reader example , I have gotten
lots of linkage errors like this :
vtkRendering.lib(vtkOpenGLTexture.obj) : error LNK2001: unresolved external
symbol __imp__glDeleteTextures at 8
vtkRendering.lib(vtkOpenGLImageActor.obj) : error LNK2001: unresolved
external symbol __imp__glDeleteTextures at 8
vtkRendering.lib(vtkWin32OpenGLRenderWindow.obj) : error LNK2001: unresolved
external symbol __imp__glDeleteTextures at 8
vtkRendering.lib(vtkOpenGLImageActor.obj) : error LNK2001: unresolved
external symbol __imp__glDisable at 4
vtkRendering.lib(vtkWin32OpenGLRenderWindow.obj) : error LNK2001: unresolved
external symbol __imp__glDisable at 4
So I think OpenGL32.lib may not be explicitly link in vtkRendering.lib. So I
have added this lib( OpenGL32.lib)
in the STL reader example. Although the OpenGL linkage errors are eliminated
, a link 2001 problem is thrown
here is the error:
VTK.obj : error LNK2001: unresolved external symbol "public: static class
vtkSTLReader * __cdecl vtkSTLReader::New(void)" (
?New at vtkSTLReader@@SAPAV1 at XZ)
it seems that vtkSTLReader::New method has not beed defined . However, I
have found this function has already defined.
Does anyone can help me?
thanks much.
--
Pang Shengyong
berry_hust at hotmail.com
Solidification Simulation Lab, Huazhong Univ. of Sci. & Tech.
(Tel)+86-27-87541922
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20060223/6f807cb5/attachment.htm>
More information about the vtkusers
mailing list