I can't seem to find that info anywhere, so:
what's your osgEarth version ?
and what version of FG are you trying to run with it ?
If in doubt, post the git hashes here for sg/fg and osgEarth
master-fgdata git@gitorious.org:fg/fgdata.git
origin git://gitorious.org/fg/fgdata.git
Linking CXX executable fgfs
/usr/bin/ld: CMakeFiles/fgfs.dir/__/Viewer/OsgEarthHeightField.cxx.o: undefined reference to symbol '_ZN17GDALDriverManager15GetDriverByNameEPKc'
/usr/lib/libgdal.so.1: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
src/Main/CMakeFiles/fgfs.dir/build.make:8831: recipe for target 'src/Main/fgfs' failed
make[2]: *** [src/Main/fgfs] Error 1
CMakeFiles/Makefile2:1555: recipe for target 'src/Main/CMakeFiles/fgfs.dir/all' failed
make[1]: *** [src/Main/CMakeFiles/fgfs.dir/all] Error 2
Makefile:137: recipe for target 'all' failed
make: *** [all] Error 2
rebootl wrote in Sat Oct 18, 2014 6:15 pm:/usr/bin/ld: CMakeFiles/fgfs.dir/__/Viewer/OsgEarthHeightField.cxx.o: undefined reference to symbol '_ZN17GDALDriverManager15GetDriverByNameEPKc'
/usr/lib/libgdal.so.1: error adding symbols: DSO missing from command line
Linking CXX executable fgfs
/usr/bin/ld: CMakeFiles/fgfs.dir/__/Viewer/OsgEarthHeightField.cxx.o: undefined reference to symbol 'VSIFree'
/opt/FlightGear/gdal/lib/libgdal.so.1: error adding symbols: DSO missing from command line
cmake CMAKE_BUILD_TYPE="Release" -D CMAKE_CXX_FLAGS="-O2 -march=native -mtune=native -I /opt/FlightGear/OpenSceneGraph/include -I /opt/FlightGear/gdal/include/ -I /opt/FlightGear/OsgEarth/include/ -I /opt/FlightGear/simgear/include -L /opt/FlightGear/OpenSceneGraph/lib64 -L opt/FlightGear/gdal/lib -L /opt/FlightGear/OsgEarth/lib64/ -L /opt/FlightGear/simgear/lib" -D CMAKE_C_FLAGS="-O2 -march=native -mtune=native -I /opt/FlightGear/OpenSceneGraph/include -I /opt/FlightGear/gdal/include/ -I /opt/FlightGear/OsgEarth/include/ -I /opt/FlightGear/simgear/include -L /opt/FlightGear/OpenSceneGraph/lib64 -L opt/FlightGear/gdal/lib -L /opt/FlightGear/OsgEarth/lib64/ -L /opt/FlightGear/simgear/lib" -D CMAKE_INSTALL_PREFIX:STRING="/opt/FlightGear/flightgear" -D CMAKE_PREFIX_PATH="/opt/FlightGear/OpenSceneGraph;/opt/FlightGear/gdal;/opt/FlightGear/OpenSceneGraph/include;/opt/FlightGear/gdal/include/;/opt/FlightGear/OpenSceneGraph/lib64/;opt/FlightGear/gdal/lib;/opt/FlightGear/OsgEarth;/opt/FlightGear/OsgEarth;/opt/FlightGear/OsgEarth/include;/opt/FlightGear/OsgEarth/lib64/;/opt/FlightGear/simgear;/opt/FlightGear/simgear/include;/opt/FlightGear/lib"-D CMAKE_INCLUDE_PATH="/opt/FlightGear/OpenSceneGraph/include;/opt/FlightGear/gdal/include/;/opt/FlightGear/OsgEarth/include/;/opt/FlightGear/simgear/include" -D CMAKE_LIBRARY_PATH="/opt/FlightGear/OpenSceneGraph/lib64;opt/FlightGear/gdal/lib;/opt/FlightGear/OsgEarth/lib64/;/opt/FlightGear/simgear/lib" -D SIMGEAR_DIR='/opt/FlightGear/simgear' --enable-osgviewer .
export LD_LIBRARY_PATH=/opt/FlightGear/OpenSceneGraph/lib64:/opt/FlightGear/gdal/lib:$LD_LIBRARY_PATH
Hooray wrote in Mon Dec 22, 2014 4:31 am:those linker errors are unrelated to the osgEarth integration as such - they seem to be due to conflicting C++ ABIs, i.e. different gcc compiler versions being mixed
Users browsing this forum: No registered users and 1 guest