Board index FlightGear Support Installation Linux

[Script] download_and_compile for TERRAGEAR-CS

Installing FlightGear, scenery, aircraft etc. on Linux systems like Ubuntu.

Re: [Script] download_and_compile for TERRAGEAR-CS

Postby F-JJTH » Sun Jul 29, 2012 12:54 am

Hi Aurel,

I have recently updated my script. Can you download the last version ? (Same link)

Personnaly, I have successfully compiled terragear with my script 3 days ago (with the latest update). I use Linux Mint 11.

If the problem still with the last update, please can you paste the content of your terminal and the content of the log file (created by the script in the script directory)

In this way I can try to help you.

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

Re: [Script] download_and_compile for TERRAGEAR-CS

Postby athomi » Sun Jul 29, 2012 10:56 am

Hi Clément

I downloaded your script this morning and gave it another try and guess what happend ;-) now i was able to build the terragear on my Virtual Ubuntu 11.10 (VBox) successfully.
Thank you for the quick response and your help.

Cheers,
Aurel
athomi
 
Posts: 3
Joined: Tue May 15, 2012 9:42 pm

Re: [Script] download_and_compile for TERRAGEAR-CS

Postby August » Sun Sep 16, 2012 11:43 am

Hi Clément,

thank you for your script. I'm trying to get terragear working with it since two weeks. First I tried it on Ubuntu 12.04. Now It startet trying it on DEBIAN. Everything is working well during compiling. Simgear and OSG are compiled perfectly. But it always suddenly stops when it comes to terrager:

Code: Select all
/home/august/Terragear/build/simgear
****************************************
*************** TERRAGEAR **************
****************************************
terragear exists already.
Already on 'newconstruct'
Already up-to-date.
/home/august/Terragear/install/simgear
-- The C compiler identification is GNU
-- The CXX compiler identification is GNU
-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Boost version: 1.42.0
-- Found ZLIB: /usr/include
-- Looking for include files CMAKE_HAVE_PTHREAD_H
-- Looking for include files CMAKE_HAVE_PTHREAD_H - found
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE
-- SimGear include directory: /home/august/Terragear/install/simgear/include
-- found SimGear version: 2.9.0 (needed at least 2.5.0)
-- looking for static SimGear libraries
-- Looking for clock_gettime in rt
-- Looking for clock_gettime in rt - found
-- found SimGear libraries
-- Performing Test SIMGEAR_COMPILE_TEST
-- Performing Test SIMGEAR_COMPILE_TEST - Success
-- Found SimGear: optimized;/home/august/Terragear/install/simgear/lib/libsgephem.a;debug;/home/august/Terragear/install/simgear/lib/libsgephem.a;optimized;/home/august/Terragear/install/simgear/lib/libsgsky.a;debug;/home/august/Terragear/install/simgear/lib/libsgsky.a;optimized;/home/august/Terragear/install/simgear/lib/libsgmaterial.a;debug;/home/august/Terragear/install/simgear/lib/libsgmaterial.a;optimized;/home/august/Terragear/install/simgear/lib/libsgtgdb.a;debug;/home/august/Terragear/install/simgear/lib/libsgtgdb.a;optimized;/home/august/Terragear/install/simgear/lib/libsgmodel.a;debug;/home/august/Terragear/install/simgear/lib/libsgmodel.a;optimized;/home/august/Terragear/install/simgear/lib/libsgscreen.a;debug;/home/august/Terragear/install/simgear/lib/libsgscreen.a;optimized;/home/august/Terragear/install/simgear/lib/libsgnasal.a;debug;/home/august/Terragear/install/simgear/lib/libsgnasal.a;optimized;/home/august/Terragear/install/simgear/lib/libsgtiming.a;debug;/home/august/Terragear/install/simgear/lib/libsgtiming.a;optimized;/home/august/Terragear/install/simgear/lib/libsgio.a;debug;/home/august/Terragear/install/simgear/lib/libsgio.a;optimized;/home/august/Terragear/install/simgear/lib/libsgbucket.a;debug;/home/august/Terragear/install/simgear/lib/libsgbucket.a;optimized;/home/august/Terragear/install/simgear/lib/libsgserial.a;debug;/home/august/Terragear/install/simgear/lib/libsgserial.a;optimized;/home/august/Terragear/install/simgear/lib/libsgmath.a;debug;/home/august/Terragear/install/simgear/lib/libsgmath.a;optimized;/home/august/Terragear/install/simgear/lib/libsgstructure.a;debug;/home/august/Terragear/install/simgear/lib/libsgstructure.a;optimized;/home/august/Terragear/install/simgear/lib/libsgprops.a;debug;/home/august/Terragear/install/simgear/lib/libsgprops.a;optimized;/home/august/Terragear/install/simgear/lib/libsgxml.a;debug;/home/august/Terragear/install/simgear/lib/libsgxml.a;optimized;/home/august/Terragear/install/simgear/lib/libsgmisc.a;debug;/home/august/Terragear/install/simgear/lib/libsgmisc.a;optimized;/home/august/Terragear/install/simgear/lib/libsgthreads.a;debug;/home/august/Terragear/install/simgear/lib/libsgthreads.a;optimized;/home/august/Terragear/install/simgear/lib/libsgdebug.a;debug;/home/august/Terragear/install/simgear/lib/libsgdebug.a;optimized;/home/august/Terragear/install/simgear/lib/libsgmagvar.a;debug;/home/august/Terragear/install/simgear/lib/libsgmagvar.a
CMake Error at CMakeLists.txt:75 (find_package):
  Could not find module FindCGAL.cmake or a configuration file for package
  CGAL.

  Adjust CMAKE_MODULE_PATH to find FindCGAL.cmake or set CGAL_DIR to the
  directory containing a CMake configuration file for CGAL.  The file will
  have one of the following names:

    CGALConfig.cmake
    cgal-config.cmake



