我无法在我的包中加载 -landroid lib,我正在使用以下 Android.mk 代码
include $(CLEAR_VARS)
LOCAL_MODULE := ShirtsAR
TARGET_PLATFORM := android-5
USE_OPENGL_ES_1_1 := false
ifeq ($(USE_OPENGL_ES_1_1), true)
OPENGLES_LIB := -lGLESv1_CM
OPENGLES_DEF := -DUSE_OPENGL_ES_1_1
else
OPENGLES_LIB := -lGLESv2
OPENGLES_DEF := -DUSE_OPENGL_ES_2_0
endif
ANDROID_LIB := -landroid
LOCAL_SRC_FILES := ShirtsAR.cpp
LOCAL_CFLAGS := -Wno-write-strings $(OPENGLES_DEF)
LOCAL_LDLIBS := -llog $(OPENGLES_LIB) $(ANDROID_LIB)
LOCAL_ARM_MODE := arm
include $(BUILD_SHARED_LIBRARY)
请指导,我被卡住了.. :(
出现以下错误
/android-ndk-r7/toolchains/arm-linux-androideabi-4.4.3/prebuilt/windows/bin/../lib/gcc/arm-linux-androideabi/4.4.3/../../../../arm-linux-androideabi/bin/ld.exe: cannot find -landroid
collect2: ld 返回 1 退出状态 make: * [obj/local/armeabi/libShirtsAR.so] 错误 1