Board index FlightGear Support Compiling

d&c terragear compile script failure on Debian  Topic is solved

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

d&c terragear compile script failure on Debian

Postby wlbragg » Tue Sep 22, 2015 1:45 am

Any ideas anyone?

I've got everything else working except this.

Code: Select all
Scanning dependencies of target ogr-decode
[ 48%] Building CXX object src/Prep/OGRDecode/CMakeFiles/ogr-decode.dir/ogr-decode.cxx.o
/home/wayne/FlightGear/next/terragear/src/Prep/OGRDecode/ogr-decode.cxx: In function ‘int main(int, char**)’:
/home/wayne/FlightGear/next/terragear/src/Prep/OGRDecode/ogr-decode.cxx:667:29: error: ‘class GDALDataset’ has no member named ‘GetLayerByName’
             poLayer = poDS->GetLayerByName( argv[i] );
                             ^
/home/wayne/FlightGear/next/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/wayne/FlightGear/next/terragear/src/Prep/OGRDecode/ogr-decode.cxx:678:29: error: ‘class GDALDataset’ has no member named ‘GetLayer’
             poLayer = poDS->GetLayer(i);
                             ^
In file included from /home/wayne/FlightGear/next/install/simgear/include/simgear/math/SGGeoc.hxx:21:0,
                 from /home/wayne/FlightGear/next/install/simgear/include/simgear/math/SGMath.hxx:34,
                 from /home/wayne/FlightGear/next/install/simgear/include/simgear/math/sg_geodesy.hxx:4,
                 from /home/wayne/FlightGear/next/terragear/src/Prep/OGRDecode/ogr-decode.cxx:36:
/home/wayne/FlightGear/next/install/simgear/include/simgear/constants.h: At global scope:
/home/wayne/FlightGear/next/install/simgear/include/simgear/constants.h:70:13: warning: ‘SG_DEGREES_TO_RADIANS’ defined but not used [-Wunused-variable]
 const float SG_DEGREES_TO_RADIANS = SG_PI / 180.0f;
             ^
/home/wayne/FlightGear/next/install/simgear/include/simgear/constants.h:71:13: warning: ‘SG_RADIANS_TO_DEGREES’ defined but not used [-Wunused-variable]
 const float SG_RADIANS_TO_DEGREES = 180.0f / SG_PI;
             ^
src/Prep/OGRDecode/CMakeFiles/ogr-decode.dir/build.make:54: recipe for target 'src/Prep/OGRDecode/CMakeFiles/ogr-decode.dir/ogr-decode.cxx.o' failed
make[2]: *** [src/Prep/OGRDecode/CMakeFiles/ogr-decode.dir/ogr-decode.cxx.o] Error 1
CMakeFiles/Makefile2:546: recipe for target 'src/Prep/OGRDecode/CMakeFiles/ogr-decode.dir/all' failed
make[1]: *** [src/Prep/OGRDecode/CMakeFiles/ogr-decode.dir/all] Error 2
Makefile:137: recipe for target 'all' failed
make: *** [all] Error 2


Looking a little closer I may be missing the gdal libs? If so, how do you get gdal lib installed?
Kansas(2-27-15)/Ohio/Midwest scenery development.
KEQA (2-27-15), 3AU, KRCP Airport Layout
Intel i5 3570K AMDRX480
User avatar
wlbragg
 
Posts: 5956
Joined: Sat Aug 25, 2012 11:31 pm
Location: Kansas (Tornado Alley), USA
Callsign: WC2020
Version: next
OS: Win10/Linux/AMDRX480

Re: d&c terragear compile script failure on Debian  

Postby elgaton » Tue Sep 22, 2015 6:58 am

That's because TerraGear switched from GDAL 1 to GDAL 2 (which has a slightly incompatible API and is not in Debian/Ubuntu yet). You will need to revert the Git commit changing the minimum required API version: see viewtopic.php?f=45&t=27399.
NIATCA 2nd admin, regular ATC at LIPX and creator of the LIPX custom scenery
elgaton
 
Posts: 1106
Joined: Tue Mar 19, 2013 4:58 pm
Callsign: I-ELGA/LIPX_TW
Version: Git
OS: Windows + Arch Linux

Re: d&c terragear compile script failure on Debian

Postby wlbragg » Tue Sep 22, 2015 4:22 pm

Apologizes, I saw that thread but didn't read deep enough.

Thank you!
Kansas(2-27-15)/Ohio/Midwest scenery development.
KEQA (2-27-15), 3AU, KRCP Airport Layout
Intel i5 3570K AMDRX480
User avatar
wlbragg
 
Posts: 5956
Joined: Sat Aug 25, 2012 11:31 pm
Location: Kansas (Tornado Alley), USA
Callsign: WC2020
Version: next
OS: Win10/Linux/AMDRX480

Re: d&c terragear compile script failure on Debian

Postby wrg » Mon Dec 28, 2015 12:41 pm

I tried to generate terrain Mikhail's script. Script didn't give out mistakes, but as a result we received such. How to correct it? if additional information is necessary - ask
Image
scenery of Russia updated 20 Jul 2015 https://github.com/soitanen/Project-Russia
wrg
 
Posts: 87
Joined: Mon Dec 06, 2010 11:46 am
Location: ULLI Saint-Petersburg
Callsign: R-wrg
Version: 2020.4.0
OS: Debian GNU/Linux

Re: d&c terragear compile script failure on Debian

Postby ludomotico » Mon Dec 28, 2015 2:43 pm

I'm very sorry, I don't know how the Mikhail's script builds the scenery, but it seems like the terrain elevation was used for some landclasses and not for others. Are you sure the script runs terrafit before all ogr-decode and genapts commands?
User avatar
ludomotico
 
Posts: 1177
Joined: Tue Apr 24, 2012 1:01 pm
Version: nightly
OS: Windows 10


Return to Compiling

Who is online

Users browsing this forum: No registered users and 1 guest