I don't really want to post the whole lot because it's a really, really long list, but it seems possibly related to OSG, it starts like:
- Code: Select all
[ 15%] Linking CXX executable fgelev
CMakeFiles/fgelev.dir/fgelev.cxx.o: In function `main':
fgelev.cxx:(.text.startup+0x26a): undefined reference to `SGPath::SGPath(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, SGPath::Permissions (*)(SGPath const&))'
fgelev.cxx:(.text.startup+0x28c): undefined reference to `SGPath::append(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
fgelev.cxx:(.text.startup+0x2d6): undefined reference to `SGPath::SGPath(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, SGPath::Permissions (*)(SGPath const&))'
fgelev.cxx:(.text.startup+0x340): undefined reference to `SGPath::SGPath(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, SGPath::Permissions (*)(SGPath const&))'
fgelev.cxx:(.text.startup+0x367): undefined reference to `SGPath::append(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
fgelev.cxx:(.text.startup+0x39b): undefined reference to `SGPath::local8BitStr[abi:cxx11]() const'
fgelev.cxx:(.text.startup+0x3b8): undefined reference to `SGMaterialLib::load(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, SGPropertyNode*)'
fgelev.cxx:(.text.startup+0x3e4): undefined reference to `simgear::SGModelLib::init(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, SGPropertyNode*)'
fgelev.cxx:(.text.startup+0x4a7): undefined reference to `SGPath::local8BitStr[abi:cxx11]() const'
fgelev.cxx:(.text.startup+0x79a): undefined reference to `simgear::BVHPageNodeOSG::load(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, osg::ref_ptr<osg::Referenced const> const&)'
fgelev.cxx:(.text.startup+0x1569): undefined reference to `SGPath::SGPath(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, SGPath::Permissions (*)(SGPath const&))'
fgelev.cxx:(.text.startup+0x158b): undefined reference to `SGPath::append(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
fgelev.cxx:(.text.startup+0x1683): undefined reference to `logstream::log(sgDebugClass, sgDebugPriority, char const*, int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
fgelev.cxx:(.text.startup+0x1bd3): undefined reference to `logstream::log(sgDebugClass, sgDebugPriority, char const*, int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
fgelev.cxx:(.text.startup+0x1d72): undefined reference to `logstream::log(sgDebugClass, sgDebugPriority, char const*, int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
And then truck loads of lines like:
- Code: Select all
/usr/local/lib/x86_64-linux-gnu/libSimGearScene.a(ModelRegistry.cxx.o):(.rodata._ZTCN7simgear13ModelRegistryE0_N5osgDB16ReadFileCallbackE[_ZTVN7simgear13ModelRegistryE]+0x18): undefined reference to `osgDB::ReadFileCallback::openArchive(std::string const&, osgDB::ReaderWriter::ArchiveStatus, unsigned int, osgDB::Options const*)'
/usr/local/lib/x86_64-linux-gnu/libSimGearScene.a(ModelRegistry.cxx.o):(.rodata._ZTCN7simgear13ModelRegistryE0_N5osgDB16ReadFileCallbackE[_ZTVN7simgear13ModelRegistryE]+0x20): undefined reference to `osgDB::ReadFileCallback::readObject(std::string const&, osgDB::Options const*)'
/usr/local/lib/x86_64-linux-gnu/libSimGearScene.a(ModelRegistry.cxx.o):(.rodata._ZTCN7simgear13ModelRegistryE0_N5osgDB16ReadFileCallbackE[_ZTVN7simgear13ModelRegistryE]+0x28): undefined reference to `osgDB::ReadFileCallback::readImage(std::string const&, osgDB::Options const*)'
/usr/local/lib/x86_64-linux-gnu/libSimGearScene.a(ModelRegistry.cxx.o):(.rodata._ZTCN7simgear13ModelRegistryE0_N5osgDB16ReadFileCallbackE[_ZTVN7simgear13ModelRegistryE]+0x30): undefined reference to `osgDB::ReadFileCallback::readHeightField(std::string const&, osgDB::Options const*)'
/usr/local/lib/x86_64-linux-gnu/libSimGearScene.a(ModelRegistry.cxx.o):(.rodata._ZTCN7simgear13ModelRegistryE0_N5osgDB16ReadFileCallbackE[_ZTVN7simgear13ModelRegistryE]+0x38): undefined reference to `osgDB::ReadFileCallback::readNode(std::string const&, osgDB::Options const*)'
/usr/local/lib/x86_64-linux-gnu/libSimGearScene.a(ModelRegistry.cxx.o):(.rodata._ZTCN7simgear13ModelRegistryE0_N5osgDB16ReadFileCallbackE[_ZTVN7simgear13ModelRegistryE]+0x40): undefined reference to `osgDB::ReadFileCallback::readShader(std::string const&, osgDB::Options const*)'
Last few lines:
- Code: Select all
/usr/local/lib/x86_64-linux-gnu/libSimGearScene.a(SGVasiDrawable.cxx.o):(.rodata._ZTV14SGVasiDrawable[_ZTV14SGVasiDrawable]+0xc0): undefined reference to `osg::Drawable::setUpdateCallback(osg::Drawable::UpdateCallback*)'
/usr/local/lib/x86_64-linux-gnu/libSimGearScene.a(SGVasiDrawable.cxx.o):(.rodata._ZTV14SGVasiDrawable[_ZTV14SGVasiDrawable]+0xc8): undefined reference to `osg::Drawable::setEventCallback(osg::Drawable::EventCallback*)'
collect2: error: ld returned 1 exit status
utils/fgelev/CMakeFiles/fgelev.dir/build.make:113: recipe for target 'utils/fgelev/fgelev' failed
make[2]: *** [utils/fgelev/fgelev] Error 1
CMakeFiles/Makefile2:439: recipe for target 'utils/fgelev/CMakeFiles/fgelev.dir/all' failed
make[1]: *** [utils/fgelev/CMakeFiles/fgelev.dir/all] Error 2
Makefile:149: recipe for target 'all' failed
make: *** [all] Error 2
I have tried the OSG that comes with my distro (Ubuntu 16.04) and I have manually compiled and OSG 3.2.3 and 3.4.0 and it makes no difference. OSG compiled with no issues.
Simgear compiled and installed with no issues either. I have also deleted and re-downloaded flightgear from git to just make sure that it wasn't a download corruption or something.
Anything obvious I'm missing?
Thanks.