我想在我的项目中使用vector class。我已将stl库添加到C ++路径中。当我更改 APP_STL:= stlport_static 时,ndk在Android的Opencv sdk中显示错误。这是我的Android.mk文件
LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)
OPENCV_INSTALL_MODULES:=on
include ~/Android/OpenCV-android-sdk/sdk/native/jni/OpenCV.mk
OPENCV_LIB_TYPE:=STATIC
LOCAL_MODULE := GetImage
LOCAL_SRC_FILES := GetImage.cpp ImageProcessing.cpp
LOCAL_LDLIBS += -llog -ldl
include $(BUILD_SHARED_LIBRARY)
以下是我的Application.mk
的内容 APP_STL := gnustl_static
#APP_STL := stlport_static
APP_CPPFLAGS := -frtti -fexceptions
APP_PLATFORM := android-8
APP_ABI := all
任何帮助都会受到很多关注