-
Notifications
You must be signed in to change notification settings - Fork 424
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
Building for android #127
Comments
It seems that the std library in the ndk doesn't include some key functions like rand that the library uses. Has anyone managed to get this running on Android? I might end up having to use the emscriptened js version soon... |
Here's the config I used (with NDK 10e). It's been a while but I vaguely recall modifying/deleting some of the source files as well. In the end, it did run on Android, yes. |
Thanks a billion, you're a life saver. On Tue, May 24, 2016 at 4:47 PM, aliasaila notifications@github.com wrote:
|
Ah ok, so you're actually building it in the Android.mk. I've been building it as a static lib with cmake then just wrapping it in the Android.mk. |
Ok got it! I wasted all that time trying to build it as a library first then wrap it, when I could have just built it directly with the Android.mk. Thanks! |
One thing for future android builders: this version of glsl-optimizer crashes when using the release build. You have to use this fork, which has some bug fixes that aren't in this repo. |
I think cmake was updated to work directly with the android NDK. So now you just do:
Also, I had a similar issue with |
Hello,
I've struggled for 2 days now trying to build this for Android. I've managed to build the static libs, but linking them to the project is a bloody nightmare. Undefined variables all over the place. Does anyone have any source code I can browse to find the solution?
Thanks
The text was updated successfully, but these errors were encountered: