Board index FlightGear Support Compiling

[SOLVED] I'm trying to compile V. 2018.3.0 with Ubuntu 18.4

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

[SOLVED] I'm trying to compile V. 2018.3.0 with Ubuntu 18.4

Postby abassign » Tue Jul 03, 2018 9:58 pm

I'm trying to compile, using the script: download_and_compile.sh, the version 2018.3.0 with Ubuntu 18.4 (the version I compiled perfectly with Ubuntu 17.10) ... but I immediately have this error and the compilation does not end correctly:

Code: Select all
...
Asking password for 'apt-get update'...
Scaricamento di:1 http://security.ubuntu.com/ubuntu bionic-security InRelease [83,2 kB]
Trovato:2 http://it.archive.ubuntu.com/ubuntu bionic InRelease
Trovato:3 http://it.archive.ubuntu.com/ubuntu bionic-updates InRelease                 
Trovato:4 http://it.archive.ubuntu.com/ubuntu bionic-backports InRelease               
Recuperati 83,2 kB in 0s (189 kB/s)                 
Lettura elenco dei pacchetti... Fatto
Considering a package alternative: libcurl4-openssl-dev libcurl4-gnutls-dev
Package alternative matched for libcurl4-openssl-dev
Considering a package alternative: libopenscenegraph-3.4-dev libopenscenegraph-dev libopenscenegraph-[0-9]+\.[0-9]+-dev
Package alternative matched for libopenscenegraph-3.4-dev
Considering a package alternative: libpng-dev libpng12-dev libpng16-dev
Package alternative matched for libpng-dev
Considering an optional package alternative: qml-module-qtquick2
Optional package alternative matched for qml-module-qtquick2
Considering an optional package alternative: qml-module-qtquick-window2
Optional package alternative matched for qml-module-qtquick-window2
Considering an optional package alternative: qml-module-qtquick-dialogs
Optional package alternative matched for qml-module-qtquick-dialogs
Considering an optional package alternative: qtbase5-private-dev
Optional package alternative matched for qtbase5-private-dev
Considering an optional package alternative: qtdeclarative5-private-dev
Optional package alternative matched for qtdeclarative5-private-dev
Asking password for 'apt-get install build-essential cmake git libcurl4-openssl-dev libarchive-dev libbz2-dev libexpat1-dev libjsoncpp-dev liblzma-dev libncurses5-dev procps zlib1g-dev libcgal-dev libgdal-dev libtiff5-dev libqt4-dev zlib1g-dev freeglut3-dev libboost-dev libopenscenegraph-3.4-dev libopenal-dev libudev-dev qt5-default qtdeclarative5-dev libdbus-1-dev libplib-dev libpng-dev qml-module-qtquick2 qml-module-qtquick-window2 qml-module-qtquick-dialogs qtbase5-private-dev qtdeclarative5-private-dev fluid libbz2-dev libfltk1.3-dev libxi-dev libxmu-dev libxinerama-dev libjpeg-dev libxft-dev python3-pyqt5 python3-pyqt5.qtmultimedia libqt5multimedia5-plugins python-tk'...
Lettura elenco dei pacchetti... Fatto
Generazione albero delle dipendenze       
Lettura informazioni sullo stato... Fatto
build-essential è già alla versione più recente (12.4ubuntu1).
cmake è già alla versione più recente (3.10.2-1ubuntu2).
libarchive-dev è già alla versione più recente (3.2.2-3.1).
libboost-dev è già alla versione più recente (1.65.1.0ubuntu1).
libbz2-dev è già alla versione più recente (1.0.6-8.1).
libdbus-1-dev è già alla versione più recente (1.12.2-1ubuntu1).
libexpat1-dev è già alla versione più recente (2.2.5-3).
libjpeg-dev è già alla versione più recente (8c-2ubuntu8).
libjsoncpp-dev è già alla versione più recente (1.7.4-3).
liblzma-dev è già alla versione più recente (5.2.2-1.3).
libpng-dev è già alla versione più recente (1.6.34-1).
libtiff5-dev è già alla versione più recente (4.0.9-5).
libudev-dev è già alla versione più recente (237-3ubuntu10).
libxft-dev è già alla versione più recente (2.3.2-1).
libxi-dev è già alla versione più recente (2:1.7.9-1).
libxinerama-dev è già alla versione più recente (2:1.1.3-1).
libxmu-dev è già alla versione più recente (2:1.1.2-2).
python-tk è già alla versione più recente (2.7.15~rc1-1).
qtbase5-private-dev è già alla versione più recente (5.9.5+dfsg-0ubuntu1).
zlib1g-dev è già alla versione più recente (1:1.2.11.dfsg-0ubuntu2).
fluid è già alla versione più recente (1.3.4-6).
freeglut3-dev è già alla versione più recente (2.8.1-3).
libcgal-dev è già alla versione più recente (4.11-2build1).
libfltk1.3-dev è già alla versione più recente (1.3.4-6).
libgdal-dev è già alla versione più recente (2.2.3+dfsg-2).
libopenal-dev è già alla versione più recente (1:1.18.2-2).
libopenscenegraph-3.4-dev è già alla versione più recente (3.4.1+dfsg1-3).
libplib-dev è già alla versione più recente (1.8.5-8).
libqt4-dev è già alla versione più recente (4:4.8.7+dfsg-7ubuntu1).
libqt5multimedia5-plugins è già alla versione più recente (5.9.5-0ubuntu1).
python3-pyqt5 è già alla versione più recente (5.10.1+dfsg-1ubuntu2).
python3-pyqt5.qtmultimedia è già alla versione più recente (5.10.1+dfsg-1ubuntu2).
qml-module-qtquick-dialogs è già alla versione più recente (5.9.5-0ubuntu1).
qml-module-qtquick-window2 è già alla versione più recente (5.9.5-0ubuntu1).
qml-module-qtquick2 è già alla versione più recente (5.9.5-0ubuntu1).
qt5-default è già alla versione più recente (5.9.5+dfsg-0ubuntu1).
qtdeclarative5-dev è già alla versione più recente (5.9.5-0ubuntu1).
qtdeclarative5-private-dev è già alla versione più recente (5.9.5-0ubuntu1).
git è già alla versione più recente (1:2.17.1-1ubuntu0.1).
libcurl4-openssl-dev è già alla versione più recente (7.58.0-2ubuntu3.1).
libncurses5-dev è già alla versione più recente (6.1-1ubuntu1.18.04).
procps è già alla versione più recente (2:3.3.12-3ubuntu1.1).
I seguenti pacchetti sono stati installati automaticamente e non sono più richiesti:
  extlinux fonts-hosny-amiri openscad-mcad python-renderpm python-reportlab python-reportlab-accel syslinux syslinux-common ttf-marvosym
