Contacts List demo failing to run on emulator on 14.02
ID
Created
Type
mocl Version
Dev OS
Target
Status
#37
by linbsd on 2014-03-03 (2597 days ago)
question
n/a
Mac OS X
Android
closed
Comments
Hi,
I assume you ran ndk-build after running mocl?
Wes
- Wukix, 2597 days ago
Yes, the steps I ran were
export NDK_PROJECT_PATH=~/mocl-example-lisp-contacts-android/LispContacts
mocl --android LispContacts app.lisp
~/android-ndk-r9c/ndk-build
#The output is
Android NDK: WARNING:/Users/jaimef/mocl-example-lisp-contacts-android/LispContacts/jni/Android.mk:program-jni: non-system libraries in linker flags: -l/Users/jaimef/mocl-example-lisp-contacts-android/LispContacts/jni/mocl/libmocl.a
Android NDK: This is likely to result in incorrect builds. Try using LOCAL_STATIC_LIBRARIES
Android NDK: or LOCAL_SHARED_LIBRARIES instead to list the library dependencies of the
Android NDK: current module
[armeabi] Compile arm : program-jni <= program.c
[armeabi] Compile arm : program-jni <= program-jni.c
[armeabi] SharedLibrary : libprogram-jni.so
[armeabi] Install : libprogram-jni.so => libs/armeabi/libprogram-jni.so
- linbsd, 2596 days ago
Normally there should not be any NDK warnings.
Instead of exporting NDK_PROJECT_PATH, please try going to the jni subdirectory (e.g. ~/mocl-example-lisp-contacts-android/LispContacts/jni) and running ndk-build from there.
By the way, there is a "build the example" walk-through at http://markwatson.com/blog/2013-06/interesting-product-mocl.html if you run into any other issues.
Wes