Board index FlightGear Support Compiling

building TerraGear

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

building TerraGear

Postby kuifje09 » Wed Aug 10, 2011 8:15 pm

I have loaded all software to build TerraGear. But there are some errors in the source.

The sourcefile apt_surface.cxx has some errors related to lower / capital names. I could solve that because I found an answer to that.
A few column should be Column and nrows as Nrows .
But this one I cannot solve:
A snipped at the end,
Code: Select all
make[3]: Entering directory `/home/flight/TerraGear/terragear-cs/src/Airports/GenAirports'
g++ -DHAVE_CONFIG_H -I. -I../../../src/Include -I../../.. -I../../../src -I../../../src/Lib -I../../../src/BuildTiles    -g -O2 -MT apt_surface.o -MD -MP -MF .deps/apt_surface.Tpo -c -o apt_surface.o apt_surface.cxx
apt_surface.cxx: In function ‘ColumnVector qr_method(Real*, Real*, Real*, Real*, Real*, Real*, Real*, Real*, Real*, Real*, Real*, Real*, Real*, Real*, Real*, Real*, int, int)’:
apt_surface.cxx:345:30: error: ‘sum_square’ was not declared in this scope
apt_surface.cxx:363:45: error: ‘class DiagonalMatrix’ has no member named ‘as_column’
make[3]: *** [apt_surface.o] Error 1


Does someone seen this before and know how to solve.?
kuifje09
 
Posts: 596
Joined: Tue May 17, 2011 9:51 pm

Re: building TerraGear

Postby kuifje09 » Mon Aug 15, 2011 2:20 pm

Realy nobody using terragear on linux ?
kuifje09
 
Posts: 596
Joined: Tue May 17, 2011 9:51 pm

Re: building TerraGear

Postby Andreas » Tue Nov 01, 2011 4:21 pm

I ran into the same problem and what solved it was installing the newest version of newmat (newmat11) by compiling it from source.
In the terragear directory read README.newmat and follow the instructions.
You may also want to take a look here for a workaround of the "cannot find -lepsilon" -problem: viewtopic.php?f=5&t=14070

Worked for me on an AMD64 Debian system.
YEAH YEAH YEAH!
To an optimist, the glass is half full.
To a pessimist, the glass is half empty.
To an engineer, it's twice the size it needs to be.
User avatar
Andreas
 
Posts: 128
Joined: Sat Mar 14, 2009 7:11 pm
Callsign: D-AZ
Version: 3.4.1
OS: Debian Buster

Re: building TerraGear

Postby kuifje09 » Wed Nov 02, 2011 10:58 pm

Thanks for the post, I almost forgot about it.
Will give it a try one day. but currently busy designing a plane ( Uhm .. )
kuifje09
 
Posts: 596
Joined: Tue May 17, 2011 9:51 pm

Re: building TerraGear

Postby Maerchenprinz » Fri Nov 25, 2011 9:12 pm

Hi all!

I'm trying to compile TerraGear-cs and ran into an error while making TG:
All SG's (simgear-git (yester- and today), simgear-cs, simgear-2.4.0 and Distro-SG), gpc232 and newmat11 compile fine. :D
TerraGear doesn't with any of them. :(
Any attempt ends with the following error:

Code: Select all
adrian@meiner:~/Programme/terragear-cs$ make

----SNIP-----

mv -f .deps/testarray.Tpo .deps/testarray.Po
g++  -g -O2   -o testarray testarray.o libArray.a -lsgbucket -lsgmath -lsgmisc -lsgdebug -lsgxml  -lz  -lrt -lm
testarray.o: In function `main':
/home/adrian/Programme/terragear-cs/src/Lib/Array/testarray.cxx:62: undefined reference to `SGPath::isDir() const'
/home/adrian/Programme/terragear-cs/src/Lib/Array/testarray.cxx:82: undefined reference to `SGPath::isDir() const'
collect2: ld gab 1 als Ende-Status zurück
make[3]: *** [testarray] Fehler 1
make[3]: Verlasse Verzeichnis '/home/adrian/Programme/terragear-cs/src/Lib/Array'
make[2]: *** [all-recursive] Fehler 1
make[2]: Verlasse Verzeichnis '/home/adrian/Programme/terragear-cs/src/Lib'
make[1]: *** [all-recursive] Fehler 1
make[1]: Verlasse Verzeichnis '/home/adrian/Programme/terragear-cs/src'
make: *** [all-recursive] Fehler 1


I have then removed the "directory-check" in testarray.cxx, line 62-64 (knowing nothing about programming, bad idea! :oops: )
At least, after that, compilation went longer until another error with keyword "SGPath:

