Willy-JL / F95Checker

GNU General Public License v3.0
101 stars 16 forks source link

Does not work in crostini/chromebook #132

Closed lavilao closed 4 months ago

lavilao commented 4 months ago

Hi, everytime I try to run f95checker on crostini it throws errors about the opengl context:

./F95Checker-Debug 
qt.qpa.wayland: No shell integration named "xdg-shell" found
qt.qpa.wayland: No shell integration named "wl-shell" found
qt.qpa.wayland: No shell integration named "ivi-shell" found
qt.qpa.wayland: No shell integration named "qt-shell" found
qt.qpa.wayland: Loading shell integration failed.
qt.qpa.wayland: Attempted to load the following shells QList("xdg-shell", "wl-shell", "ivi-shell", "qt-shell")
qt.qpa.plugin: Could not load the Qt platform plugin "wayland" in "" even though it was found.
Traceback (most recent call last):
  File "/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/cx_Freeze/initscripts/__startup__.py", line 124, in run
  File "/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/cx_Freeze/initscripts/console.py", line 16, in run
  File "/home/runner/work/F95Checker/F95Checker/main-debug.py", line 89, in <module>
  File "/home/runner/work/F95Checker/F95Checker/main-debug.py", line 39, in main
  File "/home/runner/work/F95Checker/F95Checker/modules/gui.py", line 379, in __init__
  File "/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/imgui/integrations/glfw.py", line 12, in __init__
  File "/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/imgui/integrations/opengl.py", line 60, in __init__
  File "/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/imgui/integrations/base.py", line 17, in __init__
  File "/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/imgui/integrations/opengl.py", line 125, in _create_device_objects
  File "src/latebind.pyx", line 51, in OpenGL_accelerate.latebind.Curry.__call__
  File "/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/OpenGL/GL/VERSION/GL_2_0.py", line 469, in glVertexAttribPointer
  File "/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/OpenGL/contextdata.py", line 58, in setValue
  File "/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/OpenGL/contextdata.py", line 40, in getContext
OpenGL.error.Error: Attempt to retrieve context when no valid context

if I try the wayland backend:

QT_QPA_PLATFORM=wayland ./F95Checker-Debug 
qt.qpa.wayland: No shell integration named "xdg-shell" found
qt.qpa.wayland: No shell integration named "wl-shell" found
qt.qpa.wayland: No shell integration named "ivi-shell" found
qt.qpa.wayland: No shell integration named "qt-shell" found
qt.qpa.wayland: Loading shell integration failed.
qt.qpa.wayland: Attempted to load the following shells QList("xdg-shell", "wl-shell", "ivi-shell", "qt-shell")
qt.qpa.plugin: Could not load the Qt platform plugin "wayland" in "" even though it was found.
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

Available platform plugins are: eglfs, linuxfb, minimal, minimalegl, offscreen, vkkhrdisplay, vnc, wayland-egl, wayland, xcb.

Do you know what can be done? Thanks in advice!

lavilao commented 4 months ago

fixed by adding XDG_SESSION_TYPE=x11 and QT_QPA_PLATFORM=xcb