Code: Select all
cmake .. -DUSE_GLES2=1 -DEGL_INCLUDE_DIR=/opt/vc/include -DEGL_LIBRARY=/usr/lib/arm-linux-gnueabihf/libEGL.so.1
Code: Select all
In file included from /home/pi/supertuxkart/stk-code/src/graphics/abstract_renderer.hpp:21:0, from /home/pi/supertuxkart/stk-code/src/graphics/irr_driver.hpp:36, from /home/pi/supertuxkart/stk-code/src/addons/zip.cpp:22: /home/pi/supertuxkart/stk-code/src/graphics/gl_headers.hpp:47:27: fatal error: GLES3/gl3.h: No such file or directory # include <GLES3/gl3.h> ^ compilation terminated. make: *** [CMakeFiles/supertuxkart.dir/src/addons/zip.cpp.o] Error 1 make: *** Waiting for unfinished jobs.... In file included from /home/pi/supertuxkart/stk-code/src/graphics/abstract_renderer.hpp:21:0, from /home/pi/supertuxkart/stk-code/src/graphics/irr_driver.hpp:36, from /home/pi/supertuxkart/stk-code/src/guiengine/widgets/model_view_widget.hpp:25, from /home/pi/supertuxkart/stk-code/src/guiengine/widgets.hpp:29, from /home/pi/supertuxkart/stk-code/src/states_screens/dialogs/addons_loading.hpp:24, from /home/pi/supertuxkart/stk-code/src/states_screens/addons_screen.hpp:24, from /home/pi/supertuxkart/stk-code/src/addons/news_manager.cpp:24: /home/pi/supertuxkart/stk-code/src/graphics/gl_headers.hpp:47:27: fatal error: GLES3/gl3.h: No such file or directory # include <GLES3/gl3.h> ^ compilation terminated. make: *** [CMakeFiles/supertuxkart.dir/src/addons/news_manager.cpp.o] Error 1 make: *** [CMakeFiles/supertuxkart.dir/all] Error 2 make: *** [all] Error 2
Code: Select all
$ apt-file search gl3.h khronos-api: /usr/include/khronos-api/GLES3/gl3.h libgles2-mesa-dev: /usr/include/GLES3/gl3.h
As far as I am aware Supertuxkart needs to be run within the Desktop. So you should be using Raspbian Stretch with Desktop.ianosburn wrote: ↑Fri Dec 29, 2017 10:35 pmI should add this is on a Pi3 using a new install of Raspbian Lite Stretch.
I’ve also asked this question on the stk freegamedev forum.
Be great if this can be made to work. I’ll then offer to update the README.md on github with Pi specific compilation instructions.
Any idea what’s going wrong?
Have you enabled the OpenGL driver in raspi-config ?brownpaperandstring wrote: ↑Sat Dec 30, 2017 11:55 amI tried remaking with the gles2 flag, but whilst I can just about get to the start of a race now, I am getting less than 1fps. I tried turning the graphics right down to 128 and putting the os flag in graphical restrictions (although I also did an apt-get of what seems to be 0.9.2 so I have two versions)
I am really out of practice with Linux desktop stuff so it’s a bit of an uphill struggle atm, I am not even sure how to check which of my builds is the one that’s running.. I’m using a rasbpi3b with a standard raspbian install, updated.
I guess I need to work out how to remove properly the version(s) I built and rebuild to be sure.
I know you said you tried OpenGL with full KMS but this really sounds like the typical symptoms of when it's disabled. What framerate does glxgears report? (sudo apt install mesa-utils). If anything less than 60, I would double-check that you rebooted after running sudo raspi-config to select the driver, and that dtoverlay=vc4-kms-v3d is present in /boot/config.txt
deveee's commit 1a9cf6a already takes care of this so it isn't necessary to configure texture sizes via config.xml. I also didn't make any edits to graphical_restrictions.xml, so could that be causing the problem?
I recall the Raspbian Apt repository has 0.8.2 nowadays (and it's unusable), so remove this complication by running sudo apt remove supertuxkart
Are you using BerryBoot for your dual booting - I don't believe OpenGL will work with this.ianosburn wrote: ↑Sat Dec 30, 2017 10:13 pmWell it compiled but runs at less than 1FPS.
Some things to note:
This is on a dual boot Raspbian Stretch Full on a Pi3b. The dual boot means it cannot be overclocked by raspi-config.
I used -DUSE_GLES2=1 and put<card os="linux" disable="ForceLegacyDevice"/> in graphical_restrictions.xml
Edited config.xml with enable_high_definition_textures="0" and max_texture_size="128".
GPU memory set to 256MB.
In game options graphics level set to 1 and music off.
I turned on OpenGL and tried it with both full KMS and fake KMS.
Despite all that, its unusable and less than 1FPS.
I've no idea how the YouTube video got to 30FPS without smoke coming out of it!
Any ideas how to get it to usable performance?
Net boot from a x86 Pi-Server?If you know a good multiboot solution please let me know.
Users browsing this forum: No registered users and 3 guests