how to build orx1.4 android non-n/native demo ?

edited January 2013 in Help request
hi,everyone
I had read wiki about orx setup android.
Library had build successd,but build the demo had faild.

This is caputre:
Android NDK: jni/Android.mk: Cannot find module with tag 'orx/code/lib/static/an
droid' in import path
Android NDK: Are you sure your NDK_MODULE_PATH variable is properly defined ?
Android NDK: The following directories were searched:

I use cygwin/msys build demo.I'm a newer for ndk.Should I set env varlues or edit jni/Android.mk?

Comments

  • edited January 2013
    Hi jack and welcome here!

    Well, given that you've already read the wiki, I'm not sure if I can be of any help as I haven't compiled the android demo myself.

    Are you using the binary packages or did you directly clone the mercurial repository? I'm asking as I know lydesik is currently refactoring the Android code base in order to support only one version.

    In any case I'm sure either faistoiplaisir or lydesik will have an answer for you in a few hours. :)

    Cheers!
  • edited January 2013
    Thank you for your reply.I download orx1.4 from sourceforge.
  • edited January 2013
    Hi jack,

    well it looks like you forgot to export the NDK_MODULE_PATH environment variable.

    I've no experience with cygwin, but it should be the same.

    before calling ndk-build in the demo/android directory, you need to export this variable

    export NDK_MODULE_PATH=<MY_LIBS>

    where <MY_LIBS> is the parent directory of orx.

    alos if you are using the prebuilt packages from sourcforge, there is two additional steps

    1) rename the folder 'orx-1.4rc0' to 'orx'
    2) in demo/android/jni/Android.mk

    change the last line from
    $(call import-module,orx/code/lib/static/android)
    to
    $(call import-module,orx/dev-android/lib/static/android)

    and you should be good
  • edited January 2013
    Hi,lydesik:
    Oh,Thank you,lydesik &iarwain!
    I was used to use command "NDK_MODULE_PATH=`pwd`",not have "export".
    It build successd!
    Cheers!
Sign In or Register to comment.