Thread: Freeglut3: where are the lib files?
i posted thread in general forum, think it'd better ask these questions nvidia opengl libraries here.
i'm trying make program called jjviewer uses libraries called glut, glu, , gl (as noob, have no idea mean).
here's what's in make file:
and here's happens when 'make' it:code:cflags = -o -i$(incpath) -i$(srcpath) -i/usr/include -i/usr/include/gl -i/usr/local/include -dlinux lflags = -lm -l/usr/lib -l/usr/local/lib -lglut -lglu -lgl -ltiff
code:gcc -o jjviewer object/array.o object/default.o object/display.o object/init.o object/keyboard.o object/main.o object/memory.o object/mouse.o object/read.o object/write.o -lm -l/usr/lib -l/usr/lib/nvidia-current -l/usr/local/lib -lglut -lglu -lgl -ltiff /usr/bin/ld: cannot find -lglu /usr/bin/ld: cannot find -lgl collect2: ld returned 1 exit status make: *** [jjviewer] error 1
fixed it! reason every library needed in different directory! also, earlier searches didn't find because file called libgl instead of libgl, , forth. such hassle...
posterity, here locations of elusive libraries. bet every installation puts someplace different...
lglut ---> /usr/lib
lgl ---> /usr/lib/nvidia-current
libglu ---> /usr/lib/i386-linux-gnu
found libglu when put in:
code:$ locate libglu
Forum The Ubuntu Forum Community Ubuntu Official Flavours Support Multimedia Software [SOLVED] Freeglut3: where are the lib files?
Ubuntu
Comments
Post a Comment