Board index FlightGear Support Compiling

Compiling flightgear with "download_and_compile.sh"  Topic is solved

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

Compiling flightgear with "download_and_compile.sh"

Postby E-HEC » Mon Aug 20, 2012 9:55 am

Hello,

I'm trying to compile FGFS 2.8 with the "download_and_compile.sh"-Skript on ubuntu.
Unfortunally I get the following error-message:
Code: Select all
-- Looking for unistd.h
-- Looking for unistd.h - found
-- Looking for sys/time.h
-- Looking for sys/time.h - found
-- Looking for windows.h
-- Looking for windows.h - not found
-- Looking for mkfifo
-- Looking for mkfifo - found
-- Looking for inttypes.h
-- Looking for inttypes.h - found
CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
PLIB_FNT_LIBRARY_RELEASE (ADVANCED)
    linked by target "fgjs" in directory /home/christian/flightgear/fgfs/flightgear/src/Input
    linked by target "js_demo" in directory /home/christian/flightgear/fgfs/flightgear/src/Input
    linked by target "fgfs" in directory /home/christian/flightgear/fgfs/flightgear/src/Main
    linked by target "fgadmin" in directory /home/christian/flightgear/fgfs/flightgear/utils/fgadmin/src

-- Configuring incomplete, errors occurred!
make: *** Keine Targets angegeben und keine »make«-Steuerdatei gefunden.  Schluss.
make: *** Keine Regel, um »install« zu erstellen.  Schluss.
download_and_compile.sh: 756: cd: can't cd to /home/christian/flightgear/install/fgfs

Can anybody help?
E-HEC
 
Posts: 19
Joined: Mon Apr 16, 2012 3:14 pm

Re: Compiling flightgear with "download_and_compile.sh"

Postby islandmonkey » Mon Aug 20, 2012 10:07 am

This has really bugged me (I compiled FG manually in the end). But nevermind, playdeb .debs for 2.8 are available now: http://www.playdeb.net/updates/ubuntu/1 ... flightgear
User avatar
islandmonkey
 
Posts: 787
Joined: Mon Jan 30, 2012 8:51 pm
Location: EGCN (uni), EGHI (home)
Callsign: G-MNKY
OS: Ubuntu 20.04

Re: Compiling flightgear with "download_and_compile.sh"

Postby E-HEC » Mon Aug 20, 2012 10:17 am

Will FGCOM and ATLAS work with the deb-package, if I compile them from the script?
E-HEC
 
Posts: 19
Joined: Mon Apr 16, 2012 3:14 pm

Re: Compiling flightgear with "download_and_compile.sh"

Postby islandmonkey » Mon Aug 20, 2012 10:24 am

Of course they will.
User avatar
islandmonkey
 
Posts: 787
Joined: Mon Jan 30, 2012 8:51 pm
Location: EGCN (uni), EGHI (home)
Callsign: G-MNKY
OS: Ubuntu 20.04

Re: Compiling flightgear with "download_and_compile.sh"

Postby E-HEC » Mon Aug 20, 2012 12:26 pm

Of course the won't :-)
They don't even compile. Looks like I have to compile it myself. Is there anywhere a description?
E-HEC
 
Posts: 19
Joined: Mon Apr 16, 2012 3:14 pm

Re: Compiling flightgear with "download_and_compile.sh"  

Postby islandmonkey » Mon Aug 20, 2012 2:42 pm

User avatar
islandmonkey
 
Posts: 787
Joined: Mon Jan 30, 2012 8:51 pm
Location: EGCN (uni), EGHI (home)
Callsign: G-MNKY
OS: Ubuntu 20.04

Re: Compiling flightgear with "download_and_compile.sh"

Postby brisa » Tue Aug 21, 2012 9:39 am

looks like a plib compilation error for me:
Making install in ssg
Code: Select all
make[2]: ingresso nella directory "/home/francesco/fgfs/build/plib/src/ssg"
g++ -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"plib\" -DVERSION=\"1.8.5\" -DHAVE_LIBPTHREAD=1 -DHAVE_LIBGL=1 -DHAVE_LIBDL=1 -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -I. -I../../../../plib/src/ssg -I../../../../plib/src/sg -I../../../../plib/src/util    -g -O2 -Wall -MT ssg.o -MD -MP -MF .deps/ssg.Tpo -c -o ssg.o ../../../../plib/src/ssg/ssg.cxx
In file included from ../../../../plib/src/ssg/ssgLocal.h:27:0,
                 from ../../../../plib/src/ssg/ssg.cxx:26:
