Board index FlightGear Support Compiling

[solved] simgear compilation fails on include

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

[solved] simgear compilation fails on include

Postby mifi » Fri Feb 19, 2021 9:28 am

Hello all,

The past couple of days, almost a week, compilation of simgear fails consistently on my Linux machine:

Code: Select all
$HOME/Software/Sources/fgfs/next/simgear/simgear/io/HTTPRepository.cxx:26:10: fatal error: filesystem: No such file or directory
 #include <filesystem>
          ^~~~~~~~~~~~
compilation terminated.


I am using download_and_compile.sh from fgmeta to compile the 'next' branch.

Is this due to config missing something?

Thanks.
m
Last edited by mifi on Sat Feb 20, 2021 1:22 pm, edited 1 time in total.
mifi
 
Posts: 327
Joined: Mon Jul 23, 2007 4:24 pm
Location: NL
Version: git next
OS: Ubuntu 18.04.x Gnome

Re: simgear compilation fails on include

Postby Ovazor » Fri Feb 19, 2021 1:06 pm

It may be due to compiler version. I had the same issue with gcc 7.5 and the corresponding gpp, which were the system default. However, it compiled nicely with gcc-9
Flying the Dakota
Ovazor
 
Posts: 76
Joined: Wed Feb 12, 2014 7:53 am
Location: Finland
Callsign: OH-OVA
Version: 2020.4.0
OS: OpenSUSE LEap 15.2

Re: simgear compilation fails on include

Postby mifi » Fri Feb 19, 2021 1:42 pm

Possibly. I will give compiling a try in a different version in a VM and see.
My compiler version did not change since last week. Simgear did.
Oh well. I will give it a try. Thanks.
mifi
 
Posts: 327
Joined: Mon Jul 23, 2007 4:24 pm
Location: NL
Version: git next
OS: Ubuntu 18.04.x Gnome

Re: simgear compilation fails on include

Postby zakalawe » Fri Feb 19, 2021 2:49 pm

Please report compilation errors on the mailing list, otherwise they are hard to find.

The good news is, this include can be removed, we switched to using a built-in method for this. So the include isn't needed any more.
zakalawe
 
Posts: 1259
Joined: Sat Jul 19, 2008 5:48 pm
Location: Edinburgh, Scotland
Callsign: G-ZKLW
Version: next
OS: Mac

Re: simgear compilation fails on include

Postby mifi » Fri Feb 19, 2021 3:08 pm

Thanks.
mifi
 
Posts: 327
Joined: Mon Jul 23, 2007 4:24 pm
Location: NL
Version: git next
OS: Ubuntu 18.04.x Gnome

Re: [solved] simgear compilation fails on include

Postby mifi » Sat Feb 20, 2021 1:25 pm

Both Ovazor and zakalawe are right.

On Ubuntu 18.04 I changed the compiler to a newer version that is available in the repo's:
Code: Select all
sudo apt install gcc-8 g++-8
CC=gcc-8 CXX=g++-8 ../fgmeta/download_and_compile.sh


Adapt your download_and_compile.sh path to whatever it has to be on your system.

Solved.
m
mifi
 
Posts: 327
Joined: Mon Jul 23, 2007 4:24 pm
Location: NL
Version: git next
OS: Ubuntu 18.04.x Gnome


Return to Compiling

Who is online

Users browsing this forum: No registered users and 5 guests