by wkitty42 » Tue Jun 27, 2017 7:27 pm
i've added another cmake round to my dnc script and yes, building terragear goes further but it just doesn't make sense that cmake has to be run twice... here's the output from both cmake executions...
- Code: Select all
1st execution /home/myuser/flightgear-dev/next/install/cmake/bin/cmake -DCMAKE_BUILD_TYPE=Debug -DCMAKE_INSTALL_PREFIX:PATH=/home/myuser/flightgear-dev/next/install/terragear -DCMAKE_PREFIX_PATH=/home/myuser/flightgear-dev/next/install/simgear; -DCMAKE_CXX_FLAGS=-std=c++11 ../../terragear/
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - not found
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE
-- Boost version: 1.54.0
-- Found the following Boost libraries:
-- system
-- thread
-- chrono
-- date_time
-- atomic
-- Found ZLIB: /usr/lib/x86_64-linux-gnu/libz.so (found version "1.2.8")
-- SimGear include directory: /home/myuser/flightgear-dev/next/install/simgear/include
-- found SimGear version: 2017.3.0 (needed 3.1.0 or higher)
-- looking for static SimGear libraries
-- Looking for clock_gettime in rt
-- Looking for clock_gettime in rt - found
-- found SimGear libraries
-- Performing Test SIMGEAR_COMPILE_TEST
-- Performing Test SIMGEAR_COMPILE_TEST - Success
-- Found SimGear: optimized;/home/myuser/flightgear-dev/next/install/simgear/lib/libSimGearScene.a;debug;/home/myuser/flightgear-dev/next/install/simgear/lib/libSimGearScened.a;optimized;/home/myuser/flightgear-dev/next/install/simgear/lib/libSimGearCore.a;debug;/home/myuser/flightgear-dev/next/install/simgear/lib/libSimGearCored.a;optimized;/home/myuser/flightgear-dev/next/install/simgear/lib/libSimGearCore.a;debug;/home/myuser/flightgear-dev/next/install/simgear/lib/libSimGearCored.a (Required is at least version "3.1.0")
-- Found GDAL: /usr/lib/libgdal.so (Required is at least version "2.0.0")
-- Found TIFF: /usr/lib/x86_64-linux-gnu/libtiff.so (found version "4.0.3")
-- Found CGAL 4.2
-- Build type: Release
-- USING CXXFLAGS = '-g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -frounding-math -O3 -DNDEBUG'
-- USING EXEFLAGS = ' -Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,--as-needed '
-- Targetting Unix Makefiles
-- Using /usr/bin/c++ compiler.
-- Requested component: Core
-- Requested component: MPFR
-- Requested component: GMP
-- Looking for unistd.h
-- Looking for unistd.h - found
-- Looking for sys/time.h
-- Looking for sys/time.h - found
-- Looking for windows.h
-- Looking for windows.h - not found
-- Looking for rint
-- Looking for rint - not found
-- Configuring done
-- Generating done
-- Build files have been written to: /home/myuser/flightgear-dev/next/build/terragear
- Code: Select all
2nd execution /home/myuser/flightgear-dev/next/install/cmake/bin/cmake -DCMAKE_BUILD_TYPE=Debug -DCMAKE_INSTALL_PREFIX:PATH=/home/myuser/flightgear-dev/next/install/terragear -DCMAKE_PREFIX_PATH=/home/myuser/flightgear-dev/next/install/simgear; -DCMAKE_CXX_FLAGS=-std=c++11 ../../terragear/
-- Boost version: 1.54.0
-- Found the following Boost libraries:
-- system
-- thread
-- chrono
-- date_time
-- atomic
-- SimGear include directory: /home/myuser/flightgear-dev/next/install/simgear/include
-- found SimGear version: 2017.3.0 (needed 3.1.0 or higher)
-- looking for static SimGear libraries
-- found SimGear libraries
-- Performing Test SIMGEAR_COMPILE_TEST
-- Performing Test SIMGEAR_COMPILE_TEST - Success
-- Found CGAL 4.2
-- Build type: Debug
-- USING CXXFLAGS = '-std=c++11 -g'
-- USING EXEFLAGS = ' -Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,--as-needed '
-- Targetting Unix Makefiles
-- Using /usr/bin/c++ compiler.
-- Requested component: Core
-- Requested component: MPFR
-- Requested component: GMP
-- Configuring done
-- Generating done
-- Build files have been written to: /home/myuser/flightgear-dev/next/build/terragear
it is just weird that the second cmake execution actually says that it is going to build a debug version and it is using the "-std=c++11" CXX flag whereas the first one doesn't seem to see that information in the options...
i've looked and looked and looked in the cmake files in terragear and just can't find anything that would even hint as to where to look
FWIW: it does make it a lot further but then cries about these...
- Code: Select all
[ 51%] Building CXX object src/Prep/OGRDecode/CMakeFiles/ogr-decode.dir/ogr-decode.cxx.o
/home/myuser/flightgear-dev/next/terragear/src/Prep/OGRDecode/ogr-decode.cxx: In function ‘int main(int, char**)’:
/home/myuser/flightgear-dev/next/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/myuser/flightgear-dev/next/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/myuser/flightgear-dev/next/terragear/src/Prep/OGRDecode/ogr-decode.cxx:667:29: error: ‘class GDALDataset’ has no member named ‘GetLayerByName’
poLayer = poDS->GetLayerByName( argv[i] );
^
/home/myuser/flightgear-dev/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/myuser/flightgear-dev/next/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] Error 1
make[1]: *** [src/Prep/OGRDecode/CMakeFiles/ogr-decode.dir/all] Error 2
make: *** [all] Error 2
i don't know where further discussion of this should take place...
"You get more air close to the ground," said Angalo. "I read that in a book. You get lots of air low down, and not much when you go up."
"Why not?" said Gurder.
"Dunno. It's frightened of heights, I guess."