Closed eam closed 3 months ago
Hmm, I haven't run into this issue yet (I have a Google Pixel 4a with a somewhat recent Android).
One thing you could try is also changing to a more recent platform than android-28 (e.g. the default config looks like this currently:
If sokol_gfx.h fails with an undefined GL type, it looks like it's skipping the include here (maybe SOKOL_GLES3 is not defined?):
PS: I actually tried the following which worked on my phone:
In the sokol-samples repository, change this line to ANDROID_ABI: arm64-v8a
(alternatively in all other sapp-android-*
configs.
...then in the sokol-samples root directory (with your Android phone connected):
./fips clean all
./fips set config sapp-android-make-debug
./fips gen
./fips make clear-sapp
./fips run clear-sapp
I think compilation failed because you changed the 'raw' config file in the fips directory, not the project-specific build configs files in the sokol-samples project.
I was able to try those steps today and it worked - thank you for all the pointers! My fault for not reading far enough into how fips works. I have enough to iterate on now. Thanks again!
Good to know, I wonder if it's time to generally switch to 64-bit ARM in the default fips build configs and fade out 32-bit support.
Hi, relative newbie WRT android development so apologies in advance if I'm missing something obvious.
I've successfully built and run sokol-samples/triangle-glfw for linux-make-debug I can also build sokol-samples/triangle-sapp for sapp-android-make-debug, but adb install fails:
adb: failed to install ./sapp-android-make-debug/sapp/triangle-sapp.apk: Failure [INSTALL_FAILED_NO_MATCHING_ABIS: INSTALL_FAILED_NO_MATCHING_ABIS: Failed to extract native libraries, res=-113]
I believe this is because only 32bit armeabi-v7a objects are generated, and my phone (pixel8) is arm64-v8a:
I did try setting
ANDROID_ABI: arm64-v8a
inconfigs/android-make-debug.yml
and this did not work -GLuint
was undefined insokol_gfx.h
and I haven't yet looked further into why.