Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fatal Error When Building with Termux #65

Open
MajoraMan opened this issue Mar 19, 2022 · 2 comments
Open

Fatal Error When Building with Termux #65

MajoraMan opened this issue Mar 19, 2022 · 2 comments

Comments

@MajoraMan
Copy link

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.c

This 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.

@dkgameplayer
Copy link

Exact same issue. Android 11 Oneplus 7 Pro

@Deltara3
Copy link

Deltara3 commented May 7, 2022

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants