Board index FlightGear Support Compiling

Error: SimGearComponent

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

Error: SimGearComponent

Postby daveculp » Mon Oct 20, 2014 3:37 pm

cmake fails when I try to build SimGear:

Code: Select all
CMake Error at bucket/CMakeLists.txt:2 (include):
  include could not find load file:

    SimGearComponent


CMake Error at bucket/CMakeLists.txt:7 (simgear_component):
  Unknown CMake command "simgear_component".



Here's the full cmake console output:

Code: Select all
dave@zbox ~/SG-3.2/simgear-3.2.0/sgbuild $ cmake ../simgear -DCMAKE_BUILD_TYPE=Release
-- The C compiler identification is GNU 4.7.2
-- The CXX compiler identification is GNU 4.7.2
-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - 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
CMake Error at bucket/CMakeLists.txt:2 (include):
  include could not find load file:

    SimGearComponent


CMake Error at bucket/CMakeLists.txt:7 (simgear_component):
  Unknown CMake command "simgear_component".


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

    cmake_minimum_required(VERSION 2.8)

  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!



Any ideas how to fix this?

Dave
User avatar
daveculp
 
Posts: 505
Joined: Sun Feb 24, 2013 2:50 am
Location: Las Vegas, USA
Callsign: DCulp
Version: 2017.3.1
OS: Ubuntu 17.10

Re: Error: SimGearComponent

Postby Hooray » Mon Oct 20, 2014 4:32 pm

what cmake version is this, and which git branch (should be next/next) ? Is this a fresh build tree or are you using an old tree ?
The missing file should be implicitly included by cmake, it should be in the CMakeModules directory.
If you are using a recent version of cmake, and are building next/next (or the 3.2 release tag), consider using "git status" to check your source trees.
Please don't send support requests by PM, instead post your questions on the forum so that all users can contribute and benefit
Thanks & all the best,
Hooray
Help write next month's newsletter !
pui2canvas | MapStructure | Canvas Development | Programming resources
Hooray
 
Posts: 12707
Joined: Tue Mar 25, 2008 9:40 am
Pronouns: THOU

Re: Error: SimGearComponent

Postby daveculp » Mon Oct 20, 2014 5:02 pm

cmake is version 2.8.9
SimGear is downloaded today from the link provided at the FlightGear website download page. Version 3.2 dated 1 Oct 2014. http://mirrors.ibiblio.org/simgear/ftp/Source/ , file simgear-3.2.0.tar.bz2

I had the same error trying to compile rc2, which is why I waited for the 3.2 release to try again.

As for git, sorry I don't know anything about it.

Thanks! Dave
User avatar
daveculp
 
Posts: 505
Joined: Sun Feb 24, 2013 2:50 am
Location: Las Vegas, USA
Callsign: DCulp
Version: 2017.3.1
OS: Ubuntu 17.10


Return to Compiling

Who is online

Users browsing this forum: No registered users and 7 guests