Page 5 of 6

Re: [SOLVED] Building terragear

Posted: Sun May 22, 2016 3:53 am
by IAHM-COL
wrong IP, I think
Check email

Re: Building terragear

Posted: Sat May 28, 2016 10:15 pm
by swamp
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

Re: Building terragear

Posted: Sat May 28, 2016 11:11 pm
by IAHM-COL
:roll:

Sorry. I did not test drive it

Google

Code: Select all

Apt-get libproj


And install as needed, then try again

Re: Building terragear

Posted: Sun May 29, 2016 3:39 am
by IAHM-COL
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?

Re: Building terragear

Posted: Sun May 29, 2016 6:46 am
by D-ECHO
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

Re: Building terragear

Posted: Mon May 30, 2016 3:45 pm
by IAHM-COL
what is your GDAL version?

Re: Building terragear

Posted: Mon May 30, 2016 3:51 pm
by D-ECHO
libgdal-dev is 1.11.2+dfsg ...

Re: Building terragear

Posted: Mon May 30, 2016 3:53 pm
by IAHM-COL
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

Re: Building terragear

Posted: Mon May 30, 2016 4:08 pm
by D-ECHO
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)

Re: Building terragear

Posted: Mon May 30, 2016 4:20 pm
by D-ECHO
What version of linux are you running, Israel?
(and JWOCKY?) :D