PaddlePaddle / FastDeploy

⚡️An Easy-to-use and Fast Deep Learning Model Deployment Toolkit for ☁️Cloud 📱Mobile and 📹Edge. Including Image, Video, Text and Audio 20+ main stream scenarios and 150+ SOTA models with end-to-end optimization, multi-platform and multi-framework support.
https://www.paddlepaddle.org.cn/fastdeploy
Apache License 2.0
3k stars 465 forks source link

Jetson nano 编译错误 #2079

Closed kewuyu closed 4 months ago

kewuyu commented 1 year ago

温馨提示:根据社区不完全统计,按照模板提问,可以加快回复和解决问题的速度


环境

-- Found Python: /usr/bin/python3.6 (found version "3.6.9") found components: Interpreter Development Development.Module Development.Embed -- Copying /home/kewuyu/Downloads/paddle_inference_install_dir to /home/kewuyu/FastDeploy/build/third_libs/install/paddle_inference ... CMake Error at cmake/paddle_inference.cmake:271 (string): string sub-command REGEX, mode MATCH needs at least 5 arguments total to command. Call Stack (most recent call first): CMakeLists.txt:245 (include)

CMake Error at cmake/paddle_inference.cmake:272 (string): string sub-command REGEX, mode MATCH needs at least 5 arguments total to command. Call Stack (most recent call first): CMakeLists.txt:245 (include)

CMake Error at cmake/paddle_inference.cmake:273 (string): string sub-command REGEX, mode MATCH needs at least 5 arguments total to command. Call Stack (most recent call first): CMakeLists.txt:245 (include)

-- The CUDA compiler identification is NVIDIA 10.2.300 -- Detecting CUDA compiler ABI info -- Detecting CUDA compiler ABI info - done -- Check for working CUDA compiler: /usr/local/cuda-10.2/bin/nvcc - skipped -- Detecting CUDA compile features -- Detecting CUDA compile features - done -- CUDA compiler: /usr/local/cuda-10.2/bin/nvcc, version: NVIDIA 10.2.300 -- CUDA detected: 10.2.300 -- NVCC_FLAGS_EXTRA: -gencode arch=compute_53,code=sm_53 -gencode arch=compute_62,code=sm_62 -gencode arch=compute_72,code=sm_72 -- Use the opencv lib specified by user. The OpenCV path: /usr/lib/aarch64-linux-gnu/cmake/opencv4/ -- Found OpenCV: /usr (found version "4.1.1") CMake Warning (dev) at /home/kewuyu/cmake-3.25.2-linux-aarch64/share/cmake-3.25/Modules/ExternalProject.cmake:3075 (message): The DOWNLOAD_EXTRACT_TIMESTAMP option was not given and policy CMP0135 is not set. The policy's OLD behavior will be used. When using a URL download, the timestamps of extracted files should preferably be that of the time of extraction, otherwise code that depends on the extracted contents might not be rebuilt if the URL changes. The OLD behavior preserves the timestamps from the archive instead, but this is usually not what you want. Update your project to the NEW behavior or specify the DOWNLOAD_EXTRACT_TIMESTAMP option with a value of true to avoid this robustness issue. Call Stack (most recent call first): /home/kewuyu/cmake-3.25.2-linux-aarch64/share/cmake-3.25/Modules/ExternalProject.cmake:4185 (_ep_add_download_command) cmake/paddle2onnx.cmake:70 (ExternalProject_Add) CMakeLists.txt:478 (include) This warning is for project developers. Use -Wno-dev to suppress it.

-- -- *****FastDeploy Building Summary** -- CMake version : 3.25.2 -- CMake command : /home/kewuyu/cmake-3.25.2-linux-aarch64/bin/cmake -- System : Linux -- C++ compiler : /usr/bin/c++ -- C++ standard : 11 -- C++ cuda standard : 11 -- C++ compiler version : 7.5.0 -- CXX flags : -Wno-format -g0 -O3 -- EXE linker flags : -- Shared linker flags : -- Build type : -- Compile definitions : _GLIBCXX_USE_CXX11_ABI=1;FASTDEPLOY_LIB;CMAKE_BUILD_TYPE=Release;ENABLE_ORT_BACKEND;ENABLE_PADDLE_BACKEND;WITH_GPU;ENABLE_TRT_BACKEND;ENABLE_VISION;ENABLE_PADDLE2ONNX -- CMAKE_PREFIX_PATH : -- CMAKE_INSTALL_PREFIX : /home/kewuyu/FastDeploy/build/installed_fastdeploy -- CMAKE_MODULE_PATH : -- -- FastDeploy version : 0.0.0 -- ENABLE_ORT_BACKEND : ON -- ENABLE_RKNPU2_BACKEND : OFF -- ENABLE_HORIZON_BACKEND : OFF -- ENABLE_SOPHGO_BACKEND : OFF -- ENABLE_PADDLE_BACKEND : ON -- ENABLE_LITE_BACKEND : OFF -- ENABLE_POROS_BACKEND : OFF -- ENABLE_TRT_BACKEND : ON -- ENABLE_OPENVINO_BACKEND : OFF -- ENABLE_TVM_BACKEND : OFF -- ENABLE_BENCHMARK : OFF -- ENABLE_VISION : ON -- ENABLE_TEXT : OFF -- ENABLE_ENCRYPTION : OFF -- ENABLE_FLYCV : OFF -- ENABLE_CVCUDA : OFF -- WITH_GPU : ON -- WITH_IPU : OFF -- WITH_OPENCL : OFF -- WITH_TESTING : OFF -- WITH_ASCEND : OFF -- WITH_DIRECTML : OFF -- WITH_TIMVX : OFF -- WITH_KUNLUNXIN : OFF -- WITH_CAPI : OFF -- WITH_CSHARPAPI : OFF -- ONNXRuntime version : 1.12.0 -- Paddle Inference version : -- PADDLE_WITH_ENCRYPT : OFF -- PADDLE_WITH_AUTH : OFF -- CUDA_DIRECTORY : /usr/local/cuda -- TRT_DRECTORY : -- Configuring incomplete, errors occurred! See also "/home/kewuyu/FastDeploy/build/CMakeFiles/CMakeOutput.log".

kewuyu commented 1 year ago

编译命令

cmake .. -DBUILD_ON_JETSON=ON \
>          -DENABLE_VISION=ON \
>          -DENABLE_PADDLE_BACKEND=ON \
>          -DPADDLEINFERENCE_DIRECTORY=/home/kewuyu/Downloads/paddle_inference_install_dir \
>          -DCMAKE_INSTALL_PREFIX=${PWD}/installed_fastdeploy
xiaoqingzheng commented 1 year ago

我也遇到了同样的问题,请问你解决了吗

kewuyu commented 1 year ago

不能使用paddle后端> 我也遇到了同样的问题,请问你解决了吗

UygarUsta99 commented 1 year ago

Same error with paddle backend.

AnjanaWijesinghe commented 1 year ago

Give the version of Paddle inference

cmake .. -DBUILD_ON_JETSON=ON -DBUILD_PADDLE2ONNX=ON -DENABLE_VISION=ON -DENABLE_PADDLE_BACKEND=ON -DPADDLEINFERENCE_DIRECTORY=/paddle/paddle_inference_install_dir -DPADDLEINFERENCE_VERSION=2.4.2 -DCMAKE_INSTALL_PREFIX=${PWD}/installed_fastdeploy