I was able to successfully compile FlightGear stable and next by using the download_and_compile.sh script. I followed the instructions on the FlightGear wiki: https://wiki.flightgear.org/Scripted_Compilation_on_Linux_Debian/Ubuntu.
However, the LTS and old LTS versions fail to compile. I'm on Debian Bookworm 12.7. Prior to compiling, I upgraded the system, so all the packages are up to date.
I recorded a video demonstrating what happens when I try to compile LTS and old LTS: https://youtu.be/AONWuT7DhOU. Logs for what I did in the video are provided in the attachments.
Fix for the broken links:
Video: https://youtu.be/AONWuT7DhOU
Wiki: https://wiki.flightgear.org/Scripted_Compilation_on_Linux_Debian/Ubuntu
This is casued by your system having a fairly recent compiler. We are aiming to keep the 2020.3 LTS code building on a C++11 compiler, and somewhat older distros, so we have to walk a careful line here. But OSG itself is also somewhat unmaintained at this point, especially the 3.4 branch used in the LTS.
Depending on what your goal is, you can modify the script to build the LTS using OSG 3.6 (which might be available as prebuilt packages for your system)?
Thanks for explaining. This is really good to know.
I think I'm going to let this one go for now since I have a working appimage for 2020.3.
I asked partly out of my own curiosity and to report what I thought could be a bug, and partly because I made this YouTube tutorial about a month ago about compiling FlightGear from source by using this script.
I only found out that LTS and old LTS weren't compiling the way I thought they would after the video was already uploaded, so I thought it would be good to investigate.