X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-1.4 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,TW_LG,TW_LV,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: sourceware.org MIME-Version: 1.0 In-Reply-To: References: <4C863765 DOT 40104 AT dronecode DOT org DOT uk> <4C8783A0 DOT 8030009 AT dronecode DOT org DOT uk> Date: Wed, 8 Sep 2010 08:06:36 -0500 Message-ID: Subject: Re: OpenGL linking problems From: mike marchywka To: cygwin AT cygwin DOT com Content-Type: text/plain; charset=ISO-8859-1 X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com On 9/8/10, David Doria wrote: >> 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 If you only have a short list, you can try google on the missing syms or maybe grep some libs and see where it could be. I guess name mangling could get messed up etc but probably either missing lib or have one too early to support the methods. -- 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