CMake Error at CMakeLists.txt:77 (message):
  CGAL >= 4.0 is required.  Found .


-- Configuring incomplete, errors occurred!
make: *** Keine Targets angegeben und keine »make«-Steuerdatei gefunden.  Schluss.
make: *** Keine Regel, um »install« zu erstellen.  Schluss.
/home/august/Terragear
****************************************
************* TERRAGEAR GUI ************
****************************************
terrageargui exists already.
Already on 'master'
Already up-to-date.


Could you please help me, getting it running?

Regards,
August
August
 
Posts: 4
Joined: Sun Sep 16, 2012 11:05 am
Location: EDDP
Callsign: BAW1522 / DLH1522
Version: 2.6
OS: Ubuntu 12.04

Re: [Script] download_and_compile for TERRAGEAR-CS

Postby F-JJTH » Sun Sep 16, 2012 12:16 pm

HI August,

It seems that your CGAL is missing. Hopefully it's a simple problem :)
How to solve it ? You need to install libcgal-dev 4.0.2 (available in Ubuntu 12.10) : http://packages.debian.org/sid/libcgal-dev

If you have Ubuntu 12.04 you can upgrade your package repository like that :
- Open Synaptic, go to "Settings > Repositories"
- In the "Software Sources" windows go to "Other software" tab
- Now edit all entries by replace the "Distribution" by quantal example: "natty" become "quantal", "natty-security" become "quantal-security"

After that you can reload your package and upgrade all your software and install the last libcgal-dev

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

Re: [Script] download_and_compile for TERRAGEAR-CS

Postby dvanmosselbeen » Sun Sep 16, 2012 3:28 pm

Hi Clement,

For your information, Debian doesn't make use of a by default "usable" sudo config file. Which means this script won't work :( At the step of executing the sudo command, the script(sudo) will ask you a password, but your username isn't in the /etc/sudoers file.

A dangerous quickfix (which grant root priviledges) (run visudo as root user and add):

Code: Select all
MY_USERNAME ALL = (ALL) ALL


I also bet that anyone using this terragear_download_and_compile.sh script, already make use of the git version of FG. So it's maybe more practical to not compile by default stuff that is probably already installed for FGFS. Instead, make them optional by default.

Great job!
Kind regards,
David
Proud to work on Belgian sceneries: https://github.com/dvanmosselbeen and the Rans S-6S aircraft: https://github.com/dvanmosselbeen/Rans-S-6S
dvanmosselbeen
 
Posts: 68
Joined: Sat Feb 26, 2011 3:54 pm
Location: Brussel
Callsign: B-ITCH
IRC name: dvanmosselbeen
Version: git
OS: Debian / Windwoss

Re: [Script] download_and_compile for TERRAGEAR-CS

Postby August » Sun Sep 16, 2012 5:42 pm

dvanmosselbeen wrote in Sun Sep 16, 2012 3:28 pm:For your information, Debian doesn't make use of a by default "usable" sudo config file.

Thank you David for that information. I solved this problem by putting my user name into the sudoers group in Debian.

August
Maintainer and ATC at Leipzig/Halle Airport (EDDP)
August
 
Posts: 4
Joined: Sun Sep 16, 2012 11:05 am
Location: EDDP
Callsign: BAW1522 / DLH1522
Version: 2.6
OS: Ubuntu 12.04

Re: [Script] download_and_compile for TERRAGEAR-CS

Postby F-JJTH » Sun Sep 16, 2012 5:44 pm

Hi David,

Feel you free to tweak my script and let me know your change. In this way I can update my script with your change :)

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

Re: [Script] download_and_compile for TERRAGEAR-CS

Postby btw » Tue Jan 22, 2013 3:25 am

