我正在尝试构建包含两个库的Android NDK项目:
OpenCV和Boost
我认为包括openCV在内的工作正常,但我有提升问题。为了构建提升,我按照这里的说明进行操作:https://github.com/MysticTreeGames/Boost-for-Android 我使用Boost 1.53和Android NDK r8e来构建提升。
我设置了这样的make文件:
Application.mk
APP_PLATFORM := android-8
APP_ABI := armeabi-v7a
APP_OPTIM := debug
NDK_DEBUG := 1
APP_STL := gnustl_static
APP_CPPFLAGS := -fexceptions -frtti
Android.mk
LOCAL_PATH := $(call my-dir)
include ./jni/opencv/sdk/native/jni/OpenCV.mk
include ./jni/boost/lib/boost.mk
include ./jni/usit/usit.mk
boost.mk
LOCAL_PATH := $(call my-dir)
# boost_filesystem
#
include $(CLEAR_VARS)
LOCAL_MODULE := boost_filesystem
LOCAL_SRC_FILES := libboost_filesystem-gcc-mt-1_53.a
include $(PREBUILT_STATIC_LIBRARY)
# boost_thread
#
include $(CLEAR_VARS)
LOCAL_MODULE := boost_regex
LOCAL_SRC_FILES := libboost_regex-gcc-mt-1_53.a
include $(PREBUILT_STATIC_LIBRARY)
# boost_system
#
include $(CLEAR_VARS)
LOCAL_MODULE := boost_system
LOCAL_SRC_FILES := libboost_system-gcc-mt-1_53.a
include $(PREBUILT_STATIC_LIBRARY)
# boost_system
#
include $(CLEAR_VARS)
LOCAL_MODULE := boost_date_time
LOCAL_SRC_FILES := libboost_date_time-gcc-mt-1_53.a
include $(PREBUILT_STATIC_LIBRARY)
为了进行设置,我按照以下示例进行了设置:How to use the boost library (including shared_ptr) with the Android NDK and STLport
但是我收到了这个错误:
/home/tassilo/android-ndks/android-ndk-r8e/build/core/build-executable.mk:23: *** Android NDK: Missing LOCAL_MODULE before including BUILD_EXECUTABLE in jni/Android.mk . Stop.
尝试运行ndk-build。
我的所有来源均可在此处找到:https://github.com/4ndro1d/irisrec.git
我的目标是编译文件wahet.cpp而不会出错。