Coder Social home page Coder Social logo

Comments (4)

eam avatar eam commented on August 24, 2024 1

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!

from sokol.

floooh avatar floooh commented on August 24, 2024

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:

https://github.com/floooh/fips/blob/55f8f170f569aa7ed4cb517288672c21d290567f/configs/android-make-release.yml#L7-L9

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?):

sokol/sokol_gfx.h

Lines 4351 to 4355 in 7f7cd64

#elif defined(__EMSCRIPTEN__) || defined(__ANDROID__)
#if defined(SOKOL_GLES3)
#include <GLES3/gl3.h>
#endif
#elif defined(__linux__) || defined(__unix__)

from sokol.

floooh avatar floooh commented on August 24, 2024

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.

https://github.com/floooh/sokol-samples/blob/2a74ef5905fe7841eaae6a70248d45ebed275fcc/fips-files/configs/sapp-android-make-debug.yml#L9

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

from sokol.

floooh avatar floooh commented on August 24, 2024

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.

from sokol.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.