Image 01
profile-image

twic

Tom Anderson
Eleet

Screensavers by oddsocks1024 5 comments

That works, thanks!

So the problem is with the linker finding the libraries, not the compiler finding the includes, as i'd been assuming. I suppose the "ld returned 1 exit status" should have been a clue. - Jan 19 2011
Eleet

Screensavers by oddsocks1024 5 comments

I installed or updated as appropriate the following packages:

alsa-lib-devel autoconf automake libdrm-devel libX11-devel libXau-devel
libxcb-devel libXdamage-devel libXext-devel libXfixes-devel
libXrandr-devel libXrender-devel libXxf86vm-devel mesa-dri-drivers
mesa-libGL mesa-libGL-devel mesa-libGLU mesa-libGLU-devel SDL-devel
SDL_image SDL_image-devel SDL_ttf SDL_ttf-devel xorg-x11-proto-devel

After configuring, make dies with:

gcc -g -O2 -lSDL -lpthread -lGL -lm -o eleet eleet.o eleet_timers.o eleet_textures.o eleet_fonts.o eleet_random.o models/LOTSOFMODELS -lX11 -lSDL_image -lSDL_ttf
eleet.o: In function `preCacheScene':
/tmp/eleet/eleet-0.3.1/src/eleet.c:300: undefined reference to `gluCheckExtension'
eleet.o: In function `initOpenGL':
/tmp/eleet/eleet-0.3.1/src/eleet.c:366: undefined reference to `gluPerspective'
collect2: ld returned 1 exit status

Those functions are defined in GL/glu.h. eleet.c includes eleet.h, which (conditionally, but in this case positively) includes GL/glu.h. As far as i can tell, my include path is set up properly.

Any thoughts?
- Jan 18 2011