Board index FlightGear Support Compiling

Debian/Ubuntu download_and_compile.sh color fix

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

Debian/Ubuntu download_and_compile.sh color fix

Postby SurferTim » Thu Nov 26, 2020 7:50 pm

I had problems with the colors on my Garmin GPS again with the latest Ubuntu repo 2020.3.1, so I compiled 2020.3.3. It had the same problem, but I can fix that.
Modified, it seems to work good. Followed this guide.
http://wiki.flightgear.org/Scripted_Com ... ian/Ubuntu
Used this script ran like this (note the -s)
Code: Select all
./download_and_compile.sh -s -j4 SIMGEAR FGFS DATA OSG

Before you run it, you must edit the file and change these:
Code: Select all
Change this line 695 under "latest release"
      COMPONENT_BRANCH[OSG]=OpenSceneGraph-3.4
to this
      COMPONENT_BRANCH[OSG]=fgfs-342-1

Change this line 1012
REPO_ADDRESS[OSG]="github.com/openscenegraph/osg.git"
to this
REPO_ADDRESS[OSG]="github.com/zakalawe/osg.git"

Thanks to legoboyvdlp for the original fix.
Fly low. Fly slow. Land on a dime. Twin Otter. https://github.com/SurferTim/dhc6p
My other aircraft is a Citation-X https://github.com/SurferTim/CitationX
PirateAir videos at https://www.youtube.com/user/SurferTim850
User avatar
SurferTim
 
Posts: 1708
Joined: Sun Dec 09, 2018 6:49 pm
Location: Miramar Beach, FL
Callsign: Pirate
Version: 2020.4.0
OS: Ubuntu 18.04

Re: Debian/Ubuntu download_and_compile.sh color fix

Postby wkitty42 » Thu Nov 26, 2020 8:53 pm

SurferTim wrote in Thu Nov 26, 2020 7:50 pm:I had problems with the colors on my Garmin GPS again with the latest Ubuntu repo 2020.3.1, so I compiled 2020.3.3. It had the same problem

this sounds like, based on your "fix", that it is the well known OSGText problem... the problem is a defect in FG... switching to an older OSG version (3.4.0) bypasses the defect because it isn't a defect when using that version of OSG... the proper fix is to adjust FG to work properly with newer OSG... that work is ongoing, from what i understand based on a recent post or two on the devs' mailing list...
"You get more air close to the ground," said Angalo. "I read that in a book. You get lots of air low down, and not much when you go up."
"Why not?" said Gurder.
"Dunno. It's frightened of heights, I guess."
User avatar
wkitty42
 
Posts: 9146
Joined: Fri Feb 20, 2015 4:46 pm
Location: central NC, USA
Callsign: wk42
Version: git next
OS: Kubuntu 20.04

Re: Debian/Ubuntu download_and_compile.sh color fix

Postby SurferTim » Thu Nov 26, 2020 9:15 pm

It is the standard issue Garmin GPS. Nobody has fixed it in all this time. I wasn't about to wait.
It also changed color of my panel displays in the Citation.
I'm supposed to rebuild all that?
Fly low. Fly slow. Land on a dime. Twin Otter. https://github.com/SurferTim/dhc6p
My other aircraft is a Citation-X https://github.com/SurferTim/CitationX
PirateAir videos at https://www.youtube.com/user/SurferTim850
User avatar
SurferTim
 
Posts: 1708
Joined: Sun Dec 09, 2018 6:49 pm
Location: Miramar Beach, FL
Callsign: Pirate
Version: 2020.4.0
OS: Ubuntu 18.04

Re: Debian/Ubuntu download_and_compile.sh color fix

Postby wkitty42 » Thu Nov 26, 2020 10:09 pm

when the proper fix is in, no changes should need to be made... the parameters and function should be the same... hopefully... if not, then a wrapper for the old function to feed the new function would likely work fine...
"You get more air close to the ground," said Angalo. "I read that in a book. You get lots of air low down, and not much when you go up."
"Why not?" said Gurder.
"Dunno. It's frightened of heights, I guess."
User avatar
wkitty42
 
Posts: 9146
Joined: Fri Feb 20, 2015 4:46 pm
Location: central NC, USA
Callsign: wk42
Version: git next
OS: Kubuntu 20.04

Re: Debian/Ubuntu download_and_compile.sh color fix

Postby V12 » Thu Nov 26, 2020 10:38 pm

SurferTim :
Can You post view from A320family cockpit ? What color have numbers on the FMC panel ? Are they white or orange ? I have white and it is incorrect.

EDIT :
Nevermind, I recompiled my FG instalation, on hyperthreaded Ryzen 7 3700X it was blazing fast. Now, Bus have orange digits on FMC panel.
Thank You for guide.
Fly high, fly fast - fly Concorde !
V12
 