../../../../plib/src/ssg/ssg.h:2879:6: error: #elif with no expression
make[2]: *** [ssg.o] Errore 1
make[2]: uscita dalla directory "/home/francesco/fgfs/build/plib/src/ssg"
make[1]: *** [install-recursive] Errore 1
make[1]: uscita dalla directory "/home/francesco/fgfs/build/plib/src"
make: *** [install-recursive] Errore 1


I hope somebody fixes it or suggestes me how to overcome it.
User avatar
brisa
 
Posts: 268
Joined: Fri May 16, 2008 7:32 pm
Location: Olgiate Comasco (CO) Italy
Callsign: brisa

Re: Compiling flightgear with "download_and_compile.sh"

Postby F-JJTH » Tue Aug 21, 2012 10:27 am

Maybe try with this adapted script for ubuntu : http://clemaez.fr/flightgear/download_and_compile.sh

I can't test, also some path are certainly outdated (simgear/2.4.0 for example...) But if PLIB compile succefully with this script you can use the PLIB part of this script ;)

Cheers,
Clément
User avatar
F-JJTH
 
Posts: 696
Joined: Fri Sep 09, 2011 11:02 am

Re: Compiling flightgear with "download_and_compile.sh"

Postby E-HEC » Wed Aug 22, 2012 1:00 pm

I compiled flightgear and the additional programs with the description in http://wiki.flightgear.org/Building_FlightGear_-_Debian. It was easier than I thought. So I don't need the script anymore. FGcom still makes some troubles but thats an other problem. The rest is working.
Thanks to everybody for the help!
E-HEC
 
Posts: 19
Joined: Mon Apr 16, 2012 3:14 pm

Re: Compiling flightgear with "download_and_compile.sh"

Postby xiii » Fri Aug 24, 2012 6:53 pm

brisa wrote in Tue Aug 21, 2012 9:39 am:looks like a plib compilation error for me:
Making install in ssg
Code: Select all
make[2]: ingresso nella directory "/home/francesco/fgfs/build/plib/src/ssg"
g++ -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"plib\" -DVERSION=\"1.8.5\" -DHAVE_LIBPTHREAD=1 -DHAVE_LIBGL=1 -DHAVE_LIBDL=1 -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -I. -I../../../../plib/src/ssg -I../../../../plib/src/sg -I../../../../plib/src/util    -g -O2 -Wall -MT ssg.o -MD -MP -MF .deps/ssg.Tpo -c -o ssg.o ../../../../plib/src/ssg/ssg.cxx
In file included from ../../../../plib/src/ssg/ssgLocal.h:27:0,
                 from ../../../../plib/src/ssg/ssg.cxx:26:
../../../../plib/src/ssg/ssg.h:2879:6: error: #elif with no expression
make[2]: *** [ssg.o] Errore 1
make[2]: uscita dalla directory "/home/francesco/fgfs/build/plib/src/ssg"
make[1]: *** [install-recursive] Errore 1
make[1]: uscita dalla directory "/home/francesco/fgfs/build/plib/src"
make: *** [install-recursive] Errore 1


I hope somebody fixes it or suggestes me how to overcome it.


Hi brisa,

I found this on the Internet : http://sourceforge.net/mailarchive/forum.php?thread_name=urve38lv8gklap4t7sghuoacejvresk9pj%404ax.com&forum_name=plib-devel

It works here: I just changed plib/src/ssg/ssg.h line 2879 from #elif to #else and it did compile. Makes sense. I supose a single sed line in the script would do the trick. (ubuntu 12.04 here).

BTW, what about an option to avoid downloading again fgdata ? I didn't found it in the script help.

Cheers (and thanks)

Alexis
If the engines are Pratt and Whitney, the seats best be Martin Baker
xiii
 
Posts: 472
Joined: Tue Jan 08, 2008 10:04 pm

Re: Compiling flightgear with "download_and_compile.sh"

Postby brisa » Sun Aug 26, 2012 7:22 am

I have updated the script. Now it works fine.
If you want to avoid fgdata then you can call the script with the FGFS switch and it will compile fgfs only.

Cheers
Francesco Angelo Brisa
User avatar
brisa
 
Posts: 268
Joined: Fri May 16, 2008 7:32 pm
Location: Olgiate Comasco (CO) Italy
Callsign: brisa


Return to Compiling

Who is online

Users browsing this forum: No registered users and 1 guest