Code: Select all
....
/usr/local/include/simgear/misc/sg_dir.hxx:42:9: Anmerkung: simgear::Dir::Dir(const simgear::Dir&)
/usr/local/include/simgear/misc/sg_dir.hxx:42:9: Anmerkung:   Kandidat erwartet 1 Argument, 0 angegeben
hgt.cxx: In Elementfunktion »bool TGHgt::open(const SGPath&)«:
hgt.cxx:95:38: Warnung: Der Rückgabewert von »int system(const char*)«, der mit dem Attribut warn_unused_result deklariert wurde, wird ignoriert [-Wunused-result]
make[3]: *** [hgt.o] Fehler 1


Do I have to set a variable SGPath? If so, where? And how? And why? And FOREVER?!?!?!?! :shock:

Ciao,
Adrian

P.S.: Sorry, forgot to mention: OS is Ubuntu 11.10 (64bit), g++ vers. 4.6.1
User avatar
Maerchenprinz
 
Posts: 306
Joined: Thu Mar 15, 2007 6:24 pm
Location: Bochum, it's better, much better than you think!
Callsign: Adrian

Re: building TerraGear

Postby Sealbhach » Tue Dec 20, 2011 4:31 pm

I'm coming up against a problem compiling Terrorgear, look like the same problem:

Code: Select all
Making all in HGT
make[3]: Entering directory `/home/sealbhach/Terragear/terragear-cs/src/Lib/HGT'
g++ -DHAVE_CONFIG_H -I. -I../../../src/Include -I../../../src    -g -O2 -MT hgt.o -MD -MP -MF .deps/hgt.Tpo -c -o hgt.o hgt.cxx
In file included from hgt.hxx:33:0,
                 from hgt.cxx:49:
srtmbase.hxx: In constructor ‘TGSrtmBase::TGSrtmBase()’:
srtmbase.hxx:39:41: error: no matching function for call to ‘simgear::Dir::Dir()’
srtmbase.hxx:39:41: note: candidates are:
/usr/include/simgear/misc/sg_dir.hxx:42:5: note: simgear::Dir::Dir(const simgear::Dir&, const SGPath&)
/usr/include/simgear/misc/sg_dir.hxx:42:5: note:   candidate expects 2 arguments, 0 provided
/usr/include/simgear/misc/sg_dir.hxx:41:5: note: simgear::Dir::Dir(const SGPath&)
/usr/include/simgear/misc/sg_dir.hxx:41:5: note:   candidate expects 1 argument, 0 provided
/usr/include/simgear/misc/sg_dir.hxx:38:9: note: simgear::Dir::Dir(const simgear::Dir&)
/usr/include/simgear/misc/sg_dir.hxx:38:9: note:   candidate expects 1 argument, 0 provided
hgt.cxx: In member function ‘bool TGHgt::open(const SGPath&)’:
hgt.cxx:91:23: error: ‘tempDir’ is not a member of ‘simgear::Dir’
hgt.cxx:93:75: error: ‘class simgear::Dir’ has no member named ‘path’
hgt.cxx:94:54: error: ‘class simgear::Dir’ has no member named ‘path’
hgt.cxx:99:35: error: ‘const class SGPath’ has no member named ‘lower_extension’
hgt.cxx:95:38: warning: ignoring return value of ‘int system(const char*)’, declared with attribute warn_unused_result [-Wunused-result]
make[3]: *** [hgt.o] Error 1
make[3]: Leaving directory `/home/sealbhach/Terragear/terragear-cs/src/Lib/HGT'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/sealbhach/Terragear/terragear-cs/src/Lib'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/sealbhach/Terragear/terragear-cs/src'
make: *** [all-recursive] Error 1


OS is Ubuntu 11.10 (64bit), g++ vers. 4.6.1

.
Sealbhach
 
Posts: 934
Joined: Wed Jun 30, 2010 10:17 am

Re: building TerraGear

Postby Sealbhach » Wed Dec 21, 2011 11:06 pm

Anybody manage to compile terragear recently? I'm using Simgear 2.4.

.
Sealbhach
 
Posts: 934
Joined: Wed Jun 30, 2010 10:17 am

Re: building TerraGear

Postby psadro_gm » Thu Dec 22, 2011 6:30 pm

Sealbhach wrote in Wed Dec 21, 2011 11:06 pm:Anybody manage to compile terragear recently? I'm using Simgear 2.4..


If you are compiling terragear from GIT, you'll need to compile simgear from GIT as well. The simgear directory code (simgear::Dir::Dir()) has just been reworked.
8.50 airport parser, textured roads and streams...
psadro_gm
 
Posts: 751
Joined: Thu Aug 25, 2011 3:23 am
Location: Atlanta, GA USA
IRC name: psadro_*
Version: git
OS: Fedora 21

Re: building TerraGear

