OpenGL linking problems

David Doria daviddoria@gmail.com
Wed Sep 8 13:06:00 GMT 2010


> Oh, I guess you have a makefile generated by cmake? In which case you need
> make VERBOSE=1 to get it to show you what it is doing.
>

Ok, now there is some useful output. I see an -lGL, what else should I
be looking for?

/usr/bin/c++.exe     -Wno-deprecated -mwin32
CMakeFiles/GraphicsCxxTests.dir/GraphicsCxxTests.cxx.o
CMakeFiles/GraphicsCxxTests.dir/Mace.cxx.o
CMakeFiles/GraphicsCxxTests.dir/expCos.cxx.o
CMakeFiles/GraphicsCxxTests.dir/BoxClipTriangulate.cxx.o
CMakeFiles/GraphicsCxxTests.dir/CellLocator.cxx.o
CMakeFiles/GraphicsCxxTests.dir/PointLocator.cxx.o
CMakeFiles/GraphicsCxxTests.dir/FrustumClip.cxx.o
CMakeFiles/GraphicsCxxTests.dir/RGrid.cxx.o
CMakeFiles/GraphicsCxxTests.dir/TestAppendSelection.cxx.o
CMakeFiles/GraphicsCxxTests.dir/TestAssignAttribute.cxx.o
CMakeFiles/GraphicsCxxTests.dir/TestBSPTree.cxx.o
CMakeFiles/GraphicsCxxTests.dir/TestCellDataToPointData.cxx.o
CMakeFiles/GraphicsCxxTests.dir/TestDensifyPolyData.cxx.o
CMakeFiles/GraphicsCxxTests.dir/TestClipHyperOctree.cxx.o
CMakeFiles/GraphicsCxxTests.dir/TestConvertSelection.cxx.o
CMakeFiles/GraphicsCxxTests.dir/TestDelaunay2D.cxx.o
CMakeFiles/GraphicsCxxTests.dir/TestExtraction.cxx.o
CMakeFiles/GraphicsCxxTests.dir/TestExtractSelection.cxx.o
CMakeFiles/GraphicsCxxTests.dir/TestHyperOctreeContourFilter.cxx.o
CMakeFiles/GraphicsCxxTests.dir/TestHyperOctreeCutter.cxx.o
CMakeFiles/GraphicsCxxTests.dir/TestHyperOctreeDual.cxx.o
CMakeFiles/GraphicsCxxTests.dir/TestHyperOctreeSurfaceFilter.cxx.o
CMakeFiles/GraphicsCxxTests.dir/TestHyperOctreeToUniformGrid.cxx.o
CMakeFiles/GraphicsCxxTests.dir/TestNamedComponents.cxx.o
CMakeFiles/GraphicsCxxTests.dir/TestMeanValueCoordinatesInterpolation1.cxx.o
CMakeFiles/GraphicsCxxTests.dir/TestMeanValueCoordinatesInterpolation2.cxx.o
CMakeFiles/GraphicsCxxTests.dir/TestPolyDataPointSampler.cxx.o
CMakeFiles/GraphicsCxxTests.dir/TestPolyhedron0.cxx.o
CMakeFiles/GraphicsCxxTests.dir/TestPolyhedron1.cxx.o
CMakeFiles/GraphicsCxxTests.dir/TestSelectEnclosedPoints.cxx.o
CMakeFiles/GraphicsCxxTests.dir/TestTessellatedBoxSource.cxx.o
CMakeFiles/GraphicsCxxTests.dir/TestTessellator.cxx.o
CMakeFiles/GraphicsCxxTests.dir/TestUncertaintyTubeFilter.cxx.o
CMakeFiles/GraphicsCxxTests.dir/TestDecimatePolylineFilter.cxx.o  -o
../../../bin/GraphicsCxxTests.exe
-Wl,--out-implib,../../../bin/libGraphicsCxxTests.dll.a
-Wl,--major-image-version,0,--minor-image-version,0
../../../bin/libvtkRendering.a ../../../bin/libvtkIO.a -lGL -lGLU
../../../bin/libvtkDICOMParser.a ../../../bin/libvtkNetCDF_cxx.a
../../../bin/libvtkNetCDF.a ../../../bin/libvtkmetaio.a -lcomctl32
../../../bin/libvtksqlite.a ../../../bin/libvtkpng.a
../../../bin/libvtktiff.a ../../../bin/libvtkzlib.a
../../../bin/libvtkjpeg.a ../../../bin/libvtkexpat.a -lvfw32
../../../bin/libvtkGraphics.a ../../../bin/libvtkverdict.a
../../../bin/libvtkImaging.a ../../../bin/libvtkFiltering.a
../../../bin/libvtkCommon.a ../../../bin/libvtksys.a -lws2_32 -lm
-lpthread -lwsock32 -lgdi32 ../../../bin/libvtkftgl.a
../../../bin/libvtkfreetype.a /usr/lib/w32api/libopengl32.a -lXt -lSM
-lICE -lX11 -lXext
../../../bin/libvtkftgl.a(FTGLPixmapFontRenderOpenGL.cpp.o):FTGLPixmapFontRenderOpenGL.cpp:(.text+0xe):
undefined reference to `_glPushClientAttrib'
../../../bin/libvtkftgl.a(FTGLPixmapFontRenderOpenGL.cpp.o):FTGLPixmapFontRenderOpenGL.cpp:(.text+0x7d):
undefined reference to `_glPopClientAttrib'
../../../bin/libvtkftgl.a(FTGLPixmapFontRenderOpenGL.cpp.o):FTGLPixmapFontRenderOpenGL.cpp:(.text+0x92):
undefined reference to `_glPushClientAttrib'
../../../bin/libvtkftgl.a(FTGLPixmapFontRenderOpenGL.cpp.o):FTGLPixmapFontRenderOpenGL.cpp:(.text+0x101):
undefined reference to `_glPopClientAttrib'
collect2: ld returned 1 exit status

David

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple



More information about the Cygwin mailing list