Cannot find -lGL

Trying to build your own version of Vega Strike and having problems? Unix users, paste your config.log here (stderr output alone is not helpful).
Post Reply
valan
Atmospheric Pilot
Atmospheric Pilot
Posts: 1
Joined: Sun Mar 26, 2006 1:12 am

Cannot find -lGL

Post by valan »

Not sure what the problem is here, it says it can't find -lGL when it is clearly accessable in /usr/lib

Code: Select all

ray@sloth:/mnt/g/vegastrike_cvs_head/vegastrike$ make
make  all-am
make[1]: Entering directory `/mnt/g/vegastrike_cvs_head/vegastrike'
g++  -g -O2 -pipe  -O2 -ffast-math -static -falign-loops=2 -falign-jumps=2 -falign-functions=2  -I/usr/include/SDL -D_REENTRANT -pthread -pipe  -L/usr/X11R6/lib -L/usr/X11R6/lib  -o accountserver  src/accountserver.o src/configxml.o src/easydom.o src/endianness.o src/libserver.o src/lin_time.o src/pk3.o src/posh.o src/vsfilesystem.o src/xml_support.o libnetacct.a libnetlowlevel.a -lz -lvorbisfile -lvorbis -logg   -lutil -L/usr/lib -Wl,-rpath,/usr/lib -lSDL -lpthread  -lGL -L/usr/X11R6/lib -lGLU  -lglut  -lXi -lXmu  -lexpat  -lpng  -ljpeg /usr/lib/python2.4/config/libpython2.4.a  -Xlinker -export-dynamic -pthread 
/usr/bin/ld: cannot find -lGL
collect2: ld returned 1 exit status
make[1]: *** [accountserver] Error 1
make[1]: Leaving directory `/mnt/g/vegastrike_cvs_head/vegastrike'
make: *** [all] Error 2

ray@sloth:/mnt/g/vegastrike_cvs_head/vegastrike$ ls /usr/lib/libGL*
/usr/lib/libGLcore.so.1         /usr/lib/libGL.la  /usr/lib/libGL.so.1
/usr/lib/libGLcore.so.1.0.8178  /usr/lib/libGL.so  /usr/lib/libGL.so.1.0.8178
I have ran ldconfig, and it still can't find it.
You do not have the required permissions to view the files attached to this post.
energyman76b
ISO Party Member
ISO Party Member
Posts: 445
Joined: Tue Feb 11, 2003 8:04 am

Post by energyman76b »

Hi,

have you tried running configure wit --with-gl-libs=/usr/lib ?
Ampersand
Merchant
Merchant
Posts: 33
Joined: Sat Mar 27, 2004 2:55 pm

Post by Ampersand »

I've also had this problem, I tried --with-gl-libs=/usr/lib, /usr/lib/opengl/xorg-x11/lib and /usr/lib/opengl/nvidia/lib, all had the same result.

x86_64 arch, gcc 3.4.6, gentoo, svn from earlier today, nvidia version 1.8756
DualJoe
ISO Party Member
ISO Party Member
Posts: 387
Joined: Tue Mar 21, 2006 2:37 pm
Location: Netherlands
Contact:

Post by DualJoe »

I had the same problem on a 32-bit system. What worked for me was for the compile to switch to mesa/xorg-x11 opengl. When the compile is done you can switch back to Nvidia's opengl.
Ampersand
Merchant
Merchant
Posts: 33
Joined: Sat Mar 27, 2004 2:55 pm

Post by Ampersand »

I think that worked, thanks. Now I'm getting as far as the expat errors...
Post Reply