-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Android compilation issues #782
Comments
Thanks for the write up. Shouldn't the application exit if it is out of memory? Isn't the break point a property of the compiler? |
These modifications I did is working. I've got many errors before:
After that I got "Unsupported CPU" error. And after that, I have not tested the possible implications that these changes may cause. But in my engine I updated to the Box2D "main" version (I also had more errors with 3.0.0 ) and needed to make these changes quickly. You can look my workflow from Android: |
Fixed in #783 |
I had to modify some parts to build for Android.
In file
allocate.c
the functionaligned_alloc
is only supported starting from Android API level 28, so I'm usingposix_memalign
instead:In file
core.h
I modified this part to compile for x86 and arm (maybe need to renameB2_CPU_X64
macro):At same
core.h
file I needed to addB2_BREAKPOINT
macro to Android:The text was updated successfully, but these errors were encountered: