Board index FlightGear Support Compiling

what openGL libraries do I need for linux compile?

Building FlightGear from source, and in the need for help?

what openGL libraries do I need for linux compile?

Postby chriscalef » Sun Aug 03, 2014 11:03 pm

Trying to compile superbuild for linux, on ubuntu 14.04, and running into an openGL dependency problem. Installed mesa-common-dev and freeglut3-dev, but make is still not satisfied. Not sure what other openGL libraries I need, sorry if this is clearly explained in a wiki manual somewhere...

Here's my make output:

Code: Select all
chris@mapserver:~/flightgear/fgmeta_build$ make
[  2%] Performing configure step for 'PLIB'
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
includedir changed to ${prefix}/include/plib libdir is ${exec_prefix}/lib
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking how to run the C preprocessor... gcc -E
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... gcc3
checking how to run the C++ preprocessor... g++ -E
checking for a BSD-compatible install... /usr/bin/install -c
checking for ranlib... ranlib
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking for X... no
checking for pthread_create in -lpthread... no
checking for glNewList in -lGL... no
checking for glNewList in -lMesaGL... no
configure: error: could not find working GL library
make[2]: *** [src/PLIB-stamp/PLIB-configure] Error 1
make[1]: *** [CMakeFiles/PLIB.dir/all] Error 2
make: *** [all] Error 2
chriscalef
 
Posts: 236
Joined: Wed Feb 20, 2013 9:28 pm

Re: what openGL libraries do I need for linux compile?

Postby chriscalef » Sun Aug 03, 2014 11:32 pm

Update: also installed libglew1.5-dev, based on random advice from the internet. Still seeking the magic one that fixes it...
chriscalef
 
Posts: 236
Joined: Wed Feb 20, 2013 9:28 pm

Re: what openGL libraries do I need for linux compile?

Postby daveculp » Mon Aug 04, 2014 12:01 am

Sometimes I have make symlinks to help the build scripts find the right libraries. This might be your issue.
User avatar
daveculp
 
Posts: 503
Joined: Sun Feb 24, 2013 1:50 am
Location: Las Vegas, USA
Callsign: DCulp
Version: 2017.3.1
OS: Ubuntu 17.10

Re: what openGL libraries do I need for linux compile?

Postby chriscalef » Mon Aug 04, 2014 12:08 am

Hm, sorry, kind of a newb in many areas... could you possibly provide a command line example of how you did that?
chriscalef
 
Posts: 236
Joined: Wed Feb 20, 2013 9:28 pm

Re: what openGL libraries do I need for linux compile?

Postby daveculp » Mon Aug 04, 2014 1:33 am

The symlink syntax is pretty easy:

ln -s /path/to/target /path/to/symlink

The hard part is going through the build scripts to find where it is looking, then going through your file system to find where the stuff really is. Symlinks are the approved solution.

Don't tell any linux geeks this, but sometimes I just copy the files or directory in dispute into the directory where the build script is looking. This is naughty though.

I've had the most issues with things being put in /lib64 directories rather than /usr/lib, and then there's the perennial fighting over /usr/lib versus /usr/local/lib.
User avatar
daveculp
 
Posts: 503
Joined: Sun Feb 24, 2013 1:50 am
Location: Las Vegas, USA
Callsign: DCulp
Version: 2017.3.1
OS: Ubuntu 17.10


Return to Compiling

Who is online

Users browsing this forum: No registered users and 3 guests