mikegriffin wrote:Looking at the /hosts/ant/run-host.sh you may have to copy the libmoai.so library from /bin/android/armeabi to /hosts/ant/host-source/libs
- ~/moai-sdk/hosts/ant$ ./run-host.sh
- cp: host-source/project/libs/*: No such file or directory
- ~/moai-sdk/hosts/ant$ mkdir host-source/project/libs
- ~/moai-sdk/hosts/ant$ cp ../../bin/android/armeabi/libmoai.so host-source/project/libs/
- ~/moai-sdk/hosts/ant$ ./run-host.sh
- Buildfile: ~/moai-sdk/hosts/ant/build/project/build.xml
-
- BUILD FAILED
- ~/moai-sdk/hosts/ant/build/project/build.xml:83: Cannot find ~/moai-sdk/hosts/android-sdks/tools/ant/build.xml imported from ~/moai-sdk/hosts/ant/build/project/build.xml
-
- Total time: 1 second
- ~/moai-sdk/hosts/ant$
ibisum wrote:You're supposed to generate an Android project folder for your app by using the make-host.sh[.bat] script. ... If you're not using make-host.sh[.bat] to generate your Android project, then you're going to run into problems
- # (install Android SDK and NDK)
- # (add SDK and NDK to path; export PATH=$PATH:/(SDK_PATH)/tools:/(SDK_PATH)/platform-tools/:/(NDK_PATH)/)
- mkdir ~/moai-source
- cd ~/moai-source
- git clone https:/ /github.com/moai/moai-dev
- git checkout 760b5a8b077e3eb6f2473f1deede317d0725bc3c
- cd moai-dev/ant/
- ./make-host.sh -p com.mycompany.app.appname
- cd untitled-host
- vi settings-local.sh
- # (configure android_sdk_root and src_dirs)
- ./run-host.sh
- android avd
- emulator -gpu on -avd MyTestDevice
- $ emulator -avd <avd_name> -gpu on
tenth wrote:Thank you, the emulator also works now. This despite the fact that one of the MOAI docs that read at some point said that it wouldn't... ::sigh::
-
- 07-21 12:51:44.734: E/EGL_emulation(213): rcMakeCurrent returned EGL_FALSE
- 07-21 12:51:44.734: E/EGL_emulation(213): tid 214: eglMakeCurrent(976): error 0x3006 (EGL_BAD_CONTEXT)
- 07-21 12:51:44.734: E/libEGL(213): eglMakeCurrent:674 error 3006 (EGL_BAD_CONTEXT)
- 07-21 12:51:44.734: E/SurfaceFlinger(213): Couldn't create a working GLES context. check logs. exiting...
-
run-host.sh: line 40: [: too many arguments
cp: target `ant/build/project/res/drawable-ldpi/icon.png' is not a directory
run-host.sh: line 40: [: too many arguments
cp: target `ant/build/project/.classpath' is not a directory
I:\Moai\moai-moai-beta-Version-1.1-Revision-2-8-g565c1f3\moai-moai-beta-565c1f3\
ant-Copy\libmoai/jni/Application.mk:7: ArmModeDefined.mk: No such file or direct
ory
I:\Moai\moai-moai-beta-Version-1.1-Revision-2-8-g565c1f3\moai-moai-beta-565c1f3\
ant-Copy\libmoai/jni/Application.mk:8: AppPlatformDefined.mk: No such file or di
rectory
/cygdrive/c/ProgrammingTools/Android/android-ndk-r8b/build/core/prebuilt-library
.mk:64: *** target pattern contains no `%'. Stop.
Users browsing this forum: No registered users and 0 guests