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
2.82k stars 442 forks source link

在jieson orin nano中编译fastdeploy时报错 #2389

Open lhou705 opened 4 months ago

lhou705 commented 4 months ago

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


环境

问题日志及出现问题的操作流程

使用上述命令编译FastDeploy时提示有一些库没有安装 CMake Warning (dev) at CMakeLists.txt:15 (PROJECT): cmake_minimum_required() should be called prior to this top-level project() call. Please see the cmake-commands(7) manual for usage documentation of both commands. This warning is for project developers. Use -Wno-dev to suppress it.

-- The C compiler identification is GNU 9.4.0 -- The CXX compiler identification is GNU 9.4.0 -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working C compiler: /usr/bin/cc - skipped -- Detecting C compile features -- Detecting C compile features - done -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Check for working CXX compiler: /usr/bin/c++ - skipped -- Detecting CXX compile features -- Detecting CXX compile features - done Downloading file from https://bj.bcebos.com/fastdeploy/third_libs/patchelf-0.15.0-aarch64.tar.gz to /home/lhou/fastdeploy/FastDeploy/build/patchelf-0.15.0-aarch64.tar.gz ... -- [download 1% complete] -- [download 6% complete] -- [download 11% complete] -- [download 16% complete] -- [download 21% complete] -- [download 27% complete] -- [download 32% complete] -- [download 37% complete] -- [download 42% complete] -- [download 47% complete] -- [download 52% complete] -- [download 57% complete] -- [download 63% complete] -- [download 68% complete] -- [download 73% complete] -- [download 78% complete] -- [download 83% complete] -- [download 88% complete] -- [download 93% complete] -- [download 99% complete] -- [download 100% complete] Decompress file /home/lhou/fastdeploy/FastDeploy/build/patchelf-0.15.0-aarch64.tar.gz ... -- Use the default onnxruntime lib. The ONNXRuntime path: /home/lhou/fastdeploy/FastDeploy/build/third_libs/install/onnxruntime Cannot compile with onnxruntime-gpu while in linux-aarch64 platform, fallback to onnxruntime-cpu CMake Warning (dev) at /home/lhou/miniconda3/envs/fastdeploy/share/cmake-3.26/Modules/ExternalProject.cmake:3091 (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/lhou/miniconda3/envs/fastdeploy/share/cmake-3.26/Modules/ExternalProject.cmake:4208 (_ep_add_download_command) cmake/onnxruntime.cmake:109 (ExternalProject_Add) CMakeLists.txt:230 (include) This warning is for project developers. Use -Wno-dev to suppress it.

-- Copying /home/lhou/fastdeploy/paddle to /home/lhou/fastdeploy/FastDeploy/build/third_libs/install/paddle_inference ... -- The CUDA compiler identification is NVIDIA 11.4.315 -- Detecting CUDA compiler ABI info -- Detecting CUDA compiler ABI info - done -- Check for working CUDA compiler: /usr/local/cuda-11.4/bin/nvcc - skipped -- Detecting CUDA compile features -- Detecting CUDA compile features - done -- CUDA compiler: /usr/local/cuda-11.4/bin/nvcc, version: NVIDIA 11.4.315 Using New Release Strategy - All Arches Packge -- CUDA detected: 11.4.315 -- NVCC_FLAGS_EXTRA: -gencode arch=compute_50,code=sm_50 -gencode arch=compute_60,code=sm_60 -gencode arch=compute_61,code=sm_61 -gencode arch=compute_70,code=sm_70 -gencode arch=compute_75,code=sm_75 -gencode arch=compute_80,code=sm_80 -gencode arch=compute_86,code=sm_86 -- Copying /home/lhou/fastdeploy/tensorrt/lib to /home/lhou/fastdeploy/FastDeploy/build/third_libs/install/tensorrt/lib ... -- result:0 out: -- Use the opencv lib specified by user. The OpenCV path: /usr/lib/aarch64-linux-gnu -- Found OpenCV: /usr (found version "4.5.4") CMake Warning (dev) at /home/lhou/miniconda3/envs/fastdeploy/share/cmake-3.26/Modules/ExternalProject.cmake:3091 (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/lhou/miniconda3/envs/fastdeploy/share/cmake-3.26/Modules/ExternalProject.cmake:4208 (_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.26.4 -- CMake command : /home/lhou/miniconda3/envs/fastdeploy/bin/cmake -- System : Linux -- C++ compiler : /usr/bin/c++ -- C++ standard : 11 -- C++ cuda standard : 11 -- C++ compiler version : 9.4.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_NVJPEG;ENABLE_TRT_BACKEND;ENABLE_VISION;ENABLE_PADDLE2ONNX -- CMAKE_PREFIX_PATH : -- CMAKE_INSTALL_PREFIX : /usr/local -- 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 : 2.5.2 -- PADDLE_WITH_ENCRYPT : OFF -- PADDLE_WITH_AUTH : OFF -- CUDA_DIRECTORY : /usr/local/cuda -- TRT_DRECTORY : /home/lhou/fastdeploy/tensorrt -- Configuring done (27.8s) CMake Error: The following variables are used in this project, but they are set to NOTFOUND. Please set them or make sure they are set and tested correctly in the CMake files: NVJPEG_LIB linked by target "fastdeploy" in directory /home/lhou/fastdeploy/FastDeploy TRT_INFER_LIB linked by target "fastdeploy" in directory /home/lhou/fastdeploy/FastDeploy TRT_ONNX_LIB linked by target "fastdeploy" in directory /home/lhou/fastdeploy/FastDeploy TRT_PLUGIN_LIB linked by target "fastdeploy" in directory /home/lhou/fastdeploy/FastDeploy

-- Generating done (0.1s) CMake Generate step failed. Build files cannot be regenerated correctly.

lhou705 commented 4 months ago

不使用tensorrt时可以正常编译

jiangjiajun commented 4 months ago

暂时没有支持到5.1,但看提示是没有链接到相应的库,可以修改下cmake/tensorrt.cmake来解决下

lhou705 commented 4 months ago

暂时没有支持到5.1,但看提示是没有链接到相应的库,可以修改下cmake/tensorrt.cmake来解决下

好像没有这个文件。。。

lhou705 commented 4 months ago

暂时没有支持到5.1,但看提示是没有链接到相应的库,可以修改下cmake/tensorrt.cmake来解决下

但是使用 python setup.py build却可以正常编译。

WQG6848 commented 3 months ago

ormat -g0 -O3

想问下有计划支持5.1吗?