#38 glMatrixMode' is defined in DSO (make fails)

open
nobody
None
5
2012-10-13
2012-10-13
Dennis
No

alc_pfb.o `test -f 'HPGCalc_pfb.cpp' || echo './'`HPGCalc_pfb.cpp
mv -f .deps/CXXTest-HPGCalc_pfb.Tpo .deps/CXXTest-HPGCalc_pfb.Po
/bin/sh ../libtool --tag=CXX --mode=link g++ -I/usr/include/freetype2 -O2 -march=corei7 -mtune=corei7 -pipe -lfreetype -lz -lbz2 -lglut -lcppunit -s -lm -o CXXTest CXXTest-CXXTest.o CXXTest-FTBBox-Test.o CXXTest-FTBitmapFont-Test.o CXXTest-FTBitmapGlyph-Test.o CXXTest-FTCharmap-Test.o CXXTest-FTCharToGlyphIndexMap-Test.o CXXTest-FTContour-Test.o CXXTest-FTExtrudeFont-Test.o CXXTest-FTExtrudeGlyph-Test.o CXXTest-FTFace-Test.o CXXTest-FTFont-Test.o CXXTest-FTGlyph-Test.o CXXTest-FTGlyphContainer-Test.o CXXTest-FTlayout-Test.o CXXTest-FTLibrary-Test.o CXXTest-FTList-Test.o CXXTest-FTMesh-Test.o CXXTest-FTOutlineFont-Test.o CXXTest-FTOutlineGlyph-Test.o CXXTest-FTPixmapFont-Test.o CXXTest-FTPixmapGlyph-Test.o CXXTest-FTPoint-Test.o CXXTest-FTPolygonFont-Test.o CXXTest-FTPolygonGlyph-Test.o CXXTest-FTSize-Test.o CXXTest-FTTesselation-Test.o CXXTest-FTTextureFont-Test.o CXXTest-FTTextureGlyph-Test.o CXXTest-FTVectoriser-Test.o CXXTest-FTVector-Test.o CXXTest-HPGCalc_afm.o CXXTest-HPGCalc_pfb.o ../src/libftgl.la
g++ -I/usr/include/freetype2 -O2 -march=corei7 -mtune=corei7 -pipe -s -o .libs/CXXTest CXXTest-CXXTest.o CXXTest-FTBBox-Test.o CXXTest-FTBitmapFont-Test.o CXXTest-FTBitmapGlyph-Test.o CXXTest-FTCharmap-Test.o CXXTest-FTCharToGlyphIndexMap-Test.o CXXTest-FTContour-Test.o CXXTest-FTExtrudeFont-Test.o CXXTest-FTExtrudeGlyph-Test.o CXXTest-FTFace-Test.o CXXTest-FTFont-Test.o CXXTest-FTGlyph-Test.o CXXTest-FTGlyphContainer-Test.o CXXTest-FTlayout-Test.o CXXTest-FTLibrary-Test.o CXXTest-FTList-Test.o CXXTest-FTMesh-Test.o CXXTest-FTOutlineFont-Test.o CXXTest-FTOutlineGlyph-Test.o CXXTest-FTPixmapFont-Test.o CXXTest-FTPixmapGlyph-Test.o CXXTest-FTPoint-Test.o CXXTest-FTPolygonFont-Test.o CXXTest-FTPolygonGlyph-Test.o CXXTest-FTSize-Test.o CXXTest-FTTesselation-Test.o CXXTest-FTTextureFont-Test.o CXXTest-FTTextureGlyph-Test.o CXXTest-FTVectoriser-Test.o CXXTest-FTVector-Test.o CXXTest-HPGCalc_afm.o CXXTest-HPGCalc_pfb.o -lfreetype -lz -lbz2 -lglut -lcppunit -lm ../src/.libs/libftgl.so
/usr/bin/ld: CXXTest-CXXTest.o: undefined reference to symbol 'glMatrixMode'
/usr/bin/ld: note: 'glMatrixMode' is defined in DSO /usr/lib64/libGL.so.1 so try adding it to the linker command line
/usr/lib64/libGL.so.1: could not read symbols: Invalid operation
collect2: error: ld returned 1 exit status
make[2]: *** [CXXTest] Error 1
make[2]: Leaving directory `/usr/src/ftgl-2.1.3~rc5/test'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/src/ftgl-2.1.3~rc5'
make: *** [all] Error 2

Discussion

  • Dennis

    Dennis - 2012-10-13

    Compile of ftgl

     
  • Dennis

    Dennis - 2012-10-13

    Adding -lglut and -lGL to the LDFLAGS corrected the make.

     

Log in to post a comment.