Board index FlightGear Support Compiling

Debian/Ubuntu download_and_compile.sh color fix

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

Re: Debian/Ubuntu download_and_compile.sh color fix

Postby SurferTim » Tue Jul 27, 2021 5:29 pm

I'm into new!
There is a "-b" option with the download_and_compile script that I can specify:
Release
RelWithDebInfo
Debug

Which of the last two should I use?

Edit: I found it isn't crashing my computer. It responds to keyboard input. The left and right displays are showing, but the center (Front) is black.
The terminal reports OSG is unable to find display 0:0.
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 6:23 pm

RelWithDebInfo should be good. But i'm not sure it will yield any usefull information if FG doesn't actually crash.
maybe instead attach the FG log to your ticket report.
another thing: iirc there are different ways to set up multiple monitors with FG. i briefly toyed with such a setup and iirc used the method of defining one large window.

found the XML i used back then. i think it requires your Window manager/X11 to also join all screens into one large window.

Code: Select all
<?xml version="1.0"?>
<PropertyList>
<sim>
<rendering>
      <multithreading-mode>AutomaticSelection</multithreading-mode>
      <!--multithreading-mode>SingleThreaded</multithreading-mode-->
      <!-- multithreading-mode>DrawThreadPerContext</multithreading-mode -->
      <!--multithreading-mode>CullDrawThreadPerContext</multithreading-mode -->
      <!--multithreading-mode>CullThreadPerCameraDrawThreadPerContext</multithreading-mode-->

<camera-group>

        <window>
          <name type="string">main</name>
          <host-name type="string"></host-name>
          <display>0</display>
          <screen>0</screen>
          <x>0</x>
          <y>0</y>
          <width>5760</width>
          <height>1080</height>
          <overrideRedirect type = "bool">true</overrideRedirect>
          <decoration type = "bool">false</decoration>
          <fullscreen type = "bool">true</fullscreen>
     </window>

        <camera>
          <name type="string">P2314H</name>
          <window>
            <name>main</name>
          </window>
          <view>
            <heading-deg type = "double">0</heading-deg>
          </view>
          <master-perspective>
            <eye-distance type="double">0.7</eye-distance>
       <y-offset type="double">0.0</y-offset>
     </master-perspective>
          <viewport>
            <x>1920</x>
            <y>0</y>
            <width>1920</width>
            <height>1080</height>
          </viewport>
     <physical-dimensions>
            <width>0.509</width>
       <height>0.286</height>
            <bezel>
              <top>0.02</top>
              <left>0.0</left>
              <bottom>0.02</bottom>
              <right>0.0</right>
            </bezel>
          </physical-dimensions>
     </camera>

        <camera>
          <name type="string">dell_l</name>
          <window>
            <name>main</name>
          </window>
     <view>
       <heading-deg type = "double">45</heading-deg>
          </view>
          <left-of-perspective>
            <parent-camera>P2314H</parent-camera>
          </left-of-perspective>
          <viewport>
            <x>0</x>
            <y>0</y>
            <width>1920</width>
            <height>1080</height>
          </viewport>
          <physical-dimensions>
            <width>0.509</width>
            <height>0.286</height>
            <bezel>
              <top>0.012</top>
              <left>0.012</left>
              <bottom>0.02</bottom>
              <right>0.019</right>
            </bezel>
          </physical-dimensions>
     </camera>

        <camera>
          <name type="string">dell_r</name>
          <window>
            <name>main</name>
          </window>
     <view>
       <heading-deg type = "double">-45</heading-deg>
          </view>
          <right-of-perspective>
            <parent-camera>P2314H</parent-camera>
          </right-of-perspective>
          <viewport>
            <x>3840</x>
            <y>0</y>
            <width>1920</width>
            <height>1080</height>
          </viewport>
          <physical-dimensions>
            <width>0.509</width>
            <height>0.286</height>
            <bezel>
              <top>0.012</top>
              <left>0.019</left>
              <bottom>0.02</bottom>
              <right>0.012</right>
            </bezel>
          </physical-dimensions>
        </camera>
        <gui>
          <window>
            <name type="string">main</name>
     </window>
        </gui>

</camera-group>
</rendering>
</sim>
</PropertyList>
sfr
 
Posts: 93
Joined: Sun Nov 17, 2019 6:25 pm
Callsign: D-CSFR
Version: 2020.4
OS: Kubuntu 18.04 LTS

Re: Debian/Ubuntu download_and_compile.sh color fix

Postby SurferTim » Tue Jul 27, 2021 7:13 pm

I figured it out. The new config file is order dependent.
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 V12 » Mon Oct 04, 2021 8:56 am

On LUbuntu 20.04 I compiled FG 2020.3.11 with unmodified script, result was bad colors on A320family FCS panel. After script changes all is OK. Then I tried compile latest 2020.4.0 with unmodified script. That attempt was successfull, but FG is extremly unstable, crashes to desktop very frequently in phase of scenery downloading or loading. If starts successfully, A320family FCS panel colors are OK. After attempt to use photoscenery - checked box in the dialog and click to OK instantly CTD.
Probably I have some problem with Ubuntu instalation, because I have another srange problem descriibed at viewtopic.php?f=5&t=39781
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 » Sat Oct 09, 2021 12:21 pm

My bad. Just saw this. I was distracted with my landing lights. Since upgrading to FG2020.4.0 with the Simgear patch, I haven't had any CTDs or color problems.

Link to thread with Simgear patch.
viewtopic.php?f=71&t=39535
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 V12 » Sat Oct 09, 2021 5:02 pm

Thx, sometime will try to patch SG. IMHO, my problem is other, my FG do not crashes inflight, only at start when downloading / loading scenery. I can made EGLL-KJFK without any crash (https://www.youtube.com/watch?v=5JiEkv0xJac)
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 » Fri Nov 19, 2021 11:25 am

Now that you mentioned crashing on aircraft load, mine hasn't crashed during downloading since the patch.

Edit: To be precise, once in about every three times selecting "Fly", the splash screen would display for a couple seconds, then crash back to the Ubuntu desktop.
Doesn't do it now.
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

Previous

Return to Compiling

Who is online

Users browsing this forum: No registered users and 2 guests