Usare "sudo apt autoremove" per rimuoverli.
0 aggiornati, 0 installati, 0 da rimuovere e 0 non aggiornati.


I try to use the older 2018.3.0 version compiled in the 2017.10 Ubuntu, but when start ...

Code: Select all
./run_fgfs.sh --launcher
./fgfs: error while loading shared libraries: libosgText.so.130: cannot open shared object file: No such file or directory


Has anyone understood if the problem can be solved? Thank you :)
Last edited by abassign on Thu Jul 05, 2018 6:30 pm, edited 2 times in total.
Developer of the program https://wiki.flightgear.org/Julia_photoscenery_generator
FDM developer of the G91R1B aircraft https://wiki.flightgear.org/FIAT_G91R1B
JSBSim collaborator
abassign
 
Posts: 947
Joined: Mon Feb 27, 2012 6:09 pm
Location: Italy (living 5 Km from airport LIME)
Callsign: I-BASSY
Version: 2020.4
OS: Ubuntu 20.10

Re: I'm trying to compile V. 2018.3.0 with Ubuntu 18.4 ... b

Postby wkitty42 » Wed Jul 04, 2018 5:31 pm

several folks have had problems with FG and *buntu 18.04... the ones that i'm aware of moved back to the previous LTS... 18.04 still needs a little more baking, IMHO...

you're also the second person today to post about libosgText.so.130... have either of you tried building OSG on your machine and letting FG use that instead of the system installed versions? that's what i do here... the d&c script is already set up to build OSG... be warned, though, it is big and takes some time to build... on my 8-core 4Ghz system, using all 8 cores, building OSG from nothing takes 20 or 30 minutes... the big benefit is that FG will build and run no matter what the system's installed stuff is...

Code: Select all
CFLAGS="-march=native" CPPFLAGS="-march=native" $MYFGBASEDIR/dnc.sh -p n -j 8 -b RelWithDebInfo -f Release OSG SIMGEAR FGFS DATA


my d&c is using the OpenSceneGraph-3.4 branch... the libosgText.so that it builds is libosgText.so.131 and it is also 64bit... are you 32bit or 64bit?
"You get more air close to the ground," said Angalo. "I read that in a book. You get lots of air low down, and not much when you go up."
"Why not?" said Gurder.
"Dunno. It's frightened of heights, I guess."
User avatar
wkitty42
 
Posts: 9148
Joined: Fri Feb 20, 2015 4:46 pm
Location: central NC, USA
Callsign: wk42
Version: git next
OS: Kubuntu 20.04

Re: I'm trying to compile V. 2018.3.0 with Ubuntu 18.4 [Solv

Postby abassign » Thu Jul 05, 2018 6:23 pm

The solution (reported in a subsequent post) is to install this package on Ubuntu and derivatives:

Image

At this point I remembered that the problem had already been reported. The solution would be to modify the "download_and_compile.sh" script by adding a line of code (from line 339):

# FG
PKG="$PKG libopenal-dev libudev-dev qt5-default qtdeclarative5-dev libdbus-1-dev libplib-dev"

With this add:

# FG
PKG="$PKG libopenal-dev libudev-dev qt5-default qtdeclarative5-dev libdbus-1-dev libplib-dev libqt5xdg-dev libqt5xdgiconloader-dev"

He immediately worked!

Unfortunately no one has fixed the problem of the script, it would be nice to fix it. I point out that I tried, before knowing the solution, to install FGFS on:

Ubuntu 17.10 and 18.4 and Linux MInt 18.3 and 19.1 !

Note:
Probably the libraries I have used are not the most correct, but they are sufficient, due to the automatic method to satisfy dependencies, to solve the problem. I expect some more experienced programmer to me to find the correct change.
Developer of the program https://wiki.flightgear.org/Julia_photoscenery_generator
FDM developer of the G91R1B aircraft https://wiki.flightgear.org/FIAT_G91R1B
JSBSim collaborator
abassign
 
Posts: 947
Joined: Mon Feb 27, 2012 6:09 pm
Location: Italy (living 5 Km from airport LIME)
Callsign: I-BASSY
Version: 2020.4
OS: Ubuntu 20.10


Return to Compiling

Who is online

Users browsing this forum: No registered users and 3 guests