Board index FlightGear Support Compiling

cmake error: could not find load file FlightGearComponent  Topic is solved

Building FlightGear from source, and in the need for help?

cmake error: could not find load file FlightGearComponent  

Postby strnbrg » Tue Nov 17, 2020 8:29 pm

I followed your instructions for building on Ubuntu, and I'm stuck at this message:
Code: Select all
include could not find load file:
  FlightGearComponent


Here's how I got there:

1. I cloned your git repository:
Code: Select all
$ ls ~/usr/src/flightgear
3rdparty/       COPYING     man/          README.msvc     scripts/     version
AUTHORS         docs-mini/  NEWS          README.OSG      src/
ChangeLog       examples/   package/      README.plib     test_suite/
CMakeLists.txt  icons/      README        README.SimGear  Thanks
CMakeModules/   INSTALL     README.cmake  README.sound    utils/


2. Did the following:
Code: Select all
$ export FGFS_PREFIX=$HOME/usr/src/flightgear
$ export NR_JOBS=$(/usr/bin/nproc)
$ export FGFS_PREFIX_LIB=${FGFS_PREFIX}/lib
$ export FLIGHTGEAR_SRC=$HOME/usr/src/flightgear/src
$ mkdir $FGFS_PREFIX/fg_build
$ cd $FGFS_PREFIX/fg_build
$ cmake ${FLIGHTGEAR_SRC} -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCMAKE_INSTALL_PREFIX="${FGFS_PREFIX}" -DCMAKE_VERBOSE_MAKEFILE=TRUE -DENABLE_FGQCANVAS=ON


In case it's of help, here's the full output from cmake:
Code: Select all
-- The C compiler identification is GNU 7.5.0
-- The CXX compiler identification is GNU 7.5.0
-- 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
CMake Error at Add-ons/CMakeLists.txt:1 (include):
  include could not find load file:

    FlightGearComponent


CMake Error at Add-ons/CMakeLists.txt:23 (flightgear_component):
  Unknown CMake command "flightgear_component".


CMake Warning (dev) in CMakeLists.txt:
  No cmake_minimum_required command is present.  A line of code such as

    cmake_minimum_required(VERSION 3.10)

  should be added at the top of the file.  The version specified may be lower
  if you wish to support older CMake versions for this project.  For more
  information run "cmake --help-policy CMP0000".
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Configuring incomplete, errors occurred!
See also "/home/strnbrg59/usr/src/flightgear/src/fg_build/CMakeFiles/CMakeOutput.log".


Any idea what's wrong? Maybe FlightGearComponent isn't defined? If I do a...
Code: Select all
$ find . -type f | xargs grep FlightGearComponent

then I get a lot of files that have "include(FlightGearComponent)".
But I don't know much about cmake (as you can see).
strnbrg
 
Posts: 19
Joined: Sun Jun 15, 2008 6:04 am

Re: cmake error: could not find load file FlightGearComponen

Postby strnbrg » Wed Nov 18, 2020 6:48 pm

I had FLIGHTGEAR_SRC pointing one directory too deep. (Is there any way to just delete this question? I don't see any "delete" option here...)
strnbrg
 
Posts: 19
Joined: Sun Jun 15, 2008 6:04 am

Re: cmake error: could not find load file FlightGearComponen

Postby wkitty42 » Wed Nov 18, 2020 8:31 pm

it'll cycle out of view before too long ;)
"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."
User avatar
wkitty42
 
Posts: 9146
Joined: Fri Feb 20, 2015 4:46 pm
Location: central NC, USA
Callsign: wk42
Version: git next
OS: Kubuntu 20.04


Return to Compiling

Who is online

Users browsing this forum: No registered users and 8 guests