Almamu / linux-wallpaperengine

Wallpaper Engine backgrounds for Linux!
GNU General Public License v3.0
1.64k stars 61 forks source link

[Feature Request] Run on a raspberry pi? #207

Closed bsvdoom closed 5 months ago

bsvdoom commented 6 months ago

Is it possible? What versions?

I have a 3b, kms enabled, glxgears ok

OpenGL vendor string: Broadcom
OpenGL renderer string: VC4 V3D 2.1
OpenGL version string: 2.1 Mesa 23.2.1-1~bpo12+rpt3
OpenGL shading language version string: 1.20
$ uname -a
Linux  6.6.20+rpt-rpi-v8 #1 SMP PREEMPT Debian 1:6.6.20-1+rpt1 (2024-03-07) aarch64 GNU/Linux

But cannot start it from desktop lxterminal:

$ ./linux-wallpaperengine --assets-dir assets wallpapers/2275426628/
Using wallpaper engine's assets at "assets" based on --assets-dir parameter
Detected "scene.pkg" file at "wallpapers/2275426628/scene.pkg". Adding to list of searchable paths
No "gifscene.pkg" file found at "wallpapers/2275426628/gifscene.pkg". Defaulting to normal folder storage
TurbulentVelocityRandom initializer must have a phasemax value
GLFW error 65543: GLX: Failed to create context: GLXBadFBConfig
Cannot create window
terminate called after throwing an instance of 'std::runtime_error'
  what():  Cannot create window
Aborted

$ MESA_GL_VERSION_OVERRIDE=3.3 ./linux-wallpaperengine --assets-dir assets wallpapers/2275426628/
Using wallpaper engine's assets at "assets" based on --assets-dir parameter
Detected "scene.pkg" file at "wallpapers/2275426628/scene.pkg". Adding to list of searchable paths
No "gifscene.pkg" file found at "wallpapers/2275426628/gifscene.pkg". Defaulting to normal folder storage
TurbulentVelocityRandom initializer must have a phasemax value
0:1(10): error: GLSL 3.30 is not supported. Supported versions are: 1.10, 1.20, and 1.00 ES

terminate called after throwing an instance of 'std::runtime_error'
  what():  0:1(10): error: GLSL 3.30 is not supported. Supported versions are: 1.10, 1.20, and 1.00 ES

Aborted
kylepaulsen commented 5 months ago

I tried MESA_GL_VERSION_OVERRIDE=4.5 and that worked for me on a pi 5. $ MESA_GL_VERSION_OVERRIDE=4.5 ./linux-wallpaperengine --assets-dir assets wallpapers/2275426628/

Almamu commented 5 months ago

Support for at least OpenGL 3.30 is needed as some shaders won't work otherwise. Based on the error message either Raspberry Pi, It's GPU or the libs installed do not support that version of OpenGL, which is required as of now. I don't have a Raspberry Pi myself either so supporting it kind of falls out of the scope for now.