Building terragear

Need help getting your computer to behave? Need help installing or running FG? Need help compiling? This is your first place to start!
User avatar
IAHM-COL
Posts: 6455
Joined: Sat Sep 12, 2015 3:43 pm
Location: Homey, NV (KXTA) - U.S.A
Contact:

Re: [SOLVED] Building terragear

Postby IAHM-COL » Sun May 22, 2016 3:53 am

wrong IP, I think
Check email
https://raw.githubusercontent.com/IAHM-COL/gpg-pubkey/master/pubkey.asc

R.M.S.
If we gave everybody in the World free software today, but we failed to teach them about the four freedoms, five years from now, would they still have it?

User avatar
swamp
Posts: 192
Joined: Sun Jan 10, 2016 1:55 am

Re: Building terragear

Postby swamp » Sat May 28, 2016 10:15 pm

Well now that you built it on my computer I'm trying to decode but got this error.

ogr-decode --max-segment 500 --area-type Default work/Default data/shapefiles/v0_landmass

ogr-decode version 2.1.0
Processing datasource data/shapefiles/v0_landmass
ERROR 6: Unable to load PROJ.4 library (libproj.so), creation of
OGRCoordinateTransformation failed.
Segmentation fault

User avatar
IAHM-COL
Posts: 6455
Joined: Sat Sep 12, 2015 3:43 pm
Location: Homey, NV (KXTA) - U.S.A
Contact:

Re: Building terragear

Postby IAHM-COL » Sat May 28, 2016 11:11 pm

:roll:

Sorry. I did not test drive it

Google

Code: Select all

Apt-get libproj


And install as needed, then try again
https://raw.githubusercontent.com/IAHM-COL/gpg-pubkey/master/pubkey.asc

R.M.S.
If we gave everybody in the World free software today, but we failed to teach them about the four freedoms, five years from now, would they still have it?

User avatar
IAHM-COL
Posts: 6455
Joined: Sat Sep 12, 2015 3:43 pm
Location: Homey, NV (KXTA) - U.S.A
Contact:

Re: Building terragear

Postby IAHM-COL » Sun May 29, 2016 3:39 am

I'm guessing you already installed libproj

I tried and it says that is already the newest version.

If you installed it, did it run ogr-decode now?
https://raw.githubusercontent.com/IAHM-COL/gpg-pubkey/master/pubkey.asc

R.M.S.
If we gave everybody in the World free software today, but we failed to teach them about the four freedoms, five years from now, would they still have it?

D-ECHO
Posts: 436
Joined: Sat Jan 30, 2016 10:55 am

Re: Building terragear

Postby D-ECHO » Sun May 29, 2016 6:46 am

Hi!
Sorry for disturbing :D but I am trying to build tg now on my laptop, but I get this error in sudo make install after cmake ran smoothly:

Code: Select all

In file included from /home/delta/Scenery/terragear/flightgear-terragear/src/Utils/poly2ogr/poly2ogr.cxx:41:0:
/home/delta/Scenery/terragear/flightgear-terragear/src/Utils/poly2ogr/poly2ogr.cxx: In function ‘void usage(const char*, const string&)’:
/home/delta/Scenery/terragear/flightgear-terragear/src/Utils/poly2ogr/poly2ogr.cxx:462:87: error: ‘class OGRSFDriver’ has no member named ‘GetDescription’
                 SG_LOG(SG_GENERAL, SG_INFO, "\t\t\t-f \"" << registrar->GetDriver(i)->GetDescription() << "\"");
                                                                                       ^
make[2]: *** [src/Utils/poly2ogr/CMakeFiles/poly2ogr.dir/poly2ogr.cxx.o] Fehler 1
make[1]: *** [src/Utils/poly2ogr/CMakeFiles/poly2ogr.dir/all] Fehler 2
make[1]: *** Auf noch nicht beendete Prozesse wird gewartet …
/home/delta/Scenery/terragear/flightgear-terragear/src/Prep/OGRDecode/ogr-decode.cxx: In function ‘int main(int, char**)’:
/home/delta/Scenery/terragear/flightgear-terragear/src/Prep/OGRDecode/ogr-decode.cxx:655:59: error: ‘GDAL_OF_VECTOR’ was not declared in this scope
     poDS = (GDALDataset*) GDALOpenEx( datasource.c_str(), GDAL_OF_VECTOR, NULL, NULL, NULL );
                                                           ^