Posts: 2757
Joined: Thu Jan 12, 2017 5:27 pm
Location: LZIB
Callsign: BAWV12

Re: Debian/Ubuntu download_and_compile.sh color fix

Postby SurferTim » Thu Nov 26, 2020 11:25 pm

The Citation had white digits instead of orange as before my upgrade attempt. Now they're back to orange.
The Garmin GPS was white text on white background until the mod. Unreadable. Now it is fine.

Edit: I lost the MFD route and fix display in my version of the Citation-X. I presume the nd function no longer works?
This fail not due to new osg. It didn't work in the Ubuntu 2020.3.1 version.
I presume the function is still there because when I activate it, I get precipitation in the cockpit.
If it had been removed, there should be no rain in the cockpit.
Fly low. Fly slow. Land on a dime. Twin Otter. https://github.com/SurferTim/dhc6p
My other aircraft is a Citation-X https://github.com/SurferTim/CitationX
PirateAir videos at https://www.youtube.com/user/SurferTim850
User avatar
SurferTim
 
Posts: 1708
Joined: Sun Dec 09, 2018 6:49 pm
Location: Miramar Beach, FL
Callsign: Pirate
Version: 2020.4.0
OS: Ubuntu 18.04

Re: Debian/Ubuntu download_and_compile.sh color fix

Postby SurferTim » Wed Dec 16, 2020 8:56 pm

Same problem with 2020.3.4.
Fly low. Fly slow. Land on a dime. Twin Otter. https://github.com/SurferTim/dhc6p
My other aircraft is a Citation-X https://github.com/SurferTim/CitationX
PirateAir videos at https://www.youtube.com/user/SurferTim850
User avatar
SurferTim
 
Posts: 1708
Joined: Sun Dec 09, 2018 6:49 pm
Location: Miramar Beach, FL
Callsign: Pirate
Version: 2020.4.0
OS: Ubuntu 18.04

Re: Debian/Ubuntu download_and_compile.sh color fix

Postby wkitty42 » Wed Dec 16, 2020 9:31 pm

it will always be a problem with ANY version of FG built with OSG 3.4.1 or newer...

OSG changed how they handle OSGText and FG has not kept up with that change... someone on the mailing list, scott i think, posted a message a week or two ago that they were looking into it so FG could move up to the modern methods used but i do not recall seeing anything about a fix posted, yet...
"You get more air close to the ground," said Angalo. "I read that in a book. You get lots of air low down, and not much when you go up."
"Why not?" said Gurder.
"Dunno. It's frightened of heights, I guess."
User avatar
wkitty42
 
Posts: 9146
Joined: Fri Feb 20, 2015 4:46 pm
Location: central NC, USA
Callsign: wk42
Version: git next
OS: Kubuntu 20.04

Re: Debian/Ubuntu download_and_compile.sh color fix

Postby SurferTim » Tue Dec 29, 2020 11:59 am

Same problem with 2020.3.5

Edit: I'm still using the modified 2020.3.3, and it seems to be working good except this color deal...and the ALS landing lights ...and the route/fix display on the CitationX.
Fly low. Fly slow. Land on a dime. Twin Otter. https://github.com/SurferTim/dhc6p
My other aircraft is a Citation-X https://github.com/SurferTim/CitationX
PirateAir videos at https://www.youtube.com/user/SurferTim850
User avatar
SurferTim
 
Posts: 1708
Joined: Sun Dec 09, 2018 6:49 pm
Location: Miramar Beach, FL
Callsign: Pirate
Version: 2020.4.0
OS: Ubuntu 18.04

Re: Debian/Ubuntu download_and_compile.sh color fix

Postby wkitty42 » Tue Dec 29, 2020 5:26 pm

wkitty42 wrote in Wed Dec 16, 2020 9:31 pm:it will always be a problem with ANY version of FG built with OSG 3.4.1 or newer...

... until FG is fixed to use the new methods, that is...
"You get more air close to the ground," said Angalo. "I read that in a book. You get lots of air low down, and not much when you go up."
"Why not?" said Gurder.
"Dunno. It's frightened of heights, I guess."
User avatar
wkitty42
 
Posts: 9146
Joined: Fri Feb 20, 2015 4:46 pm
Location: central NC, USA
Callsign: wk42
Version: git next
OS: Kubuntu 20.04

Re: Debian/Ubuntu download_and_compile.sh color fix

Postby SurferTim » Tue Dec 29, 2020 6:29 pm

wkitty42 wrote in Tue Dec 29, 2020 5:26 pm:
wkitty42 wrote in Wed Dec 16, 2020 9:31 pm:it will always be a problem with ANY version of FG built with OSG 3.4.1 or newer...

... until FG is fixed to use the new methods, that is...

