openppl-public / ppl.cv

ppl.cv is a high-performance image processing library of openPPL supporting various platforms.
Apache License 2.0
484 stars 108 forks source link

find_package not found #82

Closed ywfwyht closed 2 years ago

ywfwyht commented 2 years ago

What are the problems?(snapshots or detailed error messages)

Installed the pplcv following the tutorial, but find package was not found.

error message: By not providing "Findpplcv.cmake" in CMAKE_MODULE_PATH this project has asked CMake to find a package configuration file provided by "pplcv", but CMake did not find one.

Could not find a package configuration file provided by "pplcv" with any of the following names: pplcvConfig.cmake pplcv-config.cmake

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

Which version(commit id or tag) of ppl.cv is used?

v0.6.2 and latest

What's the operating system ppl.cv runs on?

ubuntu18.04

What's the compiler and its version?

gcc7

What are the commands used to build ppl.cv?

mmdeploy

What are the execution commands?

minimal code snippets for reproducing these problems(if necessary)

ouonline commented 2 years ago

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

Did you set pplcv_DIR before find_package?

ywfwyht commented 2 years ago

@ouonline echo ${PPLCV_DIR} , The path output is correct

ouonline commented 2 years ago

@ouonline echo ${PPLCV_DIR} , The path output is correct

set pplcv_DIR in CMakeLists.txt:

set(pplcv_DIR /path/to/install/lib/cmake/ppl)

not the bash environment.

ywfwyht commented 2 years ago

@ouonline thanks