Android: build system changes

edited July 2012 in General discussions
Due to a bug with some devices, I changed the way Orx applications are build for android (non-native).

Check the demo sample in orx/code/demo/android.

if you are migrating from an existing project, here is a summary of the changes required.
don't forget to clean all compiled object files in /obj and /libs folder of your project

1)In the Activity, there is no need to load Box2D and SOIL libraries.
static
    {
        System.loadLibrary("orxTest");
    }

2)In Android.mk
remove the line
LOCAL_SHARED_LIBRARIES := Box2D SOIL

at the end of the file remove all import-modules directives and add
$(call import-module,orx/code/build/android)
$(call import-module,orx/extern/NvEvent/build)

If you have a question or a problem, don't hesitate to ask here.

Comments

  • edited August 2012
    Hey!

    Ok, it works for me, one more information can be :

    => Update your ndk to the last version.

    It doesn't work properly for me without doing that (thanks to Lydesik that suggest me this solution)
Sign In or Register to comment.