Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

${OPENCV_LIBS}是空的! #40

Open
erikaemma opened this issue Feb 4, 2023 · 1 comment
Open

${OPENCV_LIBS}是空的! #40

erikaemma opened this issue Feb 4, 2023 · 1 comment

Comments

@erikaemma
Copy link

erikaemma commented Feb 4, 2023

NDK version: 25.2.9519653
android sdk: compileSdk 33
minSdk 24
targetSdk 33

cmake_minimum_required(VERSION 3.22.1)

project("test_opencv_mobile")

set(OpenCV_DIR ${CMAKE_SOURCE_DIR}/opencv-mobile-4.6.0-android/sdk/native/jni)
find_package(OpenCV REQUIRED)
include_directories(${OpenCV_INCLUDE_DIRS})

add_library(test_opencv_mobile SHARED
        native-lib.cpp)

target_link_libraries(test_opencv_mobile
        ${OPENCV_LIBS})

结果:一堆undefined symbole

@erikaemma erikaemma changed the title undefined reference to `__kmpc_global_thread_num' error: undefined reference to 'cv::Mat::~Mat()' Feb 5, 2023
@erikaemma erikaemma changed the title error: undefined reference to 'cv::Mat::~Mat()' ${OPENCV_LIBS}是空的! Feb 5, 2023
@abdelaziz-mahdy
Copy link

did you find a fix?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants