-
Notifications
You must be signed in to change notification settings - Fork 689
Closed
Description
Describe the bug
I tried to build the "docker/CPU/Dockerfile" file. I have copied this file to my local system and ran the commands pasted in the following section. The final step of the docker build process seems to fail because errors occurring (see "Error traceback").
Reproduction
- What command or script did you run?
docker build -t mmdeploy:0.3 -f .\docker\Dockerfile .
- Did you make any modifications on the code or config? Did you understand what you have modified?
I did not make any modification to the Dockerfile.
Environment
I'm running docker desktop on windows 10.
Error traceback
#16 204.3 CMake Error at /root/workspace/mmdeploy/build/install/lib/cmake/MMDeploy/MMDeployConfig.cmake:39 (find_package):
#16 204.3 By not providing "Findncnn.cmake" in CMAKE_MODULE_PATH this project has
#16 204.3 asked CMake to find a package configuration file provided by "ncnn", but
#16 204.3 CMake did not find one.
#16 204.3
#16 204.3 Could not find a package configuration file provided by "ncnn" with any of
#16 204.3 the following names:
#16 204.3
#16 204.3 ncnnConfig.cmake
#16 204.3 ncnn-config.cmake
#16 204.3
#16 204.3 Add the installation prefix of "ncnn" to CMAKE_PREFIX_PATH or set
#16 204.3 "ncnn_DIR" to a directory containing one of the above files. If "ncnn"
#16 204.3 provides a separate development package or SDK, be sure it has been
#16 204.3 installed.
#16 204.3 Call Stack (most recent call first):
#16 204.3 CMakeLists.txt:5 (find_package)
#16 204.3
#16 204.3
#16 204.3 -- Configuring incomplete, errors occurred!
#16 204.3 See also "/root/workspace/mmdeploy/build/install/example/build/CMakeFiles/CMakeOutput.log".
------
executor failed running [/bin/bash -xo pipefail -c cd mmdeploy && rm -rf build/CM* && mkdir -p build && cd build && cmake .. -DMMDEPLOY_BUILD_SDK=ON -DCMAKE_CXX_COMPILER=g++-7 -DONNXRUNTIME_DIR=${ONNXRUNTIME_DIR} -Dncnn_DIR=/root/workspace/ncnn/build/install/lib/cmake/ncnn -DInferenceEngine_DIR=/opt/intel/openvino/deployment_tools/inference_engine/share -DMMDEPLOY_TARGET_DEVICES=cpu -DMMDEPLOY_BUILD_SDK_PYTHON_API=ON -DMMDEPLOY_TARGET_BACKENDS="ort;ncnn;openvino" -DMMDEPLOY_CODEBASES=all && cmake --build . -- -j$(nproc) && cmake --install . && cd install/example && mkdir -p build && cd build && cmake -DMMDeploy_DIR=/root/workspace/mmdeploy/build/install/lib/cmake/MMDeploy .. && cmake --build . && export SPDLOG_LEVEL=warn && if [ -z ${VERSION} ] ; then echo "Built MMDeploy master for CPU devices successfully!" ; else echo "Built MMDeploy version v${VERSION} for CPU devices successfully!" ; fi]: exit code: 1
Bug fix
I think it has something to do with CMake not finding "Findncnn.cmake". I would not know how to fix that though.
Metadata
Metadata
Assignees
Labels
No labels