I've spent the last couple of days trying to troubleshoot this, without success. I have previously been comping with no problems on Fedora 21, and I recently upgraded to Fedora 23. I believe I have all the dependencies installed, and I am using latest GIT. I can compile and install simgear fine (inside my home folder), and running cmake is fine for fgfs as well. However, after running cmake ..\flightgear, running make fails as below:
cmake output:
- Code: Select all
[14:44 matthew ~/src/fgbuild]$ cmake ../flightgear/ -DCMAKE_INSTALL_PREFIX=/home/matthew/FlightGear -DCMAKE_BUILD_TYPE=Release -DFG_DATA_DIR=/home/matthew/src/fgdata -DSIMGEAR_DIR=/home/matthew/FlightGear/include
-- The C compiler identification is GNU 5.3.1
-- The CXX compiler identification is GNU 5.3.1
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- System is: Linux
-- Linux distro is: Korora
-- Web browser launcher command is: xdg-open
-- Using explicit data directory for base package: /home/matthew/src/fgdata
-- 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
-- Looking for XOpenDisplay in /usr/lib64/libX11.so;/usr/lib64/libXext.so
-- Looking for XOpenDisplay in /usr/lib64/libX11.so;/usr/lib64/libXext.so - found
-- Looking for gethostbyname
-- Looking for gethostbyname - found
-- Looking for connect
-- Looking for connect - found
-- Looking for remove
-- Looking for remove - found
-- Looking for shmat
-- Looking for shmat - found
-- Looking for IceConnectionNumber in ICE
-- Looking for IceConnectionNumber in ICE - found
-- Found X11: /usr/lib64/libX11.so
-- libudev stable: 1
-- Found UDev: /usr/lib64/libudev.so
-- include: /usr/include
-- Found Speex: /usr/lib64/libspeex.so
-- Found Git: /usr/bin/git
-- Git revision is de959a14f35ee4e74d405b418bb09689967ee22f
-- event-based input enabled. Using /usr/lib64/libudev.so
-- Boost version: 1.58.0
-- Found ZLIB: /usr/lib64/libz.so (found version "1.2.8")
-- Found OpenGL: /usr/lib64/libGL.so
-- Found OpenAL: /usr/lib64/libopenal.so
-- Found osgText: /usr/lib64/libosgText.so
-- Found osgSim: /usr/lib64/libosgSim.so
-- Found osgDB: /usr/lib64/libosgDB.so
-- Found osgParticle: /usr/lib64/libosgParticle.so
-- Found osgFX: /usr/lib64/libosgFX.so
-- Found osgUtil: /usr/lib64/libosgUtil.so
-- Found osgViewer: /usr/lib64/libosgViewer.so
-- Found osgGA: /usr/lib64/libosgGA.so
-- Found osg: /usr/lib64/libosg.so
-- Found OpenThreads: /usr/lib64/libOpenThreads.so
-- Found OpenSceneGraph: /usr/lib64/libosgText.so;/usr/lib64/libosgSim.so;/usr/lib64/libosgDB.so;/usr/lib64/libosgParticle.so;/usr/lib64/libosgFX.so;/usr/lib64/libosgUtil.so;/usr/lib64/libosgViewer.so;/usr/lib64/libosgGA.so;/usr/lib64/libosg.so;/usr/lib64/libOpenThreads.so (found suitable version "3.2.3", minimum required is "3.2.0")
-- Found PkgConfig: /usr/bin/pkg-config (found version "0.28")
-- Checking for module 'dbus-1'
-- Found dbus-1, version 1.10.6
-- Using DBus
-- Qt launcher enabled, checking for Qt 5.1 / qmake
-- Will enable Qt launcher GUI
-- Qt5Widgets version: 5.5.1
-- Qt5Widgets include dir: /usr/include/qt5/;/usr/include/qt5/QtWidgets;/usr/include/qt5/QtGui;/usr/include/qt5/QtCore;/usr/lib64/qt5/.//mkspecs/linux-g++;/usr/include
-- /usr/include
-- adding runtime JS dependencies
-- Found PLIB: optimized;/usr/lib64/libplibpuaux.so;debug;/usr/lib64/libplibpuaux.so;optimized;/usr/lib64/libplibjs.so;debug;/usr/lib64/libplibjs.so;optimized;/usr/lib64/libplibpu.so;debug;/usr/lib64/libplibpu.so;optimized;/usr/lib64/libplibfnt.so;debug;/usr/lib64/libplibfnt.so;optimized;/usr/lib64/libplibsg.so;debug;/usr/lib64/libplibsg.so;optimized;/usr/lib64/libplibul.so;debug;/usr/lib64/libplibul.so
-- SimGear include directory: /home/matthew/FlightGear/include
-- found SimGear version: 2016.2.0 (needed 2016.2.0)
-- 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
-- Performing Test SIMGEAR_CURL_TEST
-- Performing Test SIMGEAR_CURL_TEST - Failed
-- Found SimGear: optimized;/usr/lib64/libSimGearScene.so;debug;/usr/lib64/libSimGearScene.so;optimized;/usr/lib64/libSimGearCore.so;debug;/usr/lib64/libSimGearCore.so;optimized;/usr/lib64/libSimGearCore.so;debug;/usr/lib64/libSimGearCore.so (Required is at least version "2016.2.0")
-- 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
-- RTI: DISABLED
-- Looking for mkfifo
-- Looking for mkfifo - found
-- Zlib found for fgadmin
-- Found BZip2: /usr/lib64/libbz2.so (found version "1.0.6")
-- Looking for BZ2_bzCompressInit
-- Looking for BZ2_bzCompressInit - found
-- BZip2 found for fgadmin
-- Found FLTK: /usr/lib64/libfltk_images.so;/usr/lib64/libfltk_forms.so;/usr/lib64/libfltk_gl.so;/usr/lib64/libGL.so;/usr/lib64/libfltk.so
-- Found X11_Xinerama...
-- Found X11_Xft...
-- Using FLTK_LIBRARIES for fgadmin: /usr/lib64/libfltk_images.so;/usr/lib64/libfltk_forms.so;/usr/lib64/libfltk_gl.so;/usr/lib64/libGL.so;/usr/lib64/libfltk.so;/usr/lib64/libSM.so;/usr/lib64/libICE.so;/usr/lib64/libX11.so;/usr/lib64/libXext.so;/usr/lib64/libm.so;/usr/lib64/libXinerama.so;/usr/lib64/libXft.so;dl
-- Found PNG: /usr/lib64/libpng.so (found version "1.6.19")
-- Found GLUT: /usr/lib64/libglut.so
-- found glut
-- Configuring done
-- Generating done
CMake Warning:
Manually-specified variables were not used by the project:
SIMGEAR_DIR
-- Build files have been written to: /home/matthew/src/fgbuild
Tail end of compiler output (running make):
- Code: Select all
[ 99%] Building CXX object src/Main/CMakeFiles/fgfs.dir/__/Viewer/fg_os_osgviewer.cxx.o
[ 99%] Building CXX object src/Main/CMakeFiles/fgfs.dir/__/Viewer/fgviewer.cxx.o
[ 99%] Building CXX object src/Main/CMakeFiles/fgfs.dir/__/Viewer/renderer.cxx.o
[ 99%] Building CXX object src/Main/CMakeFiles/fgfs.dir/__/Viewer/renderingpipeline.cxx.o
[ 99%] Building CXX object src/Main/CMakeFiles/fgfs.dir/__/Viewer/splash.cxx.o
[100%] Building CXX object src/Main/CMakeFiles/fgfs.dir/__/Viewer/view.cxx.o
[100%] Building CXX object src/Main/CMakeFiles/fgfs.dir/__/Viewer/viewmgr.cxx.o
[100%] Linking CXX executable fgfs
CMakeFiles/fgfs.dir/__/Canvas/gui_mgr.cxx.o: In function `DesktopGroup::DesktopGroup()':
gui_mgr.cxx:(.text+0x1c0c): undefined reference to `simgear::canvas::Group::Group(SGWeakPtr<simgear::canvas::Canvas> const&, SGSharedPtr<SGPropertyNode> const&, std::map<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, SGPropertyNode const*, std::less<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >, std::allocator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const, SGPropertyNode const*> > > const&, SGWeakPtr<simgear::canvas::Element>)'
CMakeFiles/fgfs.dir/__/Canvas/gui_mgr.cxx.o: In function `DesktopGroup::DesktopGroup()':
gui_mgr.cxx:(.text+0x223e): undefined reference to `simgear::canvas::Group::Group(SGWeakPtr<simgear::canvas::Canvas> const&, SGSharedPtr<SGPropertyNode> const&, std::map<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, SGPropertyNode const*, std::less<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >, std::allocator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const, SGPropertyNode const*> > > const&, SGWeakPtr<simgear::canvas::Element>)'
CMakeFiles/fgfs.dir/__/Network/HTTPClient.cxx.o: In function `FGHTTPClient::init()':
HTTPClient.cxx:(.text+0x354): undefined reference to `simgear::pkg::Root::addDelegate(simgear::pkg::Delegate*)'
CMakeFiles/fgfs.dir/__/Network/HTTPClient.cxx.o: In function `FGHTTPClient::shutdown()':
HTTPClient.cxx:(.text+0x4fa): undefined reference to `simgear::pkg::Root::removeDelegate(simgear::pkg::Delegate*)'
CMakeFiles/fgfs.dir/__/Network/HTTPClient.cxx.o: In function `FGHTTPClient::postinit()':
HTTPClient.cxx:(.text+0x2565): undefined reference to `simgear::pkg::Root::catalogVersion() const'
CMakeFiles/fgfs.dir/__/Network/http/PkgUriHandler.cxx.o: In function `flightgear::http::PackageRootCommand(simgear::pkg::Root*, 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&) [clone .constprop.89]':
PkgUriHandler.cxx:(.text+0xccb): undefined reference to `simgear::pkg::Root::applicationVersion[abi:cxx11]() const'
../GUI/libfglauncher.a(QtLauncher.cxx.o): In function `QtLauncher::onCancelDownload(QModelIndex const&)':
QtLauncher.cxx:(.text+0x1db1): undefined reference to `simgear::pkg::Install::cancelDownload()'
../GUI/libfglauncher.a(AircraftModel.cxx.o): In function `AircraftItemModel::isIndexRunnable(QModelIndex const&) const':
AircraftModel.cxx:(.text+0x952): undefined reference to `simgear::pkg::Install::isDownloading() const'
../GUI/libfglauncher.a(AircraftModel.cxx.o): In function `AircraftItemModel::refreshPackages()':
AircraftModel.cxx:(.text+0x2661): undefined reference to `simgear::pkg::Root::allPackages() const'
../GUI/libfglauncher.a(AircraftModel.cxx.o): In function `AircraftItemModel::AircraftItemModel(QObject*, SGSharedPtr<simgear::pkg::Root> const&)':
AircraftModel.cxx:(.text+0x2910): undefined reference to `simgear::pkg::Root::addDelegate(simgear::pkg::Delegate*)'
../GUI/libfglauncher.a(AircraftModel.cxx.o): In function `AircraftItemModel::~AircraftItemModel()':
AircraftModel.cxx:(.text+0x29eb): undefined reference to `simgear::pkg::Root::removeDelegate(simgear::pkg::Delegate*)'
../GUI/libfglauncher.a(AircraftModel.cxx.o): In function `AircraftItemModel::packageThumbnail(SGSharedPtr<simgear::pkg::Package>, int, bool) const':
AircraftModel.cxx:(.text+0x4023): undefined reference to `simgear::pkg::Package::thumbnails[abi:cxx11]() const'
AircraftModel.cxx:(.text+0x4067): undefined reference to `simgear::pkg::Package::thumbnails[abi:cxx11]() const'
AircraftModel.cxx:(.text+0x4280): undefined reference to `simgear::pkg::Root::requestThumbnailData(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
../GUI/libfglauncher.a(AircraftModel.cxx.o): In function `AircraftItemModel::dataFromPackage(SGSharedPtr<simgear::pkg::Package> const&, unsigned int, int) const':
AircraftModel.cxx:(.text+0x4605): undefined reference to `simgear::pkg::Package::nameForVariant[abi:cxx11](unsigned int) const'
AircraftModel.cxx:(.text+0x476c): undefined reference to `simgear::pkg::Package::nameForVariant[abi:cxx11](unsigned int) const'
AircraftModel.cxx:(.text+0x4896): undefined reference to `simgear::pkg::Install::primarySetPath() const'
AircraftModel.cxx:(.text+0x49c5): undefined reference to `simgear::pkg::Install::isDownloading() const'
AircraftModel.cxx:(.text+0x4b46): undefined reference to `simgear::pkg::Install::isQueued() const'
AircraftModel.cxx:(.text+0x4d09): undefined reference to `simgear::pkg::Package::qualifiedVariantId[abi:cxx11](unsigned int) const'
../GUI/libfglauncher.a(AircraftModel.cxx.o): In function `AircraftItemModel::data(QModelIndex const&, int) const':
AircraftModel.cxx:(.text+0x525b): undefined reference to `simgear::pkg::Install::downloadedBytes() const'
AircraftModel.cxx:(.text+0x528b): undefined reference to `simgear::pkg::Install::downloadedPercent() const'
../GUI/libfglauncher.a(AircraftModel.cxx.o): In function `PackageDelegate::~PackageDelegate()':
AircraftModel.cxx:(.text._ZN15PackageDelegateD2Ev[_ZN15PackageDelegateD5Ev]+0x1e): undefined reference to `simgear::pkg::Root::removeDelegate(simgear::pkg::Delegate*)'
../GUI/libfglauncher.a(AircraftModel.cxx.o): In function `PackageDelegate::~PackageDelegate()':
AircraftModel.cxx:(.text._ZN15PackageDelegateD0Ev[_ZN15PackageDelegateD5Ev]+0x1e): undefined reference to `simgear::pkg::Root::removeDelegate(simgear::pkg::Delegate*)'
../GUI/libfglauncher.a(PathsDialog.cxx.o): In function `PathsDialog::onRemoveCatalog()':
PathsDialog.cxx:(.text+0x25df): undefined reference to `simgear::pkg::Root::removeCatalogById(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
../GUI/libfglauncher.a(AddCatalogDialog.cxx.o): In function `AddCatalogDialog::updateUi()':
AddCatalogDialog.cxx:(.text+0x33c): undefined reference to `simgear::pkg::Catalog::status() const'
../GUI/libfglauncher.a(AddCatalogDialog.cxx.o): In function `AddCatalogDialog::onCatalogStatusChanged(simgear::pkg::Catalog*)':
AddCatalogDialog.cxx:(.text+0xa51): undefined reference to `simgear::pkg::Catalog::status() const'
../GUI/libfglauncher.a(AddCatalogDialog.cxx.o): In function `AddCatalogDialog::startDownload()':
AddCatalogDialog.cxx:(.text+0x104b): undefined reference to `simgear::pkg::Catalog::addStatusCallback(boost::function<void (simgear::pkg::Catalog*)> const&)'
../GUI/libfglauncher.a(AddCatalogDialog.cxx.o): In function `AddCatalogDialog::reject()':
AddCatalogDialog.cxx:(.text+0x1290): undefined reference to `simgear::pkg::Root::removeCatalogById(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
collect2: error: ld returned 1 exit status
src/Main/CMakeFiles/fgfs.dir/build.make:12120: recipe for target 'src/Main/fgfs' failed
make[2]: *** [src/Main/fgfs] Error 1
CMakeFiles/Makefile2:1807: recipe for target 'src/Main/CMakeFiles/fgfs.dir/all' failed
make[1]: *** [src/Main/CMakeFiles/fgfs.dir/all] Error 2
Makefile:149: recipe for target 'all' failed
make: *** [all] Error 2
[14:58 matthew ~/src/fgbuild]$
Any ideas? I'm kind of stumped here. I'm assuming it's a simple problem with my build environment or missing dependency, or an incorrect compile option with simgear, but cannot work out what...
Thanks!