I based my approach off of exsiting examples like this:
https://raw.githubusercontent.com/freem ... n_ogles.sh
So first, I cloned and built the ogl-es branch of Irrlicth:
Code: Select all
git clone --recursive --depth 1 -b ogl-es https://github.com/zaki/irrlicht.git irrlicht
make -j $(nproc || sysctl -n hw.ncpu || echo 2) -C irrlicht/source/Irrlicht
Code: Select all
git clone --depth 1 https://github.com/minetest/minetest.git
cd minetest
cmake . -DRUN_IN_PLACE=TRUE -DENABLE_GLES=1 -DEGL_INCLUDE_DIR=/usr/include/GLES/egl.h -DEGL_LIBRARY=/usr/lib/arm-linux-gnueabihf/libEGL.so -DOPENGLES2_INCLUDE_DIR=/usr/include/GLES2/gl2.h -DOPENGLES2_LIBRARY=/usr/lib/arm-linux-gnueabihf/libGLESv2.so -DBUILD_SERVER=NO -DIRRLICHT_SOURCE_DIR=/myFolder/irrlicht/source/Irrlicht/ -DIRRLICHT_LIBRARY=/myFolder/irrlicht/lib/Linux/libIrrlicht.a -DIRRLICHT_INCLUDE_DIR=/myFolder/irrlicht/include/
make -j $(nproc || sysctl -n hw.ncpu || echo 2)
Code: Select all
enable_shaders = false
video_driver = ogles1
Then I try running the game. If I have the glshim installed, it basically ignores the request to use OpenGL ES and falls back to OpenGL 1.5, which uses the shim and runs the game without too many issues (some UI textures are screwed up, but otherwise it seems okay)
If the shim is not installed, I get this error when running Minetest:
Any help would be appreciated. Thanks in advance!WARNING[Main]: Irrlicth: OpenGL ES driver version is 1.0.
AL lib: (WW) alc_initconfig: Failed to initialize backend "pulse"
Loaded texture: /myFolder/minetest/games/minimal/menu/background.png
Loaded texture: /myFolder/minetest/games/minimal/menu/icon.png
*** Error in './minetest': free(): invalid next size (normal): 0x017d2788 ***