I know that. You know that. Just letting everybody know it isn't fixed yet.
Why are they using a version of OSG that the code has not been modified to use?
The version I used above works ok.
I'll let everybody know when I check the next version if it is fixed OR NOT!
Fly low. Fly slow. Land on a dime. Twin Otter. https://github.com/SurferTim/dhc6p
My other aircraft is a Citation-X https://github.com/SurferTim/CitationX
PirateAir videos at https://www.youtube.com/user/SurferTim850
User avatar
SurferTim
 
Posts: 1708
Joined: Sun Dec 09, 2018 6:49 pm
Location: Miramar Beach, FL
Callsign: Pirate
Version: 2020.4.0
OS: Ubuntu 18.04

Re: Debian/Ubuntu download_and_compile.sh color fix

Postby wkitty42 » Wed Dec 30, 2020 3:02 pm

SurferTim wrote in Tue Dec 29, 2020 6:29 pm:
wkitty42 wrote in Tue Dec 29, 2020 5:26 pm:... until FG is fixed to use the new methods, that is...

I know that. You know that. Just letting everybody know it isn't fixed yet.

we already know... it is spread all over the 'net in 40leven places...

SurferTim wrote in Tue Dec 29, 2020 6:29 pm:Why are they using a version of OSG that the code has not been modified to use?

who? OSG 3.4.0 is what the official FG builds are using... anyone building with OSG 3.4.1 and newer should be aware of the consequences and not complain about them...

SurferTim wrote in Tue Dec 29, 2020 6:29 pm:The version I used above works ok.
I'll let everybody know when I check the next version if it is fixed OR NOT!

ALL versions of FG v3+ work properly IF they are built against OSG 3.4.0... you reporting every FG version built with unsupported OSG versions is wasteful of your time, futile since no one has yet jumped into the code, and lastly not helpful at all... if you really want it fixed, then get into the code and do something about that instead of wasting time reporting it here where the devs don't even read... they are very aware of the defect...

it should be noted that WHEN this defect is properly fixed, that news will spread faster than you can click the quote or reply buttons in these forums... especially since it would also mean official FG is built with OSG 3.4.1 or newer ;)
"You get more air close to the ground," said Angalo. "I read that in a book. You get lots of air low down, and not much when you go up."
"Why not?" said Gurder.
"Dunno. It's frightened of heights, I guess."
User avatar
wkitty42
 
Posts: 9146
Joined: Fri Feb 20, 2015 4:46 pm
Location: central NC, USA
Callsign: wk42
Version: git next
OS: Kubuntu 20.04

Re: Debian/Ubuntu download_and_compile.sh color fix

Postby SurferTim » Wed Dec 30, 2020 3:14 pm

Let me know when the next stable version is ready. :wink:

Edit: Same problem FG2020.3.5
Fly low. Fly slow. Land on a dime. Twin Otter. https://github.com/SurferTim/dhc6p
My other aircraft is a Citation-X https://github.com/SurferTim/CitationX
PirateAir videos at https://www.youtube.com/user/SurferTim850
User avatar
SurferTim
 
Posts: 1708
Joined: Sun Dec 09, 2018 6:49 pm
Location: Miramar Beach, FL
Callsign: Pirate
Version: 2020.4.0
OS: Ubuntu 18.04

Re: Debian/Ubuntu download_and_compile.sh color fix

Postby SurferTim » Tue Jul 27, 2021 4:03 pm

FG2020.4.0 solves the color bug.
However, my up-until-now multi-display configuration file crashes (locks up) my computer. I'm stuck with one display, at least until I figure out what I causing the crash.
Fly low. Fly slow. Land on a dime. Twin Otter. https://github.com/SurferTim/dhc6p
My other aircraft is a Citation-X https://github.com/SurferTim/CitationX
PirateAir videos at https://www.youtube.com/user/SurferTim850
User avatar
SurferTim
 
Posts: 1708
Joined: Sun Dec 09, 2018 6:49 pm
Location: Miramar Beach, FL
Callsign: Pirate
Version: 2020.4.0
OS: Ubuntu 18.04

Re: Debian/Ubuntu download_and_compile.sh color fix

Postby sfr » Tue Jul 27, 2021 5:12 pm

i'd suggest to create a debug build and run flightgear in gdb to get a backtrace, then open a ticket and attach the gdb log.
i don't know if the download_and_compile.sh script has a 'debug build' option though.

a suitable gdb cmd line is:

Code: Select all
gdb -q -n -batch -ex 'handle SIGTSTP nostop' -ex 'handle SIGCONT nostop' -ex 'handle SIGHUP nostop nopass' -ex 'handle SIGPIPE nostop' -ex r -ex 'thread apply all bt' -ex where --args ./fgfs --launcher
sfr
 
Posts: 93
Joined: Sun Nov 17, 2019 6:25 pm
Callsign: D-CSFR
Version: 2020.4
OS: Kubuntu 18.04 LTS

Next

Return to Compiling

Who is online

Users browsing this forum: No registered users and 4 guests