[ODE] Undefined Reference [..] glu* (ODE CVS 20051209)

Rodrigo Hernandez kwizatz at aeongames.com
Sat Dec 10 20:19:10 MST 2005


Configure can't find the libGLU.so library, so it doesnt include the 
flags for the compiler to link against it, it is finding the header file 
glu.h, so my bet is that there is something wrong with your setup, 
perhaps a soft link to the propper GLU library is missing, or maybe it 
is installed in a non standard directory?


Esben Stien wrote:

>Getting this, trying to compile latest: 
>
>../../drawstuff/src/libdrawstuff.a(drawstuff.o)(.text+0x71f): In function `Texture::Texture(char*)':
>/src/ode-cvs-20051209/ode/drawstuff/src/drawstuff.cpp:250: undefined reference to `gluBuild2DMipmaps'
>../../drawstuff/src/libdrawstuff.a(drawstuff.o)(.text+0x8fb): In function `Texture::Texture(char*)':
>/src/ode-cvs-20051209/ode/drawstuff/src/drawstuff.cpp:250: undefined reference to `gluBuild2DMipmaps'
>collect2: ld returned 1 exit status
>make[2]: *** [dstest] Error 1
>make[2]: Leaving directory `/src/ode-cvs-20051209/ode/drawstuff/dstest'
>make[1]: *** [all-recursive] Error 1
>make[1]: Leaving directory `/src/ode-cvs-20051209/ode/drawstuff'
>make: *** [all-recursive] Error 1
>
>The configure script reports: 
>
>checking for GL/gl.h... yes
>checking for GL/glu.h... yes
>checking for GL/glext.h... yes
>checking for main in -lGL... yes
>checking for main in -lGLU... no
>checking for main in -lopengl32... no
>checking for main in -lglu32... no
>
>, but completes without halting. 
>
>I've never installed mesa-lib, so I wonder if it's me lacking mesa or
>some compiler flag is wrong in the makefile.
>
>  
>



More information about the ODE mailing list