Board index FlightGear Support Compiling

[Solved] Git/Next build fails (Linux)  Topic is solved

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

[Solved] Git/Next build fails (Linux)

Postby Bjoern » Thu Feb 06, 2020 6:09 pm

Anybody else unable to compile a Git/Next build (on Linux) at the moment?

Console output:
Code: Select all
[ 98%] Building CXX object src/Main/CMakeFiles/fgfs.dir/logger.cxx.o
/media/Simulators/FlightGear-git/fgsource/src/Viewer/renderer_legacy.cxx: In member function ‘void FGRenderer::init()’:
/media/Simulators/FlightGear-git/fgsource/src/Viewer/renderer_legacy.cxx:532:75: error: too few arguments to function ‘void SGConfigureDirectionalLights(bool, bool, bool)’
  532 |     SGConfigureDirectionalLights( use_point_sprites, distance_attenuation );
      |                                                                           ^
In file included from /media/Simulators/FlightGear-git/fgsource/src/Viewer/renderer_legacy.cxx:80:
/media/Simulators/FlightGear_LIN/include/simgear/scene/tgdb/pt_lights.hxx:57:13: note: declared here
   57 | inline void SGConfigureDirectionalLights( bool use_point_sprites,
      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
[ 98%] Building CXX object src/Main/CMakeFiles/fgfs.dir/main.cxx.o
[ 98%] Building CXX object src/Main/CMakeFiles/fgfs.dir/options.cxx.o
[ 98%] Building CXX object src/Main/CMakeFiles/fgfs.dir/positioninit.cxx.o
make[2]: *** [src/Main/CMakeFiles/fgfs.dir/build.make:6350: src/Main/CMakeFiles/fgfs.dir/__/Viewer/renderer_legacy.cxx.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: Leaving directory '/media/Simulators/FlightGear-git/fgbuild'
make[1]: *** [CMakeFiles/Makefile2:2565: src/Main/CMakeFiles/fgfs.dir/all] Error 2
make[1]: Leaving directory '/media/Simulators/FlightGear-git/fgbuild'
make: *** [Makefile:163: all] Error 2
ERROR: FLIGHTGEAR BUILD FAILED


There was a commit related to this more than a week ago, which I think is the culprit:
https://sourceforge.net/p/flightgear/fl ... e69a3e157/

Ticket:
https://sourceforge.net/p/flightgear/codetickets/2188/
Last edited by Bjoern on Sat Feb 08, 2020 4:18 am, edited 1 time in total.
Bjoern
 
Posts: 484
Joined: Fri Jan 06, 2012 11:00 pm
Location: TXL (RIP)
Version: Next
OS: ArchLinux

Re: Git/Next build fails (Linux; SGConfigureDirectionalLight

Postby stuart » Thu Feb 06, 2020 6:40 pm

Hi Bjoern,

I understood that this is caused by not having pulled simgear as well as flightgear. Can you double-check that you've got the latest on both please.

-Stuart
G-MWLX
User avatar
stuart
Moderator
 
Posts: 1629
Joined: Wed Nov 29, 2006 10:56 am
Location: Edinburgh
Callsign: G-MWLX

Re: Git/Next build fails (Linux; SGConfigureDirectionalLight

Postby Bjoern » Thu Feb 06, 2020 9:54 pm

I'm using a script to build FG and SG and it does pull and compile SG before pulling and building FG.

Git log output for SimGear's source folder:
Code: Select all
commit 11e243a2165b343633ba2d19208a972477bbf1bf (HEAD -> next, origin/next, origin/HEAD)


Git log output for FlightGear's source folder:
Code: Select all
commit 22de9d30b518646894ac190cc6b04371daa6d5c2 (HEAD -> next, origin/next, origin/HEAD)



Deleted all source file folders and started from scratch as well. No change; still refuses to compile.
Bjoern
 
Posts: 484
Joined: Fri Jan 06, 2012 11:00 pm
Location: TXL (RIP)
Version: Next
OS: ArchLinux

Re: [Solved] Git/Next build fails (Linux)  

Postby Bjoern » Sat Feb 08, 2020 4:23 am

There was no bug or issue in the code. I'm just an utter, massive idiot.

To get the current "Next" branch, one has to pull from "https://git.code.sf.net/p/flightgear/flightgear". My script still pulled from "https://github.com/FlightGear/flightgear.git", which is several months behind. No wonder it refused to compile.

Funnily enough, the Github mirror for Simgear seems to be more up-to-date than the one for FG, which must have produced the compilation issue due to different SG and FG commit levels in the first place.
Bjoern
 
Posts: 484
Joined: Fri Jan 06, 2012 11:00 pm
Location: TXL (RIP)
Version: Next
OS: ArchLinux


Return to Compiling

Who is online

Users browsing this forum: No registered users and 6 guests