Skip to content

andriod 编译ocr demo时find_package(opencv require) 时出错 #397

@hch-baobei

Description

@hch-baobei

D:\code\Paddle-Lite-Demo\ocr\android\app\cxx\ppocr_demo\app\src\main\cpp\CMakeLists.txt : C/C++ debug|arm64-v8a : CMake Error at D:\code\Paddle-Lite-Demo\ocr\android\app\cxx\ppocr_demo\app\src\main\cpp\CMakeLists.txt:16 (find_package):
By not providing "FindOpenCV.cmake" in CMAKE_MODULE_PATH this project has
asked CMake to find a package configuration file provided by "OpenCV", but
CMake did not find one.

Could not find a package configuration file provided by "OpenCV" with any
of the following names:

OpenCVConfig.cmake
opencv-config.cmake

Add the installation prefix of "OpenCV" to CMAKE_PREFIX_PATH or set
"OpenCV_DIR" to a directory containing one of the above files. If "OpenCV"
provides a separate development package or SDK, be sure it has been
installed.

Image

我应该怎么做?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions