Compile flightgear -- requires openscenegraph > 3.2 but v3.6.5 installed

Trying to compile new flightgear flight simulator. cmake errors out saying dependency OpenSceneGraph > 3.2 is required but OSG 3.6.5 is already installed by openSUSE software management. Before I start trying to tinker with make files to get past this, I thought I would post error text and see if anyone has any ideas or as worked through this.

t(base) tom@mydesktop: ~/FlightGear/fgbuild $ cmake ../ -DCMAKE_BUILD_TYPE=Release
CMake Deprecation Warning at CMakeLists.txt:1 (cmake_minimum_required):
  Compatibility with CMake < 3.5 will be removed from a future version of
  CMake.

  Update the VERSION argument <min> value or use a ...<max> suffix to tell
  CMake that the project does not need compatibility with older versions.


CMake Deprecation Warning at CMakeLists.txt:29 (cmake_policy):
  The OLD behavior for policy CMP0072 will be removed from a future version
  of CMake.

  The cmake-policies(7) manual explains that the OLD behaviors of all
  policies are deprecated and that a policy should be set to OLD only under
  specific short-term circumstances.  Projects should be ported to the NEW
  behavior and not rely on setting a policy to OLD.


CMAKE Build type: Release
-- Setting build type to 'Dev' as none was specified.
-- The C compiler identification is GNU 7.5.0
-- The CXX compiler identification is GNU 7.5.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- System is: Linux
-- Linux distro is: openSUSE
-- Web browser launcher command is: xdg-open
-- Using default data directory for base package:  /usr/local/lib/FlightGear
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
-- Found Threads: TRUE  
-- Found X11: /usr/include   
-- 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
-- libudev stable: 1
-- Found UDev: /usr/lib64/libudev.so
--    include: /usr/include
-- event-based input enabled. Using /usr/lib64/libudev.so
-- Enabling HID-API input
-- Checking for module 'dbus-1'
--   Found dbus-1, version 1.12.2
-- Found DBus: /usr/include/dbus-1.0;/usr/lib64/dbus-1.0/include  
-- Found LibEvent: /usr/include  
-- SWIFT support enabled
-- Found Boost: /usr/lib64/cmake/Boost-1.75.0/BoostConfig.cmake (found version "1.75.0")  
-- Found OpenGL: /usr/lib64/libOpenGL.so   
-- Could NOT find osgText (missing: OSGTEXT_LIBRARY OSGTEXT_INCLUDE_DIR) 
-- Could NOT find osgSim (missing: OSGSIM_LIBRARY OSGSIM_INCLUDE_DIR) 
-- Could NOT find osgDB (missing: OSGDB_LIBRARY OSGDB_INCLUDE_DIR) 
-- Could NOT find osgParticle (missing: OSGPARTICLE_LIBRARY OSGPARTICLE_INCLUDE_DIR) 
-- Could NOT find osgFX (missing: OSGFX_LIBRARY OSGFX_INCLUDE_DIR) 
-- Could NOT find osgUtil (missing: OSGUTIL_LIBRARY OSGUTIL_INCLUDE_DIR) 
-- Could NOT find osgViewer (missing: OSGVIEWER_LIBRARY OSGVIEWER_INCLUDE_DIR) 
-- Could NOT find osgGA (missing: OSGGA_LIBRARY OSGGA_INCLUDE_DIR) 
-- Could NOT find osg (missing: OSG_LIBRARY OSG_INCLUDE_DIR) 
-- Found OpenThreads: /usr/lib64/libOpenThreads.so  
CMake Error at /usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:230 (message):
  Could NOT find OpenSceneGraph (missing: OSGTEXT_FOUND OSGSIM_FOUND
  OSGDB_FOUND OSGPARTICLE_FOUND OSGFX_FOUND OSGUTIL_FOUND OSGVIEWER_FOUND
  OSGGA_FOUND OSG_FOUND) (Required is at least version "3.2.0")
Call Stack (most recent call first):
  /usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:600 (_FPHSA_FAILURE_MESSAGE)
  /usr/share/cmake/Modules/FindOpenSceneGraph.cmake:226 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
  CMakeLists.txt:313 (find_package)


-- Configuring incomplete, errors occurred!
(base) tom@mydesktop: ~

libOpenSceneGraph-devel installed?

Btw, the GAMES repo has the latest Flightgear also for Leap 15.6.

libOpenSceneGraph-devel is not installed. I did look into installing that but Installation of that package uninstalls a dozen “libboost” packages that didn’t seem like the right thing to try.
I could break packaging recommendations and install it but haven’t tried that yet.

I do see package such as osgText with version-3.6 that are already installed but reported unavailable by cmake. From “locate osgtext”, see below:

/usr/lib64/osgPlugins-3.6.5/osgdb_deprecated_osgtext.so
/usr/lib64/osgPlugins-3.6.5/osgdb_serializers_osgtext.so

I did see flightgear in repos but I got source from flightgear that, I think, is the newest version so I thought I would try to compile it.

tom kosvic

@tckosvic look at how the OBS version is built? https://build.opensuse.org/projects/games/packages/FlightGear/files/FlightGear.spec?expand=1
Boost is needed…

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.