Postby Sealbhach » Fri Dec 23, 2011 4:14 am

Thanks psadro, I already have the git version of Simgear installed using the download and compile script, so all I had to do was run

Code: Select all
./configure --with-simgear=/home/sealbhach/Games/FlightgearGit/simgear


which solved the problem. Thanks for your help.
Sealbhach
 
Posts: 934
Joined: Wed Jun 30, 2010 10:17 am

Re: building TerraGear

Postby fraze » Fri Feb 24, 2012 9:19 pm

Hello All

Trying to compile terragear on ubuntu 11.10 64 bits also and I run into the same issue with "srtmbase.hxx:39:41: erreur: no matching function for call to ‘simgear::Dir::Dir()’"

both terragear-cs and simgear-cs were retrieved through git tonight.

Worth to mention, Flightgear 2.4 is installed, and simgear 2.4 too.

I was able to successfully compile simgear-cs, and install it in the default directory /usr/local/lib and include.

I am wondering if there is a conflict between the already installed 2.4 release of simgear, and the version retrieved by Git (2.6 ? this is not clear to me)

Help welcomed!

Thanks

François
fraze
 
Posts: 19
Joined: Thu Feb 16, 2012 4:22 pm
Location: France
Callsign: F-MOOR
Version: 2_6
OS: Ubuntu 11.10

Re: building TerraGear

Postby fraze » Fri Feb 24, 2012 10:00 pm

mmmh

looks like I have downloaded simgear 2.2 source code.

Does anyone can provide me with the right link to dowload the up to date sources ? (git ?)

Thanks

François
fraze
 
Posts: 19
Joined: Thu Feb 16, 2012 4:22 pm
Location: France
Callsign: F-MOOR
Version: 2_6
OS: Ubuntu 11.10

Re: building TerraGear

Postby F-JJTH » Sat Feb 25, 2012 1:02 am

Hi François,

I've create a download and compile script for Terragear-cs with 850apt support here : viewtopic.php?f=20&t=14849
I think this script can help you.

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

Re: building TerraGear

Postby fraze » Sat Feb 25, 2012 12:42 pm

Hi Clément

Thanks to your script, I think I have mostly succeeded having terragear-cs and gui compiled.

I say mostly because during compilation (of openscenegraphs I believe) I have noticed this error:

Code: Select all
make[2]: *** Pas de règle pour fabriquer la cible « /usr/lib/libGL.so », nécessaire pour « lib/libosg.so.3.0.1 ». Arrêt.
make[1]: *** [src/osg/CMakeFiles/osg.dir/all] Erreur 2
make: *** [all] Erreur 2
[  0%] Built target OpenThreads
make[2]: *** Pas de règle pour fabriquer la cible « /usr/lib/libGL.so », nécessaire pour « lib/libosg.so.3.0.1 ». Arrêt.
make[1]: *** [src/osg/CMakeFiles/osg.dir/all] Erreur 2
make: *** [all] Erreur 2


In a previous post, you stated that this error was solved. Do not seem to work for me ? Anyway, it did not prevent the script to go on... (which is odd to me)

I have also noticed that the script installs git-core. in Ubuntu 11.10 this package is tagged obsolete.the newest package is 'git'.

I will let you know if I run into problems. If everything works fine, I should start soon improving Moorea scenery... I will let you know also !

Thanks again.

François
fraze
 
Posts: 19
Joined: Thu Feb 16, 2012 4:22 pm
Location: France
Callsign: F-MOOR
Version: 2_6
OS: Ubuntu 11.10

Re: building TerraGear

Postby F-JJTH » Sat Feb 25, 2012 1:25 pm

Hi François,

libGL.so is provided by your graphic driver. Thus some questions :
- Which graphic card do you use ? (Nvidia or Ati)
- Which driver version do you use ?

If you use Nvidia card I recommand you to download and install the last version of driver available here : http://www.nvidia.fr/Download/index.aspx?lang=fr

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

Re: building TerraGear

Postby fraze » Sun Feb 26, 2012 12:30 pm

HI Clément

I am using an Nvidia GeForce 315 with driver version being 280.13
I am not keen to download the one from the nvidia site, as I am bit afraid of maintainability of my ubuntu installation :oops: .

I'd rather wait for the next ubuntu release...

For now, I have not run into any terragear problem, so I will keep things as they are. Time will tell.
Plus, I am struggling with QGIS and Landsat data for Moorea... Once I'll get that fixed, I will have more time for terragear...

Thanks again

François
fraze
 
Posts: 19
Joined: Thu Feb 16, 2012 4:22 pm
Location: France
Callsign: F-MOOR
Version: 2_6
OS: Ubuntu 11.10

Next

Return to Compiling

Who is online

Users browsing this forum: No registered users and 4 guests