- 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).