Skip to content

Build failed with following the doc #68

@del-zhenwu

Description

@del-zhenwu

Thanks for your bug report. We appreciate it a lot.

Checklist

  1. I have searched related issues but cannot get the expected help.
  2. I have read the FAQ documentation but cannot get the expected help.
  3. The bug has not been fixed in the latest version.

Describe the bug

-- Found TensorRT headers at /opt/deps/TensorRT-8.0.3.4/include
-- Found TensorRT libs at /opt/deps/TensorRT-8.0.3.4/lib/libnvinfer.so;/opt/deps/TensorRT-8.0.3.4/lib/libnvinfer_plugin.so
-- Found TENSORRT: /opt/deps/TensorRT-8.0.3.4/include  
-- spdlog is found
-- Found OpenCV: /usr (found version "3.2.0") 
CMake Error at csrc/preprocess/cuda/CMakeLists.txt:10 (find_package):
  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.


-- Configuring incomplete, errors occurred!
See also "/opt/mmdeploy/build/CMakeFiles/CMakeOutput.log".

Reproduction

  1. What command or script did you run?

Build params:

Step 23/23 : RUN mkdir build && cd build && cmake .. -DMMDEPLOY_BUILD_SDK=ON -DCMAKE_CXX_COMPILER=g++-7 -Dpplcv_DIR=/opt/deps/ppl.cv/install/lib/cmake/ppl -DTENSORRT_DIR=/opt/deps/TensorRT-${TENSORRT_VERSION} -DMMDEPLOY_TARGET_DEVICES="cuda;cpu" -DMMDEPLOY_TARGET_BACKENDS=trt -DMMDEPLOY_CODEBASES=all && cmake --build . -- -j4 && cmake --install .
 ---> Running in 14f7daf447ab
-- CMAKE_INSTALL_PREFIX: /opt/mmdeploy/build/install
  1. Did you make any modifications on the code or config? Did you understand what you have modified?

Environment

  1. Please run python tools/check_env.py to collect necessary environment information and paste it here.
  2. You may add addition that may be helpful for locating the problem, such as
    • How you installed PyTorch [e.g., pip, conda, source]
    • Other environment variables that may be related (such as $PATH, $LD_LIBRARY_PATH, $PYTHONPATH, etc.)

master branch.

Error traceback

If applicable, paste the error trackback here.

A placeholder for trackback.

Bug fix

If you have already identified the reason, you can provide the information here. If you are willing to create a PR to fix it, please also leave a comment here and that would be much appreciated!

Metadata

Metadata

Assignees

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