Open MajoraMan opened 2 years ago
Exact same issue. Android 11 Oneplus 7 Pro
I found the solution (at least for compiling, game doesn't seem to run on my device.)
If you haven't already, add the x11 repo with pkg install x11-repo
. Then install the mesa
package.
In file included from src/pc/gfx/gfx_opengl.c:25: In file included from SDL/include/SDL2/SDL_opengles2.h:35: /data/data/com.termux/files/usr/include/GLES2/gl2platform.h:28:10: fatal error: 'KHR/khrplatform.h' file not found #include <KHR/khrplatform.h> ^
~~~~~~ In file included from src/pc/gfx/gfx_sdl2.c:19: In file included from SDL/include/SDL2/SDL_opengles2.h:35: /data/data/com.termux/files/usr/include/GLES2/gl2platform.h:28:10: fatal error: 'KHR/khrplatform.h' file not found #include <KHR/khrplatform.h> ^~~~~~~ 1 error generated. make: [Makefile:887: build/us_pc/src/pc/gfx/gfx_opengl.o] Error 1 make: Waiting for unfinished jobs.... 1 error generated. make: *** [Makefile:887: build/us_pc/src/pc/gfx/gfx_sdl2.o] Error 1 gcc -c -O2 -I include -I build/us_pc -I build/us_pc/include -I src -I . -I SDL/include -D_LANGUAGE_C -DVERSION_US -DNON_MATCHING -DAVOID_UB -fPIC -DNO_SEGMENTED_MEMORY -DUSE_SYSTEM_MALLOC -DENABLE_OPENGL -DUSE_GLES -DTOUCH_CONTROLS -DWIDESCREEN -DTOUCH_CONTROLS -DF3DEX_GBI_2E -fno-strict-aliasing -fwrapv -o build/us_pc/src/pc/audio/audio_null.o src/pc/audio/audio_null.cThis is what I get when following the Android build instructions. No APK is made. I have tried updating all the required dependencies in Termux but nothing changes. I have also tried using the builder app but that ends with the same error. Any idea what's going on here? I have built this port on Android in the past, but have since got a new device and am trying to build it again.