[vtkusers] Compiling VTK 5.0 using Visual C++ 6.0
Tim Hutton
tim.hutton at gmail.com
Thu Feb 23 08:52:14 EST 2006
Hi Shengyong,
Have you included vtkIO.lib?
Tim
On 2/23/06, berry <lua.byhh at gmail.com> wrote:
> 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
>
>
> _______________________________________________
> 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
>
>
>
--
Tim Hutton - http://www.sq3.org.uk
Take the Organic Builder challenge -
http://www.sq3.org.uk/Evolution/Squirm3/OrganicBuilder/
More information about the vtkusers
mailing list