I am doing it again, on another computer. Building terragear. But there's a problem. GDAL:
Code: Select all
/
delta@triplefan:~/tg/flightgear-terragear$ make -j2 && make install
Scanning dependencies of target terragear
[ 51%] Built target HGT
[ 51%] Building CXX object src/Lib/terragear/CMakeFiles/terragear.dir/tg_shapefile.cxx.o
[ 51%] Built target Array
[ 51%] Built target DEM
[ 51%] Linking CXX executable hgtchop
[ 51%] Built target hgtchop
[ 51%] Linking CXX executable testassem
[ 51%] Built target testassem
[ 51%] Built target Terra
Scanning dependencies of target test_array
[ 51%] Building CXX object src/Lib/Array/CMakeFiles/test_array.dir/testarray.cxx.o
[ 51%] Linking CXX executable test_array
[ 51%] Built target test_array
[ 51%] Built target landcover
[ 51%] Built target srtmchop
[ 51%] Built target fillvoids
[ 51%] Built target demchop
[ 51%] Built target terra_bin
[ 51%] Built target terrafit
Scanning dependencies of target test_landcover
[ 51%] Building CXX object src/Lib/landcover/CMakeFiles/test_landcover.dir/test-landcover.cxx.o
[ 51%] Linking CXX executable test_landcover
[ 51%] Built target test_landcover
[ 51%] Linking CXX static library libterragear.a
[ 51%] Built target terragear
Scanning dependencies of target ogr-decode
[ 51%] Linking CXX executable gdalchop
[ 51%] Building CXX object src/Prep/OGRDecode/CMakeFiles/ogr-decode.dir/ogr-decode.cxx.o
[ 51%] Built target gdalchop
[ 51%] Linking CXX executable genapts850
[ 51%] Built target genapts850
Scanning dependencies of target tg-construct
[ 51%] Building CXX object src/BuildTiles/Main/CMakeFiles/tg-construct.dir/tgconstruct.cxx.o
/home/delta/tg/flightgear-terragear/src/Prep/OGRDecode/ogr-decode.cxx: In function ‘int main(int, char**)’:
/home/delta/tg/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/tg/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/tg/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/tg/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/tg/flightgear-terragear/src/Prep/OGRDecode/ogr-decode.cxx:678:29: error: ‘class GDALDataset’ has no member named ‘GetLayer’
poLayer = poDS->GetLayer(i);
^
src/Prep/OGRDecode/CMakeFiles/ogr-decode.dir/build.make:62: 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:593: recipe for target 'src/Prep/OGRDecode/CMakeFiles/ogr-decode.dir/all' failed
make[1]: *** [src/Prep/OGRDecode/CMakeFiles/ogr-decode.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[ 51%] Building CXX object src/BuildTiles/Main/CMakeFiles/tg-construct.dir/tgconstruct_cleanup.cxx.o
[ 51%] Building CXX object src/BuildTiles/Main/CMakeFiles/tg-construct.dir/tgconstruct_clip.cxx.o
[ 51%] Building CXX object src/BuildTiles/Main/CMakeFiles/tg-construct.dir/tgconstruct_debug.cxx.o
[ 51%] Building CXX object src/BuildTiles/Main/CMakeFiles/tg-construct.dir/tgconstruct_elevation.cxx.o
[ 51%] Building CXX object src/BuildTiles/Main/CMakeFiles/tg-construct.dir/tgconstruct_landclass.cxx.o
[ 51%] Building CXX object src/BuildTiles/Main/CMakeFiles/tg-construct.dir/tgconstruct_lookup.cxx.o
[ 51%] Building CXX object src/BuildTiles/Main/CMakeFiles/tg-construct.dir/tgconstruct_math.cxx.o
[ 51%] Building CXX object src/BuildTiles/Main/CMakeFiles/tg-construct.dir/tgconstruct_output.cxx.o
[ 51%] Building CXX object src/BuildTiles/Main/CMakeFiles/tg-construct.dir/tgconstruct_poly.cxx.o
[ 51%] Building CXX object src/BuildTiles/Main/CMakeFiles/tg-construct.dir/tgconstruct_shared.cxx.o
[ 51%] Building CXX object src/BuildTiles/Main/CMakeFiles/tg-construct.dir/tgconstruct_tesselate.cxx.o
[ 51%] Building CXX object src/BuildTiles/Main/CMakeFiles/tg-construct.dir/tgconstruct_texture.cxx.o
[ 51%] Building CXX object src/BuildTiles/Main/CMakeFiles/tg-construct.dir/tglandclass.cxx.o
[ 51%] Building CXX object src/BuildTiles/Main/CMakeFiles/tg-construct.dir/priorities.cxx.o
[ 51%] Building CXX object src/BuildTiles/Main/CMakeFiles/tg-construct.dir/usgs.cxx.o
[ 51%] Building CXX object src/BuildTiles/Main/CMakeFiles/tg-construct.dir/main.cxx.o
[ 51%] Linking CXX executable tg-construct
CMakeFiles/tg-construct.dir/tgconstruct_output.cxx.o: In function `TGConstruct::AddCustomObjects()':
/home/delta/tg/flightgear-terragear/src/BuildTiles/Main/tgconstruct_output.cxx:45: undefined reference to `SGPath::str_native[abi:cxx11]() const'
/home/delta/tg/flightgear-terragear/src/BuildTiles/Main/tgconstruct_output.cxx:49: undefined reference to `SGPath::str_native[abi:cxx11]() const'
/home/delta/tg/flightgear-terragear/src/BuildTiles/Main/tgconstruct_output.cxx:73: undefined reference to `SGPath::str_native[abi:cxx11]() const'
/home/delta/tg/flightgear-terragear/src/BuildTiles/Main/tgconstruct_output.cxx:95: undefined reference to `SGPath::str_native[abi:cxx11]() const'
collect2: error: ld returned 1 exit status
src/BuildTiles/Main/CMakeFiles/tg-construct.dir/build.make:538: recipe for target 'src/BuildTiles/Main/tg-construct' failed
make[2]: *** [src/BuildTiles/Main/tg-construct] Error 1
CMakeFiles/Makefile2:1125: recipe for target 'src/BuildTiles/Main/CMakeFiles/tg-construct.dir/all' failed
make[1]: *** [src/BuildTiles/Main/CMakeFiles/tg-construct.dir/all] Error 2
Makefile:149: recipe for target 'all' failed
make: *** [all] Error 2
Any ideas?