Board index FlightGear Support Compiling

download_and_compile.sh on Debian on WSL  Topic is solved

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

Re: download_and_compile.sh on Debian on WSL

Postby rominet » Tue Jun 16, 2020 7:35 pm

Your problem with dynamic loading of libQt5Core.so.5 appears to be due to WSL: see here (don't forget to use the path for Debian or Ubuntu in the precise comment I'm linking to, not the one for Arch Linux.

Edit: BTW, some people seem to have the same problem not under WSL, but simply when using an antique Linux kernel (which is dangerous if you're connected to the Internet).
Last edited by rominet on Tue Jun 16, 2020 7:56 pm, edited 1 time in total.
rominet
 
Posts: 605
Joined: Sat Nov 01, 2014 2:33 pm
Callsign: F-KATS
Version: Git next
OS: Debian GNU/Linux

Re: download_and_compile.sh on Debian on WSL

Postby xDraconian » Tue Jun 16, 2020 7:53 pm

Nice job troubleshooting this issue @rominet.

Scott
xDraconian
 
Posts: 406
Joined: Sun Jan 21, 2018 6:53 am
Version: Git
OS: Linux Mint

Re: download_and_compile.sh on Debian on WSL

Postby rominet » Tue Jun 16, 2020 8:05 pm

Thanks Scott, but the really hard work was done by the Arch Linux folks... and I'm still waiting for pb321's verdict. :wink:
rominet
 
Posts: 605
Joined: Sat Nov 01, 2014 2:33 pm
Callsign: F-KATS
Version: Git next
OS: Debian GNU/Linux

Re: download_and_compile.sh on Debian on WSL

Postby pb321 » Tue Jun 16, 2020 8:20 pm

Code: Select all
pb321@Lenovo:~$ ldd /usr/lib/qt5/bin/lrelease | grep -F libQt5Core.so.5
        libQt5Core.so.5 => not found
        libQt5Core.so.5 => not found
pb321@Lenovo:~$ sudo idconfig
sudo: idconfig: command not found


Am I doing this right?
pb321
 
Posts: 424
Joined: Sun Nov 27, 2016 5:08 pm
Version: 2020.4.0
OS: Windows 10 Pro

Re: download_and_compile.sh on Debian on WSL

Postby pb321 » Tue Jun 16, 2020 8:26 pm

I think that might do it?
Code: Select all
pb321@Lenovo:~$ sudo strip --remove-section=.note.ABI-tag /usr/lib/x86_6
4-linux-gnu/libQt5Core.so.5
pb321@Lenovo:~$ ldd /usr/lib/qt5/bin/lrelease | grep -F libQt5Core.so.5
        libQt5Core.so.5 => /usr/lib/x86_64-linux-gnu/libQt5Core.so.5 (0x00007f561f870000)


I'll give it a try now and report back later today...
pb321
 
Posts: 424
Joined: Sun Nov 27, 2016 5:08 pm
Version: 2020.4.0
OS: Windows 10 Pro

Re: download_and_compile.sh on Debian on WSL

Postby rominet » Tue Jun 16, 2020 8:36 pm

(Replying to your penultimate message, but you seem to be on track now: the last output you gave for 'ldd /usr/lib/qt5/bin/lrelease | grep -F libQt5Core.so.5' looks good.)

First, it's ldconfig with the letter L, but you normally don't need to run it yourself (library packages automatically do it when you install or upgrade them). I would:

1) Backup /usr/lib/x86_64-linux-gnu/libQt5Core.so.5.11.13 to some place in you home dir or in /root (it's probably too late now, but never mind).

2) Run:
Code: Select all
sudo strip --remove-section=.note.ABI-tag /usr/lib/x86_64-linux-gnu/libQt5Core.so.5.11.13


At this point, things should be fine until the next time you upgrade the package providing libQt5Core. First try 'ldd /usr/lib/qt5/bin/lrelease | grep -F libQt5Core.so.5', then get back to your FG build.
rominet
 
Posts: 605
Joined: Sat Nov 01, 2014 2:33 pm
Callsign: F-KATS
Version: Git next
OS: Debian GNU/Linux

Re: download_and_compile.sh on Debian on WSL

Postby pb321 » Tue Jun 16, 2020 8:40 pm

It's working...!!!
pb321
 
Posts: 424
Joined: Sun Nov 27, 2016 5:08 pm
Version: 2020.4.0
OS: Windows 10 Pro

Re: download_and_compile.sh on Debian on WSL

Postby rominet » Tue Jun 16, 2020 8:42 pm

Yay! :D
rominet
 
Posts: 605
Joined: Sat Nov 01, 2014 2:33 pm
Callsign: F-KATS
Version: Git next
OS: Debian GNU/Linux

Re: download_and_compile.sh on Debian on WSL

Postby pb321 » Tue Jun 16, 2020 8:45 pm

Whoops! Missed your previous post. It's 28% done now.
pb321
 
Posts: 424
Joined: Sun Nov 27, 2016 5:08 pm
Version: 2020.4.0
OS: Windows 10 Pro

Re: download_and_compile.sh on Debian on WSL

Postby pb321 » Tue Jun 16, 2020 9:49 pm

Yes!! It compiled successfully! I thank you @rominet and all others who have helped get this thing working on Debian on WSL!

The X-Window opened, first showing the blue progress bar, then that disappeared and soon a larger window appeared as black, however...
Code: Select all
   51.29 [INFO]:navaid     /home/pb321/flightgear/dnc-managed/install/flightgear/fgdata/Navaids/nav.dat.gz:26763: skipping navaid 'Yakutsk DME' (nearby suspected duplicate 'YAKUTSK VOR-DME')
   51.29 [INFO]:navaid     nav.dat files load took: 2613
   52.38 [INFO]:navaid     stage 1 commit took:1096
   67.21 [INFO]:navaid     poi.dat load took:14576
   71.70 [INFO]:navaid     POI commit took:4489
   75.04 [INFO]:navaid     awy.dat load took:3284
   77.61 [INFO]:navaid     final commit took:2573
   77.61 [INFO]:navaid     cache rebuild took:46012msec
   77.93 [INFO]:general    init package root at:Path "/home/pb321/.fgfs/Aircraft"
   80.26 [WARN]:gui        QGLXContext: Failed to create dummy context
   96.12 [WARN]:gui        QUnifiedTimer::stopAnimationDriver: driver is not running


Is this too much for WSL?
pb321
 
Posts: 424
Joined: Sun Nov 27, 2016 5:08 pm
Version: 2020.4.0
OS: Windows 10 Pro

Re: download_and_compile.sh on Debian on WSL

Postby rominet » Tue Jun 16, 2020 11:01 pm

Mmm, maybe but I'm not competent enough in WSL, OpenGL, GLX or 3D stuff to be positive on this.
rominet
 
Posts: 605
Joined: Sat Nov 01, 2014 2:33 pm
Callsign: F-KATS
Version: Git next
OS: Debian GNU/Linux

Re: download_and_compile.sh on Debian on WSL

Postby pb321 » Tue Jun 16, 2020 11:25 pm

I installed x11-apps as recommended on a forum. It resulted in the following:
Code: Select all
libGL error: No matching fbConfigs or visuals found
libGL error: failed to load driver: swrast
    0.46 [WARN]:gui        QGLXContext: Failed to create dummy context
  202.40 [INFO]:io         Saving user settings to Path "/home/pb321/.fgfs/autosave_2020_3.xml"
  202.41 [WARN]:general    SGSubsystemMgr::remove: not found: scenery


Other things I've read don't suggest installing this package, so I uninstalled it and ran fgfs again. Same Warning.
pb321
 
Posts: 424
Joined: Sun Nov 27, 2016 5:08 pm
Version: 2020.4.0
OS: Windows 10 Pro

Re: download_and_compile.sh on Debian on WSL

Postby xDraconian » Wed Jun 17, 2020 12:03 am

Appears to be OpenGL related.
Qt has this concept of Dummy Context when there is a missing component. Guessing, but the missing component may be OpenGL.

try running: glxinfo (for clarity that is... Golf Lima Xray India November Foxtrot Oscar)

If that fails then you may not have GLX installed, which is OpenGL with X Windows extensions.
xDraconian
 
Posts: 406
Joined: Sun Jan 21, 2018 6:53 am
Version: Git
OS: Linux Mint

Re: download_and_compile.sh on Debian on WSL

Postby pb321 » Wed Jun 17, 2020 1:06 am

Thanks, xDraconian! This is on a laptop with Intel HD 4000 graphics. Here is the result:

Code: Select all
pb321@Lenovo:~$ glxinfo
name of display: localhost:0
libGL error: No matching fbConfigs or visuals found
libGL error: failed to load driver: swrast
display: localhost:0  screen: 0
direct rendering: No (If you want to find out why, try setting LIBGL_DEBUG=verbose)
server glx vendor string: SGI
server glx version string: 1.4
server glx extensions:
    GLX_ARB_create_context, GLX_ARB_create_context_profile,
    GLX_ARB_create_context_robustness, GLX_ARB_fbconfig_float,
    GLX_ARB_framebuffer_sRGB, GLX_ARB_multisample,
    GLX_EXT_create_context_es2_profile, GLX_EXT_fbconfig_packed_float,
    GLX_EXT_framebuffer_sRGB, GLX_EXT_import_context, GLX_EXT_visual_info,
    GLX_EXT_visual_rating, GLX_MESA_copy_sub_buffer, GLX_OML_swap_method,
    GLX_SGIS_multisample, GLX_SGIX_fbconfig, GLX_SGIX_pbuffer,
    GLX_SGIX_visual_select_group, GLX_SGI_make_current_read,
    GLX_SGI_swap_control
client glx vendor string: Mesa Project and SGI
client glx version string: 1.4
client glx extensions:
    GLX_ARB_context_flush_control, GLX_ARB_create_context,
    GLX_ARB_create_context_profile, GLX_ARB_create_context_robustness,
    GLX_ARB_fbconfig_float, GLX_ARB_framebuffer_sRGB,
    GLX_ARB_get_proc_address, GLX_ARB_multisample, GLX_EXT_buffer_age,
    GLX_EXT_create_context_es2_profile, GLX_EXT_create_context_es_profile,
    GLX_EXT_fbconfig_packed_float, GLX_EXT_framebuffer_sRGB,
    GLX_EXT_import_context, GLX_EXT_texture_from_pixmap, GLX_EXT_visual_info,
    GLX_EXT_visual_rating, GLX_INTEL_swap_event, GLX_MESA_copy_sub_buffer,
    GLX_MESA_multithread_makecurrent, GLX_MESA_query_renderer,
    GLX_MESA_swap_control, GLX_OML_swap_method, GLX_OML_sync_control,
    GLX_SGIS_multisample, GLX_SGIX_fbconfig, GLX_SGIX_pbuffer,
    GLX_SGIX_visual_select_group, GLX_SGI_make_current_read,
    GLX_SGI_swap_control, GLX_SGI_video_sync
GLX version: 1.4
GLX extensions:
    GLX_ARB_create_context, GLX_ARB_create_context_profile,
    GLX_ARB_create_context_robustness, GLX_ARB_fbconfig_float,
    GLX_ARB_framebuffer_sRGB, GLX_ARB_get_proc_address, GLX_ARB_multisample,
    GLX_EXT_create_context_es2_profile, GLX_EXT_fbconfig_packed_float,
    GLX_EXT_framebuffer_sRGB, GLX_EXT_import_context, GLX_EXT_visual_info,
    GLX_EXT_visual_rating, GLX_MESA_copy_sub_buffer, GLX_OML_swap_method,
    GLX_SGIS_multisample, GLX_SGIX_fbconfig, GLX_SGIX_pbuffer,
    GLX_SGIX_visual_select_group, GLX_SGI_make_current_read,
    GLX_SGI_swap_control
OpenGL vendor string: Intel
OpenGL renderer string: Intel(R) HD Graphics 4000
OpenGL version string: 1.4 (4.0.0 - Build 10.18.10.5059)
OpenGL extensions:
    GL_3DFX_texture_compression_FXT1, GL_ARB_depth_texture,
    GL_ARB_draw_buffers, GL_ARB_fragment_program,
    GL_ARB_fragment_program_shadow, GL_ARB_multisample, GL_ARB_multitexture,
    GL_ARB_occlusion_query, GL_ARB_point_parameters, GL_ARB_point_sprite,
    GL_ARB_shadow, GL_ARB_texture_border_clamp, GL_ARB_texture_compression,
    GL_ARB_texture_cube_map, GL_ARB_texture_env_add,
    GL_ARB_texture_env_combine, GL_ARB_texture_env_crossbar,
    GL_ARB_texture_env_dot3, GL_ARB_texture_filter_anisotropic,
    GL_ARB_texture_mirrored_repeat, GL_ARB_texture_non_power_of_two,
    GL_ARB_texture_rectangle, GL_ARB_transpose_matrix, GL_ARB_vertex_program,
    GL_ARB_window_pos, GL_ATI_draw_buffers, GL_EXT_abgr, GL_EXT_bgra,
    GL_EXT_blend_color, GL_EXT_blend_equation_separate,
    GL_EXT_blend_func_separate, GL_EXT_blend_minmax, GL_EXT_blend_subtract,
    GL_EXT_clip_volume_hint, GL_EXT_draw_range_elements, GL_EXT_fog_coord,
    GL_EXT_framebuffer_object, GL_EXT_multi_draw_arrays, GL_EXT_packed_pixels,
    GL_EXT_point_parameters, GL_EXT_rescale_normal, GL_EXT_secondary_color,
    GL_EXT_separate_specular_color, GL_EXT_shadow_funcs,
    GL_EXT_stencil_two_side, GL_EXT_stencil_wrap, GL_EXT_texture3D,
    GL_EXT_texture_compression_s3tc, GL_EXT_texture_edge_clamp,
    GL_EXT_texture_env_add, GL_EXT_texture_env_combine,
    GL_EXT_texture_filter_anisotropic, GL_EXT_texture_lod_bias,
    GL_EXT_texture_rectangle, GL_IBM_texture_mirrored_repeat,
    GL_INGR_blend_func_separate, GL_NV_blend_square, GL_NV_texgen_reflection,
    GL_NV_texture_rectangle, GL_SGIS_generate_mipmap,
    GL_SGIS_texture_border_clamp, GL_SGIS_texture_edge_clamp,
    GL_SGIS_texture_lod, GL_SUN_multi_draw_arrays

23 GLX Visuals
    visual  x   bf lv rg d st  colorbuffer  sr ax dp st accumbuffer  ms  cav
  id dep cl sp  sz l  ci b ro  r  g  b  a F gb bf th cl  r  g  b  a ns b eat
----------------------------------------------------------------------------
0x021 24 tc  0  32  0 r  . .   8  8  8  8 .  s  0 24  8 16 16 16 16  0 0 None
0x064 24 tc  0  32  0 r  . .   8  8  8  8 .  s  0  0  0  0  0  0  0  0 0 None
0x065 24 tc  0  32  0 r  y .   8  8  8  8 .  s  0  0  0 16 16 16 16  0 0 None
0x066 24 tc  0  32  0 r  . .   8  8  8  8 .  s  0 24  8  0  0  0  0  0 0 None
0x067 24 tc  0  32  0 r  y .   8  8  8  8 .  s  0 24  8 16 16 16 16  0 0 None
0x068 24 tc  0  32  0 r  . .   8  8  8  8 .  s  0 16  0  0  0  0  0  0 0 None
0x069 24 tc  0  32  0 r  y .   8  8  8  8 .  s  0 16  0 16 16 16 16  0 0 None
0x06a 24 tc  0  32  0 r  y .   8  8  8  8 .  s  0  0  0 16 16 16 16  0 0 None
0x06b 24 tc  0  32  0 r  y .   8  8  8  8 .  s  0 16  0 16 16 16 16  0 0 None
0x06c 24 tc  0  32  0 r  y .   8  8  8  8 .  s  0 24  8 16 16 16 16  0 0 None
0x06d 24 tc  0  32  0 r  . .   8  8  8  8 .  .  0  0  0  0  0  0  0  4 1 None
0x06e 24 tc  0  32  0 r  y .   8  8  8  8 .  .  0  0  0 16 16 16 16  4 1 None
0x06f 24 tc  0  32  0 r  . .   8  8  8  8 .  .  0 16  0  0  0  0  0  4 1 None
0x070 24 tc  0  32  0 r  y .   8  8  8  8 .  .  0 16  0 16 16 16 16  4 1 None
0x071 24 tc  0  32  0 r  . .   8  8  8  8 .  .  0 24  8  0  0  0  0  4 1 None
0x072 24 tc  0  32  0 r  y .   8  8  8  8 .  .  0 24  8 16 16 16 16  4 1 None
0x073 24 tc  0  32  0 r  y .   8  8  8  8 .  .  0 24  8 16 16 16 16  4 1 None
0x074 24 tc  0  32  0 r  . .   8  8  8  8 .  .  0  0  0  0  0  0  0  8 1 None
0x075 24 tc  0  32  0 r  y .   8  8  8  8 .  .  0  0  0 16 16 16 16  8 1 None
0x076 24 tc  0  32  0 r  . .   8  8  8  8 .  .  0 16  0  0  0  0  0  8 1 None
0x077 24 tc  0  32  0 r  y .   8  8  8  8 .  .  0 16  0 16 16 16 16  8 1 None
0x078 24 tc  0  32  0 r  . .   8  8  8  8 .  .  0 24  8  0  0  0  0  8 1 None
0x079 24 tc  0  32  0 r  y .   8  8  8  8 .  .  0 24  8 16 16 16 16  8 1 None

32 GLXFBConfigs:
    visual  x   bf lv rg d st  colorbuffer  sr ax dp st accumbuffer  ms  cav
  id dep cl sp  sz l  ci b ro  r  g  b  a F gb bf th cl  r  g  b  a ns b eat
----------------------------------------------------------------------------
0x044 24 tc  0  32  0 r  . .   8  8  8  8 .  s  0  0  0  0  0  0  0  0 0 None
0x045 24 tc  0  32  0 r  y .   8  8  8  8 .  s  0  0  0 16 16 16 16  0 0 None
0x046 24 tc  0  32  0 r  . .   8  8  8  8 .  s  0 24  8 16 16 16 16  0 0 None
0x047 24 tc  0  32  0 r  . .   8  8  8  8 .  s  0 24  8  0  0  0  0  0 0 None
0x048 24 tc  0  32  0 r  y .   8  8  8  8 .  s  0 24  8 16 16 16 16  0 0 None
0x049 24 tc  0  32  0 r  . .   8  8  8  8 .  s  0 16  0  0  0  0  0  0 0 None
0x04a 24 tc  0  32  0 r  y .   8  8  8  8 .  s  0 16  0 16 16 16 16  0 0 None
0x04b 24 tc  0  32  0 r  y .   8  8  8  8 .  s  0  0  0 16 16 16 16  0 0 None
0x04c 24 tc  0  32  0 r  y .   8  8  8  8 .  s  0 16  0 16 16 16 16  0 0 None
0x04d 24 tc  0  32  0 r  y .   8  8  8  8 .  s  0 24  8 16 16 16 16  0 0 None
0x04e 24 tc  0  32  0 r  . .   8  8  8  8 .  .  0  0  0  0  0  0  0  4 1 None
0x04f 24 tc  0  32  0 r  y .   8  8  8  8 .  .  0  0  0 16 16 16 16  4 1 None
0x050 24 tc  0  32  0 r  . .   8  8  8  8 .  .  0 16  0  0  0  0  0  4 1 None
0x051 24 tc  0  32  0 r  y .   8  8  8  8 .  .  0 16  0 16 16 16 16  4 1 None
0x052 24 tc  0  32  0 r  . .   8  8  8  8 .  .  0 24  8  0  0  0  0  4 1 None
0x053 24 tc  0  32  0 r  y .   8  8  8  8 .  .  0 24  8 16 16 16 16  4 1 None
0x054 24 tc  0  32  0 r  y .   8  8  8  8 .  .  0 24  8 16 16 16 16  4 1 None
0x055 24 tc  0  32  0 r  . .   8  8  8  8 .  .  0  0  0  0  0  0  0  8 1 None
0x056 24 tc  0  32  0 r  y .   8  8  8  8 .  .  0  0  0 16 16 16 16  8 1 None
0x057 24 tc  0  32  0 r  . .   8  8  8  8 .  .  0 16  0  0  0  0  0  8 1 None
0x058 24 tc  0  32  0 r  y .   8  8  8  8 .  .  0 16  0 16 16 16 16  8 1 None
0x059 24 tc  0  32  0 r  . .   8  8  8  8 .  .  0 24  8  0  0  0  0  8 1 None
0x05a 24 tc  0  32  0 r  y .   8  8  8  8 .  .  0 24  8 16 16 16 16  8 1 None
0x05b  0 tc  0 128  0    . .  32 32 32 32 f  .  0  0  0  0  0  0  0  0 0 None
0x05c  0 tc  0 128  0    . .  32 32 32 32 f  .  0 16  0  0  0  0  0  0 0 None
0x05d  0 tc  0 128  0    . .  32 32 32 32 f  .  0 24  8  0  0  0  0  0 0 None
0x05e  0 tc  0  64  0    . .  16 16 16 16 f  .  0  0  0  0  0  0  0  0 0 None
0x05f  0 tc  0  64  0    . .  16 16 16 16 f  .  0 16  0  0  0  0  0  0 0 None
0x060  0 tc  0  64  0    . .  16 16 16 16 f  .  0 24  8  0  0  0  0  0 0 None
0x061  0 tc  0  32  0    . .  11 11 10  0 u  .  0  0  0  0  0  0  0  0 0 None
0x062  0 tc  0  32  0    . .  11 11 10  0 u  .  0 16  0  0  0  0  0  0 0 None
0x063  0 tc  0  32  0    . .  11 11 10  0 u  .  0 24  8  0  0  0  0  0 0 None


Then did the following and ran glxgears:
Code: Select all
pb321@Lenovo:~$ sudo apt install mesa-utils
[sudo] password for pb321:
Reading package lists... Done
Building dependency tree
Reading state information... Done
mesa-utils is already the newest version (8.4.0-1+b1).
The following packages were automatically installed and are no longer required:
  libxaw7 libxkbfile1 libxpm4 xbitmaps
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
pb321@Lenovo:~$ export DISPLAY=localhost:0
pb321@Lenovo:~$ glxgears
libGL error: No matching fbConfigs or visuals found
libGL error: failed to load driver: swrast
Running synchronized to the vertical refresh.  The framerate should be
approximately the same as the monitor refresh rate.
21992 frames in 7.0 seconds = 3131.333 FPS
10396 frames in 6.2 seconds = 1666.972 FPS
10396 frames in 6.2 seconds = 1671.837 FPS
10396 frames in 6.2 seconds = 1682.241 FPS


The gears turn but jerk or seem to reverse whenever the FPS line is computed/displayed. As you can see, the libGL errors still appear.
pb321
 
Posts: 424
Joined: Sun Nov 27, 2016 5:08 pm
Version: 2020.4.0
OS: Windows 10 Pro

Re: download_and_compile.sh on Debian on WSL  

Postby pb321 » Wed Jun 17, 2020 2:37 pm

I'm marking this topic as "complete" since it is getting off-topic. Terragear and TerragearGUI are working well under the Windows Subsystem for Linux and I will be using them to create custom scenery. Simgear, data and FlightGear were also successfully compiled.

Now it's a question of whether WSL will support the graphics needed for FlightGear, but that is a different issue. Microsoft does not support graphical applications running under WSL (yet), despite many claims on the Internet that such apps have been made to run successfully. There are two versions of WSL. I'm using WSL 1. The other (WSL 2) uses Hyper-V which my computer does not have. Perhaps that would make a difference.

I have Ubuntu in VirtualBox installed on two computers, so I will eventually take what I've learned in this process to those environments. I'll try a few more things with the graphics side of WSL to see if I can get FG running, but will mark this topic "Complete". Many thanks to those who helped, especially Rominet!
pb321
 
Posts: 424
Joined: Sun Nov 27, 2016 5:08 pm
Version: 2020.4.0
OS: Windows 10 Pro

PreviousNext

Return to Compiling

Who is online

Users browsing this forum: No registered users and 1 guest