Whats with -lGLU and makesdna??

Compiling, libraries, modules, coding guidelines and porting

Moderators: jesterKing, stiv

VelikM
Posts: 80
Joined: Mon Oct 14, 2002 4:18 am

Whats with -lGLU and makesdna??

Postby VelikM » Tue Dec 24, 2002 6:05 am

MakesDna is the only place that -lGLU appears that it's not found.

gcc -g -O2 -o makesdna makesdna-makesdna.o ../../../../intern/guardedalloc/.libs/libblender_guardedalloc.al -lGLU -lGL -lm -ljpeg -lpng -lcrypto -lssl -lpthread -ldl -lstdc++ -lz
ld: can't locate file for: -lGLU
*** Error code 1

./configure is finding it: checking for gluGetString in -lGLU... yes

Any ideas?

kobyl
Posts: 5
Joined: Sat Dec 21, 2002 11:56 pm

satisfying -lGLU

Postby kobyl » Wed Dec 25, 2002 11:34 pm

I suggest a link from /usr/lib/libGLU.so to where your libGLU.so is (probably /usr/X11R6/lib/libGLU.so).

VelikM
Posts: 80
Joined: Mon Oct 14, 2002 4:18 am

Re: satisfying -lGLU

Postby VelikM » Thu Dec 26, 2002 6:36 am

kobyl wrote:I suggest a link from /usr/lib/libGLU.so to where your libGLU.so is (probably /usr/X11R6/lib/libGLU.so).


I'm running OS X, and I do have X11 installed and libGLU.a is installed there. I ln -s libGLU.a to /usr/lib already so ./configure could find it (checking for gluGetString in -lGLU... yes) all the other places -lGLU is needed it's found with no errors or warnings, just in makesdna is there a problem. Is there something about makesdna the requires libGLU.so that libGLU.a won't fill the need for? Since libGLU.a seems to fill the rest of the requirements.

sgefant
Posts: 49
Joined: Wed Oct 16, 2002 1:10 am

Postby sgefant » Thu Dec 26, 2002 11:59 am

Actually, makesdna doesn't need "-lGLU -lGL -lm -ljpeg -lpng -lcrypto -lssl -lpthread -ldl -lstdc++ -lz". Somehow autoconf put those there....
Could you edit $builddir/source/blender/makesdna/intern/Makefile and remove any references to them and see if it compiles?

sgefant

VelikM
Posts: 80
Joined: Mon Oct 14, 2002 4:18 am

Postby VelikM » Thu Dec 26, 2002 11:49 pm

I commented this line out in makesdna/intern/Makefile:
# LIBS = -lGLU -lGL -lm -ljpeg -lpng -lcrypto -lssl -lpthread -ldl -lstdc++ -lz

Now the error occures here after makesdna is built:
gcc -g -O2 -o makesdna makesdna-makesdna.o ../../../../intern/guardedalloc/.libs/libblender_guardedalloc.al -lGLU -lGL -lm -ljpeg -lpng -lcrypto -lssl -lpthread -ldl -lstdc++ -lz
ld: can't locate file for: -lGLU

This is an improvement, at least makesdna is building. :)

EDIT:
I use the tcsh shell, I've added the full paths to .tcshrc, .cshrc, .shrc and /sw/bin/init.csh, and init.sh so there should be know problems finding anything. 8)


Return to “Coding Blender”

Who is online

Users browsing this forum: No registered users and 1 guest