Has anyone managed to get the script to download an install terragear in ubuntu 12.04 ? ie could anyone get libcgal-dev=4.0.2-1 and other required quantal stuff on 12.04 ?

It does work for terragear Gui but not terragear
btw
 
Posts: 63
Joined: Sun Nov 06, 2011 9:53 pm

Re: [Script] download_and_compile for TERRAGEAR-CS

Postby pohie » Tue Jan 22, 2013 6:44 pm

Hi Clément! (or any helper)

Sorry when i am too noob, but i want to ask some help. I downloaded the srcipt and runned as it has writen. It goes properly, but when i try use the terragear GUI, it want the genapts. But it isn't anywhere...
How can i fix it?

Thanks for help!
Stephen
pohie
 
Posts: 17
Joined: Sun Oct 17, 2010 1:25 pm

Re: [Script] download_and_compile for TERRAGEAR-CS

Postby pohie » Wed Jan 23, 2013 6:54 pm

Hi!

I find some nearest info with chek it again. During the work it says:

Found GDAL: /usr/lib/libgdal.so (Required is at least version "1.6.0")
CMake Error at /usr/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:97 (MESSAGE):
Could NOT find TIFF (missing: TIFF_LIBRARY TIFF_INCLUDE_DIR)
Call Stack (most recent call first):
/usr/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:288 (_FPHSA_FAILURE_MESSAGE)
/usr/share/cmake-2.8/Modules/FindTIFF.cmake:40 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
CMakeLists.txt:97 (find_package)


-- Configuring incomplete, errors occurred!
make: *** No targets specified and no makefile found. Stop.
make: *** No rule to make target `install'. Stop.

I use Ubuntu 12.10.

Thanks!
Stephen
pohie
 
Posts: 17
Joined: Sun Oct 17, 2010 1:25 pm

Re: [Script] download_and_compile for TERRAGEAR-CS

Postby Soitanen » Sun Mar 24, 2013 4:11 pm

F-JJTH, is it possible to get some earlier versions of scripts? Latest version downloads not from master branch and suddenly doesn't see my local changes to code. But I rewrote original script, downloaded from the same place, as now.
Boeing 737-300. Reworked cockpit, FDM, autopilot and much more. WIP.
Boeing 737-800. WIP. Canvas PFD and ND.
Antonov An-24B. Made from scratch. Very good FDM. 3D model by Adrian. WIP.
Project Russia (some cities, based on OSM with custom objects).
Soitanen
 
Posts: 489
Joined: Sat Jun 16, 2012 7:50 am
Location: Saint-Petersburg, Russia
Version: git
OS: Linux Mint 17

Re: [Script] download_and_compile for TERRAGEAR-CS

Postby F-JJTH » Sun Mar 24, 2013 5:49 pm

Latest version download from my personnal repo because I've added multi-threading support to terrafit and removed a problem when .ind file are read. These changes are not present in official repo.
I've just uploaded a new version 2.63 which download the official master branch but I can't test because now TG doesn't compile for me since some weeks :( It looks like a problem about g++ but even with downgrade the problem still.

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

Re: [Script] download_and_compile for TERRAGEAR-CS

Postby Soitanen » Sun Mar 24, 2013 6:14 pm

Thanks. While waiting for your answer, I have learned to build TG by hands and even wrote little script for myself! :)

I'm using Ubuntu and everything compiles normally.
Boeing 737-300. Reworked cockpit, FDM, autopilot and much more. WIP.
Boeing 737-800. WIP. Canvas PFD and ND.
Antonov An-24B. Made from scratch. Very good FDM. 3D model by Adrian. WIP.
Project Russia (some cities, based on OSM with custom objects).
Soitanen
 
Posts: 489
Joined: Sat Jun 16, 2012 7:50 am
Location: Saint-Petersburg, Russia
Version: git
OS: Linux Mint 17

Re: [Script] download_and_compile for TERRAGEAR-CS

Postby wrg » Wed Nov 04, 2015 10:36 pm

scenery of Russia updated 20 Jul 2015 https://github.com/soitanen/Project-Russia
wrg
 
Posts: 87
Joined: Mon Dec 06, 2010 12:46 pm
Location: ULLI Saint-Petersburg
Callsign: R-wrg
Version: 2020.4.0
OS: Debian GNU/Linux

Re: [Script] download_and_compile for TERRAGEAR-CS

Postby pommesschranke » Thu Nov 05, 2015 12:30 am

try using the standard download_and_compile.sh to build Terragear:

http://wiki.flightgear.org/Scripted_Com ... ne_program
pommesschranke
 
Posts: 1117
Joined: Sat Apr 27, 2013 8:58 pm
Location: EDLM & LJCE
Callsign: d-laser
IRC name: laserman
Version: git
OS: Linux Kubuntu 22.04

PreviousNext

Return to Linux

Who is online

Users browsing this forum: No registered users and 1 guest