/home/delta/Scenery/terragear/flightgear-terragear/src/Prep/OGRDecode/ogr-decode.cxx:655:92: error: ‘GDALOpenEx’ was not declared in this scope
     poDS = (GDALDataset*) GDALOpenEx( datasource.c_str(), GDAL_OF_VECTOR, NULL, NULL, NULL );
                                                                                            ^
/home/delta/Scenery/terragear/flightgear-terragear/src/Prep/OGRDecode/ogr-decode.cxx:667:29: error: ‘class GDALDataset’ has no member named ‘GetLayerByName’
             poLayer = poDS->GetLayerByName( argv[i] );
                             ^
/home/delta/Scenery/terragear/flightgear-terragear/src/Prep/OGRDecode/ogr-decode.cxx:677:30: error: ‘class GDALDataset’ has no member named ‘GetLayerCount’
         for (int i=0;i<poDS->GetLayerCount();i++) {
                              ^
/home/delta/Scenery/terragear/flightgear-terragear/src/Prep/OGRDecode/ogr-decode.cxx:678:29: error: ‘class GDALDataset’ has no member named ‘GetLayer’
             poLayer = poDS->GetLayer(i);
                             ^
make[2]: *** [src/Prep/OGRDecode/CMakeFiles/ogr-decode.dir/ogr-decode.cxx.o] Fehler 1
make[1]: *** [src/Prep/OGRDecode/CMakeFiles/ogr-decode.dir/all] Fehler 2
make: *** [all] Fehler 2

Anybody has an idea?
Thanks :D and Regards

User avatar
IAHM-COL
Posts: 6455
Joined: Sat Sep 12, 2015 3:43 pm
Location: Homey, NV (KXTA) - U.S.A
Contact:

Re: Building terragear

Postby IAHM-COL » Mon May 30, 2016 3:45 pm

what is your GDAL version?
https://raw.githubusercontent.com/IAHM-COL/gpg-pubkey/master/pubkey.asc

R.M.S.
If we gave everybody in the World free software today, but we failed to teach them about the four freedoms, five years from now, would they still have it?

D-ECHO
Posts: 436
Joined: Sat Jan 30, 2016 10:55 am

Re: Building terragear

Postby D-ECHO » Mon May 30, 2016 3:51 pm

libgdal-dev is 1.11.2+dfsg ...

User avatar
IAHM-COL
Posts: 6455
Joined: Sat Sep 12, 2015 3:43 pm
Location: Homey, NV (KXTA) - U.S.A
Contact:

Re: Building terragear

Postby IAHM-COL » Mon May 30, 2016 3:53 pm

That's probably your issue

as I told catalanoic here
viewtopic.php?f=28&t=564#p9704

The terragear thing has an exquisite level of requirement for GDAL
if the version is lower than 2.0.0 fails.
if the version if higher may not fail. Your scenery may.

So I advise you replace that for 2.0.0 or make a static linked library for terrager on gdal 2.0.0
https://raw.githubusercontent.com/IAHM-COL/gpg-pubkey/master/pubkey.asc

R.M.S.
If we gave everybody in the World free software today, but we failed to teach them about the four freedoms, five years from now, would they still have it?

D-ECHO
Posts: 436
Joined: Sat Jan 30, 2016 10:55 am

Re: Building terragear

Postby D-ECHO » Mon May 30, 2016 4:08 pm

Ah, trying to install libgdal2.0 from the debian package archive makes my computer wanting to remove many of my other programs....
Maybe it's time to get the next version of my system, AFAIK libgdal2.0 is already in xenial, but that'll take some time...
[EDIT] No, it isn't but the dependencies are that okay that it'll work (worked on my other pc with kubuntu xenial)

D-ECHO
Posts: 436
Joined: Sat Jan 30, 2016 10:55 am

Re: Building terragear

Postby D-ECHO » Mon May 30, 2016 4:20 pm

What version of linux are you running, Israel?
(and JWOCKY?) :D


Return to “Technical Support”

Who is online

Users browsing this forum: No registered users and 31 guests