首页 新闻 会员 周边 捐助

opencv undefined reference to cv::Stitcher

0
[已关闭问题] 关闭于 2018-12-17 18:24

用Android Studio进行opencv开发,编译时提示:error: undefined reference to 'cv::Stitcher::create(cv::Stitcher::Mode, bool)'

 

cmakelists.txt文件如下:

# 设置CMAKE的版本号
cmake_minimum_required(VERSION 3.4.1)

# 设置include文件夹的地址
include_directories(${CMAKE_SOURCE_DIR}/src/main/cpp/include)

# 设置opencv的动态库
add_library(libopencv SHARED IMPORTED)
set_target_properties(libopencv PROPERTIES IMPORTED_LOCATION
${CMAKE_SOURCE_DIR}/src/main/jniLibs/libs/${ANDROID_ABI}/libopencv_java3.so )

add_library(
native-lib
SHARED
src/main/cpp/native-lib.cpp )

find_library(
log-lib
log )

target_link_libraries(
native-lib
libopencv
${log-lib} )

求助。求大神。没有园豆了。。。。。
dongger的主页 dongger | 菜鸟二级 | 园豆:209
提问于:2018-07-24 16:12
< >
分享
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册