[vtkusers] Build VTK with MinGW
tobias12345
tobias.hofmann at itwm.fraunhofer.de
Tue Sep 11 10:00:47 EDT 2018
Hello everybody,
I am trying to build VTK 8.1.1 with MinGW 4.9.4 on Windows. I use the
CMake-GUI, set
OPENGL_gl_LIBRARY="C:\Windows\System32\opengl32.dll"
OPENGL_glu_LIBRARY ="C:\Windows\System32\glu32.dll"
then configure, generate and make. The build fails at 42% while linking the
executable "vtkProbeOpenGLVersion.exe" with many undefined reference errors
as e.g.
../../lib/libvtkRenderingOpenGL2-8.1.a(vtkOpenGLCamera.cxx.obj):vtkOpenGLCamera.cxx:(.text+0xbd0):
undefined reference to `__imp___glewBindFramebuffer'
../../lib/libvtkRenderingOpenGL2-8.1.a(vtkOpenGLPointGaussianMapper.cxx.obj):vtkOpenGLPointGaussianMapper.cxx:(.text+0x53b):
undefined reference to `__imp___glewBlendFuncSeparate'
../../lib/libvtkRenderingOpenGL2-8.1.a(vtkOpenGLPolyDataMapper.cxx.obj):vtkOpenGLPolyDataMapper.cxx:(.text+0xf1d):
undefined reference to `__imp___glewDrawRangeElements'
../../lib/libvtkRenderingOpenGL2-8.1.a(vtkOpenGLPolyDataMapper2D.cxx.obj):vtkOpenGLPolyDataMapper2D.cxx:(.text+0x46ba):
undefined reference to `__imp___glewDrawRangeElements'
../../lib/libvtkRenderingOpenGL2-8.1.a(vtkOpenGLPolyDataMapper2D.cxx.obj):vtkOpenGLPolyDataMapper2D.cxx:(.text+0x48d9):
undefined reference to `__imp___glewDrawRangeElements'
../../lib/libvtkRenderingOpenGL2-8.1.a(vtkOpenGLPolyDataMapper2D.cxx.obj):vtkOpenGLPolyDataMapper2D.cxx:(.text+0x499f):
undefined reference to `__imp___glewDrawRangeElements'
../../lib/libvtkRenderingOpenGL2-8.1.a(vtkOpenGLPolyDataMapper2D.cxx.obj):vtkOpenGLPolyDataMapper2D.cxx:(.text+0x4a6e):
undefined reference to `__imp___glewDrawRangeElements
and hundreds more.
Anyone got an idea why?
--
Sent from: http://vtk.1045678.n5.nabble.com/VTK-Users-f1224199.html
More information about the vtkusers
mailing list