我正在构建三个库:
libopencv_imgcodecs.a
libopencv_core.a
libopencv_imgproc.a
这是我的 CMAkeFIle.txt
cmake_minimum_required(VERSION 3.4.1)
#opencv sources
include_directories( /Users/aliaksandrmirashnichenka/Desktop/opencv )
add_library(
native-opencv-wrapper
SHARED
/Users/aliaksandrmirashnichenka/Desktop/Progects/MyProjects/checkbook/app/src/main/cpp/OpenCVWrapper.cpp
)
target_link_libraries(native-opencv-wrapper
PROPERTIES IMPORTED_LOCATION
/Users/aliaksandrmirashnichenka/Desktop/Progects/MyProjects/checkbook/app/src/main/cpp/include/armeabi/libopencv_imgcodecs.a
/Users/aliaksandrmirashnichenka/Desktop/Progects/MyProjects/checkbook/app/src/main/cpp/include/armeabi/libopencv_core.a
/Users/aliaksandrmirashnichenka/Desktop/Progects/MyProjects/checkbook/app/src/main/cpp/include/armeabi/libopencv_imgproc.a
)
这是我的 OpenCVWrapper.cpp
#include <jni.h>
#include <opencv2/imgcodecs/imgcodecs_c.h>
我有错误“无法找到'opencv2'”
什么可能是错的?谢谢你的回答