Compiling on Linux problems (was working, now not)

FluffyFreak
Posts: 1343
Joined: Tue Jul 02, 2013 1:49 pm
Location: Beeston, Nottinghamshire, GB
Contact:

Compiling on Linux problems (was working, now not)

Post by FluffyFreak »

Right, this is driving me insane and the error I'm getting just doesn't make any sense so I'm asking for your help.

I'm trying to compile Pioneer on my little Linux box. This was going well, it was building, running, and I was seeing the graphical corruption that others are reporting on Linux when using the open source ATi/AMD drivers.
Then I updated Pioneer to the latest master, so as to get my Eclipse disabling changes and now I get this:
CXXLD pioneer
/usr/bin/ld: cannot find -lGL
collect2: error: ld returned 1 exit status
make[2]: *** [pioneer] Error 1
make[2]: Leaving directory `/home/yeti/code/pioneer/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/yeti/code/pioneer/src'
make: *** [all-recursive] Error 1
a quick "locate libgGL" gives me the following:
yeti@Sapphire ~/code/pioneer $ locate libGL
/home/yeti/.local/share/Steam/ubuntu12_32/steam-runtime/i386/usr/lib/i386-linux-gnu/libGLEW.so.1.6
/home/yeti/.local/share/Steam/ubuntu12_32/steam-runtime/i386/usr/lib/i386-linux-gnu/libGLEW.so.1.6.0
/home/yeti/.local/share/Steam/ubuntu12_32/steam-runtime/i386/usr/lib/i386-linux-gnu/libGLU.so.1
/home/yeti/.local/share/Steam/ubuntu12_32/steam-runtime/i386/usr/lib/i386-linux-gnu/libGLU.so.1.3.08004
/home/yeti/.local/share/Steam/ubuntu12_32/steam-runtime/i386/usr/share/doc/nvidia-cg-toolkit/examples/Tools/trace/libGL.so.1.gz
/usr/lib/FGL.renamed.libGL.so.1.2
/usr/lib/libGL.so
/usr/lib/libGL.so.1
/usr/lib/libGL.so.1.2
/usr/lib/fglrx/fglrx-libGL.so.1.2
/usr/lib/fglrx/switchlibGL
/usr/lib/i386-linux-gnu/libGL.so
/usr/lib/i386-linux-gnu/libGL.so.1
/usr/lib/i386-linux-gnu/libGL.so.1.2
/usr/lib/i386-linux-gnu/fglrx/fglrx-libGL.so.1.2
/usr/lib/i386-linux-gnu/mesa/libGL.so.1
/usr/lib/i386-linux-gnu/mesa/libGL.so.1.2.0
/usr/lib/x86_64-linux-gnu/libGL.so
/usr/lib/x86_64-linux-gnu/libGLEW.so
/usr/lib/x86_64-linux-gnu/libGLEW.so.1.8
/usr/lib/x86_64-linux-gnu/libGLEW.so.1.8.0
/usr/lib/x86_64-linux-gnu/libGLEWmx.so.1.8
/usr/lib/x86_64-linux-gnu/libGLEWmx.so.1.8.0
/usr/lib/x86_64-linux-gnu/libGLU.a
/usr/lib/x86_64-linux-gnu/libGLU.so
/usr/lib/x86_64-linux-gnu/libGLU.so.1
/usr/lib/x86_64-linux-gnu/libGLU.so.1.3.1
/usr/lib/x86_64-linux-gnu/mesa/FGL.renamed.libGL.so.1.2.0
/usr/lib/x86_64-linux-gnu/mesa/libGL.so
/usr/lib/x86_64-linux-gnu/mesa/libGL.so.1
/usr/lib/x86_64-linux-gnu/mesa/libGL.so.1.2.0
/usr/lib/x86_64-linux-gnu/mesa-egl/libGLESv2.so.2
/usr/lib/x86_64-linux-gnu/mesa-egl/libGLESv2.so.2.0.0
yeti@Sapphire ~/code/pioneer $
Which has a selection of libGL.so files to choose from.

I've tried running "./configure" again and it successfully finds everything, including GL.

So does anyone have any bright ideas how I can get this running again?
It's been a long time, several years in fact, since I did any Linux development, even the Android stuff I've done more recently was on Windows.

Help?

Andy
FluffyFreak
Posts: 1343
Joined: Tue Jul 02, 2013 1:49 pm
Location: Beeston, Nottinghamshire, GB
Contact:

Re: Compiling on Linux problems (was working, now not)

Post by FluffyFreak »

I'm completely unfamiliar with the way this project is structured, never used automake (which it seems to use???) either.
Where, and how, would I even add that as an option?
FluffyFreak
Posts: 1343
Joined: Tue Jul 02, 2013 1:49 pm
Location: Beeston, Nottinghamshire, GB
Contact:

Re: Compiling on Linux problems (was working, now not)

Post by FluffyFreak »

It seems to just use $(GL_LIBS) which assumed that wherever and whatever "GL_LIBS" is is defined and correct.
Anyway that I can check?
FluffyFreak
Posts: 1343
Joined: Tue Jul 02, 2013 1:49 pm
Location: Beeston, Nottinghamshire, GB
Contact:

Re: Compiling on Linux problems (was working, now not)

Post by FluffyFreak »

Also why does

Code: Select all

./configure
succeed but linking fail to find the same library?
Zordey
Posts: 82
Joined: Mon Jul 01, 2013 2:56 pm

Re: Compiling on Linux problems (was working, now not)

Post by Zordey »

Im having issues myself with the sdl2 libraries so I probably cant be much help but have you tried grabbing the pioneer-thirdparty repo from git, and after doing a make on it do a ./compile --with-thirdparty=<path to pioneer-thirdparty>

I have had to use the thridparty repo lately even though I (thought I) had the assimp repo installed seperatly.
Tichy
Posts: 132
Joined: Tue Jul 02, 2013 12:00 pm

Re: Compiling on Linux problems (was working, now not)

Post by Tichy »

I can't check it by mysefl, because I use a different distribution...

On the ubuntu questions, for a similar problem, they suggest to check if you have all the required *-dev packages installed.
http://askubuntu.com/questions/297938/e ... -with-make

check if you have libgl1-mesa-dev installed
http://packages.ubuntu.com/raring/libgl1-mesa-dev
robn
Posts: 302
Joined: Mon Jul 01, 2013 1:11 am
Location: Melbourne, Australia

Re: Compiling on Linux problems (was working, now not)

Post by robn »

Strange that configure succeeds but the build does not.

First thing to do is to really start from scratch:

Code: Select all

make distclean
./bootstrap
./configure
make
If that still fails, do:

Code: Select all

make V=1
and then post config.log and the final link command and output somewhere that I can look at them.
FluffyFreak
Posts: 1343
Joined: Tue Jul 02, 2013 1:49 pm
Location: Beeston, Nottinghamshire, GB
Contact:

Re: Compiling on Linux problems (was working, now not)

Post by FluffyFreak »

Well this has been a fun morning, booted the linux box, ran "locate libGL" just to double check everything ... and got a MUCH shorter list than the one I posted :s

Bit odd right? Crucially it no longer had libGL.so or libGL.so.1 in /usr/lib/ which was very odd.
So I did what people suggested and made sure I had all of the mesa-dev packages, then reinstalled them all to make sure.

Still no symlinks to them being created in /usr/lib though.

So I've manually created those links, then run the clean, bootstrap, configure, make you suggested robn and now I'm waiting whilst it churns away compiling.

...and it's working!!! Compiled, linked and running right now :D
FluffyFreak
Posts: 1343
Joined: Tue Jul 02, 2013 1:49 pm
Location: Beeston, Nottinghamshire, GB
Contact:

Re: Compiling on Linux problems (was working, now not)

Post by FluffyFreak »

Cheers for the help everyone :)
Post Reply