简体   繁体   中英

Android.mk not linking system library libandroid.so

In my android 2.3 project , i am using the native asset manager. In the docs it says add the LOCAL_LDLIBS += -landroid to the android.mk file which I have

but the linker is giving the following error saying it can't find it

/android-ndk-r7/toolchains/arm-linux-androideabi-4.4.3/prebuilt/darwin-x86/bin/../lib/gcc/arm-linux-androideabi/4.4.3/../../../../arm-linux-androideabi/bin/ld: cannot find -landroid

I've compiled a sample in the NDK with the same library and that works so I can't understand why a different project is giving this problem

原来我需要针对更高的平台2.3

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM