target platform is not selected (?)

1,265 views
Skip to first unread message

NoAngel

unread,
Jan 26, 2012, 10:33:34 PM1/26/12
to android-ndk
I tried to compile some sources with android-sdk-r7, and probably
found an issue.
I have following line in Android.mk to select target platform.
TARGET_PLATFORM := android-14
...

so I guess I wrote that, and NDK compiler must use platform headers
from $(NDK_ROOT)\platforms\android-14, but here I got another WTF:

looking to <blablabla>.o.d file:
<...>
obj/local/armeabi/objs/testgzip/main.o: jni/main.cpp \
jni/../../gzip/jni/zlibFormat.h jni/../../gzip/jni/zlib.h \
jni/../../gzip/jni/zconf.h \
/cygdrive/c/android-ndk-r7-crystax-4/platforms/android-3/arch-arm/usr/
include/sys/types.h \
/cygdrive/c/android-ndk-r7-crystax-4/platforms/android-3/arch-arm/usr/
include/stdint.h \
/cygdrive/c/android-ndk-r7-crystax-4/platforms/android-3/arch-arm/usr/
include/sys/_types.h \
/cygdrive/c/android-ndk-r7-crystax-4/platforms/android-3/arch-arm/usr/
include/machine/_types.h \
/cygdrive/c/android-ndk-r7-crystax-4/platforms/android-3/arch-arm/usr/
include/sys/cdefs.h \
/cygdrive/c/android-ndk-r7-crystax-4/platforms/android-3/arch-arm/usr/
include/sys/cdefs_elf.h \
/cygdrive/c/android-ndk-r7-crystax-4/platforms/android-3/arch-arm/usr/
include/linux/posix_types.h \
<...>

hmm it using android-3? so strange... or not?
same behavior with original ndk-r7, just using crystax mod to fix many
many other bugs.

geeta patwa

unread,
Jan 27, 2012, 12:07:23 AM1/27/12
to andro...@googlegroups.com
You should tell target plateform in Application.mk file just Add

APP_ABI := armeabi
APP_PLATFORM := android-14

into Application.mk file. This should work..


--
You received this message because you are subscribed to the Google Groups "android-ndk" group.
To post to this group, send email to andro...@googlegroups.com.
To unsubscribe from this group, send email to android-ndk...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/android-ndk?hl=en.




--
With Best Regards
Geeta Patwa

Acme Emsys PVT. LTD.
B 103 Sec 51, Noida- 201307
Contact No.: 09540432530



NoAngel

unread,
Jan 27, 2012, 3:42:39 AM1/27/12
to android-ndk
Thank you, it worked!
> *With Best Regards*
> *Geeta Patwa*
> *
> *
> Acme Emsys PVT. LTD.
> B 103 Sec 51, Noida- 201307
> Contact No.: 09540432530
>
> *www.acmemsys.com*<http://www.acmemsys.com/>
> Email : *gee...@acmemsys.com*
Reply all
Reply to author
Forward
0 new messages