FastDeploy
FastDeploy copied to clipboard
Arch Linux下无法导入包管理器安装的依赖
环境
- FastDeploy版本: r1349.d74e1209
- 系统平台: Linux x64(Arch Linux rolling)
- 硬件: Intel i5-8265U
- 编译语言: C++ / Python(3.7或3.8等)
问题描述
Arch Linux 编译时无法引入包管理器安装的依赖 PKGBUILD:
pkgname=fastdeploy-git
pkgrel=1
pkgver=r1349.d74e1209
pkgdesc="An Easy-to-use and Fast Deep Learning Model Deployment Toolkit for Cloud Mobile and Edge."
url="https://github.com/PaddlePaddle/FastDeploy"
provides=(fastdeploy)
license=('Apache2')
arch=('x86_64')
source=("FastDeploy::git+https://github.com/PaddlePaddle/FastDeploy.git")
sha512sums=('SKIP')
depends=()
makedepends=(
gcc \
cmake
)
pkgver() {
cd ${srcdir}/FastDeploy
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
build(){
cd ${srcdir}/FastDeploy
cmake -S . -B build \
-DENABLE_ORT_BACKEND=ON \
-DENABLE_PADDLE_BACKEND=ON \
-DENABLE_OPENVINO_BACKEND=ON \
-DCMAKE_INSTALL_PREFIX=/usr \
-DENABLE_VISION=ON \
-DENABLE_TEXT=ON \
-DOPENCV_DIRECTORY=/usr/include/opencv4 \
-DOPENVINO_DIRECTORY=/opt/intel/openvino
cmake --build build
}
package(){
cd ${srcdir}/FastDeploy
DESTDIR=${pkgdir} cmake --install build
}
makepkg编译时有如下报错
~/fastdeploy-git > makepkg
==> 正在创建软件包:fastdeploy-git r1349.d74e1209-1 (2022年12月04日 星期日 13时59分29秒)
==> 正在检查运行时依赖关系...
==> 正在检查编译时依赖关系==> 获取源代码...
-> 正在克隆 FastDeploy git 仓库...
克隆到纯仓库 '/home/kevin/fastdeploy-git/FastDeploy'...
remote: Enumerating objects: 45611, done.
remote: Counting objects: 100% (898/898), done.
remote: Compressing objects: 100% (402/402), done.
remote: Total 45611 (delta 478), reused 830 (delta 439), pack-reused 44713
接收对象中: 100% (45611/45611), 35.87 MiB | 8.18 MiB/s, 完成.
处理 delta 中: 100% (26783/26783), 完成.
==> 正在验证 source 文件,使用sha512sums...
FastDeploy ... 已跳过==> 正在释放源码...
-> 正在建立 FastDeploy git 仓库的拷贝...
正克隆到 'FastDeploy'...
完成。==> 正在开始 pkgver()...
==> 正在开始 build()...
-- The C compiler identification is GNU 12.2.0
-- The CXX compiler identification is GNU 12.2.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/lib/ccache/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/lib/ccache/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-x86_64.tar.gz to /home/kevin/fastdeploy-git/src/FastDeploy/build/patchelf-0.15.0-x86_64.tar.gz ...
-- [download 1% complete]
-- [download 6% complete]
-- [download 11% complete]
-- [download 17% complete]
-- [download 22% complete]
-- [download 27% complete]
-- [download 32% complete]
-- [download 37% complete]
-- [download 43% complete]
-- [download 48% complete]
-- [download 53% complete]
-- [download 58% complete]
-- [download 64% complete]
-- [download 69% complete]
-- [download 74% complete]
-- [download 79% complete]
-- [download 84% complete]
-- [download 90% complete]
-- [download 95% complete]
-- [download 100% complete]
Decompress file /home/kevin/fastdeploy-git/src/FastDeploy/build/patchelf-0.15.0-x86_64.tar.gz ...
-- Use the default onnxruntime lib. The ONNXRuntime path: /home/kevin/fastdeploy-git/src/FastDeploy/build/third_libs/install/onnxruntime
CMake Warning (dev) at /usr/share/cmake/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):
/usr/share/cmake/Modules/ExternalProject.cmake:4185 (_ep_add_download_command)
cmake/onnxruntime.cmake:98 (ExternalProject_Add)
CMakeLists.txt:206 (include)
This warning is for project developers. Use -Wno-dev to suppress it.
CMake Warning (dev) at /usr/share/cmake/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):
/usr/share/cmake/Modules/ExternalProject.cmake:4185 (_ep_add_download_command)
cmake/paddle_inference.cmake:82 (ExternalProject_Add)
CMakeLists.txt:224 (include)
This warning is for project developers. Use -Wno-dev to suppress it.
-- Use the openvino lib specified by user. The OpenVINO path: /opt/intel/openvino
OPENVINO_LIBS = /opt/intel/openvino/runtime/lib/intel64/libopenvino.so;TBB::tbb;TBB::tbbmalloc;TBB::tbbmalloc_proxy
-- Use the opencv lib specified by user. The OpenCV path: /usr/include/opencv4
-- Found OpenCV: /usr (found version "4.6.0")
FASTTOKENIZER_COMPILE_LIB = /home/kevin/fastdeploy-git/src/FastDeploy/build/third_libs/install/fast_tokenizer/lib/libcore_tokenizers.so
CMake Warning (dev) at /usr/share/cmake/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):
/usr/share/cmake/Modules/ExternalProject.cmake:4185 (_ep_add_download_command)
cmake/fast_tokenizer.cmake:80 (ExternalProject_Add)
CMakeLists.txt:438 (include)
This warning is for project developers. Use -Wno-dev to suppress it.
CMake Warning (dev) at /usr/share/cmake/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):
/usr/share/cmake/Modules/ExternalProject.cmake:4185 (_ep_add_download_command)
cmake/paddle2onnx.cmake:67 (ExternalProject_Add)
CMakeLists.txt:443 (include)
This warning is for project developers. Use -Wno-dev to suppress it.
--
-- *************FastDeploy Building Summary**********
-- CMake version : 3.25.1
-- CMake command : /usr/bin/cmake
-- System : Linux
-- C++ compiler : /usr/lib/ccache/bin/c++
-- C++ compiler version : 12.2.0
-- CXX flags : -Wno-format
-- Build type :
-- Compile definitions : FASTDEPLOY_LIB;ENABLE_ORT_BACKEND;ENABLE_PADDLE_BACKEND;ENABLE_OPENVINO_BACKEND;ENABLE_VISION;ENABLE_VISION_VISUALIZE;ENABLE_TEXT;ENABLE_PADDLE_FRONTEND
-- CMAKE_PREFIX_PATH :
-- CMAKE_INSTALL_PREFIX : /usr
-- CMAKE_MODULE_PATH :
--
-- FastDeploy version : 0.0.0
-- Paddle2ONNX version : 1.0.4rc0
-- ENABLE_ORT_BACKEND : ON
-- ENABLE_RKNPU2_BACKEND : OFF
-- ENABLE_PADDLE_BACKEND : ON
-- ENABLE_LITE_BACKEND : OFF
-- ENABLE_POROS_BACKEND : OFF
-- ENABLE_TRT_BACKEND : OFF
-- ENABLE_OPENVINO_BACKEND : ON
-- ONNXRuntime version : 1.12.0
-- Paddle Inference version : 2.4-dev3
-- OpenVINO version :
-- ENABLE_VISION : ON
-- ENABLE_TEXT : ON
-- ENABLE_DEBUG :
-- ENABLE_VISION_VISUALIZE :
-- Configuring done
-- Generating done
-- Build files have been written to: /home/kevin/fastdeploy-git/src/FastDeploy/build
[ 1%] Creating directories for 'extern_onnxruntime'
[ 1%] Creating directories for 'extern_fast_tokenizer'
[ 2%] Building CXX object third_party/yaml-cpp/CMakeFiles/yaml-cpp.dir/src/contrib/graphbuilder.cpp.o
[ 2%] Building CXX object third_party/yaml-cpp/CMakeFiles/yaml-cpp.dir/src/contrib/graphbuilderadapter.cpp.o
[ 2%] Creating directories for 'extern_paddle_inference'
[ 3%] Building CXX object third_party/yaml-cpp/CMakeFiles/yaml-cpp.dir/src/binary.cpp.o
[ 3%] Building CXX object third_party/yaml-cpp/CMakeFiles/yaml-cpp.dir/src/convert.cpp.o
[ 3%] Creating directories for 'extern_paddle2onnx'
[ 4%] Performing download step (download, verify and extract) for 'extern_onnxruntime'
[ 4%] Performing download step (download, verify and extract) for 'extern_fast_tokenizer'
[ 5%] Performing download step (download, verify and extract) for 'extern_paddle2onnx'
[ 5%] Performing download step (download, verify and extract) for 'extern_paddle_inference'
-- Downloading...
dst='/home/kevin/fastdeploy-git/src/FastDeploy/build/third_libs/onnxruntime/src/onnxruntime-linux-x64-1.12.0.tgz'
timeout='none'
inactivity timeout='none'
-- Using src='https://bj.bcebos.com/paddle2onnx/libs/onnxruntime-linux-x64-1.12.0.tgz'
-- Downloading...
dst='/home/kevin/fastdeploy-git/src/FastDeploy/build/third_libs/paddle2onnx/src/paddle2onnx-linux-x64-1.0.4rc0.tgz'
timeout='none'
inactivity timeout='none'
-- Downloading...
dst='/home/kevin/fastdeploy-git/src/FastDeploy/build/third_libs/paddle_inference/src/paddle_inference-linux-x64-2.4-dev3.tgz'
timeout='none'
inactivity timeout='none'
-- Using src='https://bj.bcebos.com/fastdeploy/third_libs/paddle2onnx-linux-x64-1.0.4rc0.tgz'
-- Using src='https://bj.bcebos.com/fastdeploy/third_libs/paddle_inference-linux-x64-2.4-dev3.tgz'
-- Downloading...
dst='/home/kevin/fastdeploy-git/src/FastDeploy/build/third_libs/fast_tokenizer/src/fast_tokenizer-linux-x64-1.0.0.tgz'
timeout='none'
inactivity timeout='none'
-- Using src='https://bj.bcebos.com/paddlenlp/fast_tokenizer/fast_tokenizer-linux-x64-1.0.0.tgz'
[ 6%] Building CXX object third_party/yaml-cpp/CMakeFiles/yaml-cpp.dir/src/depthguard.cpp.o
[ 6%] Building CXX object third_party/yaml-cpp/CMakeFiles/yaml-cpp.dir/src/directives.cpp.o
[ 7%] Building CXX object third_party/yaml-cpp/CMakeFiles/yaml-cpp.dir/src/emit.cpp.o
[ 7%] Building CXX object third_party/yaml-cpp/CMakeFiles/yaml-cpp.dir/src/emitfromevents.cpp.o
[ 7%] Building CXX object third_party/yaml-cpp/CMakeFiles/yaml-cpp.dir/src/emitter.cpp.o
[ 8%] Building CXX object third_party/yaml-cpp/CMakeFiles/yaml-cpp.dir/src/emitterstate.cpp.o
[ 8%] Building CXX object third_party/yaml-cpp/CMakeFiles/yaml-cpp.dir/src/emitterutils.cpp.o
[ 9%] Building CXX object third_party/yaml-cpp/CMakeFiles/yaml-cpp.dir/src/exceptions.cpp.o
[ 9%] Building CXX object third_party/yaml-cpp/CMakeFiles/yaml-cpp.dir/src/exp.cpp.o
[ 10%] Building CXX object third_party/yaml-cpp/CMakeFiles/yaml-cpp.dir/src/memory.cpp.o
[ 10%] Building CXX object third_party/yaml-cpp/CMakeFiles/yaml-cpp.dir/src/node.cpp.o
[ 11%] Building CXX object third_party/yaml-cpp/CMakeFiles/yaml-cpp.dir/src/node_data.cpp.o
[ 11%] Building CXX object third_party/yaml-cpp/CMakeFiles/yaml-cpp.dir/src/nodebuilder.cpp.o
[ 11%] Building CXX object third_party/yaml-cpp/CMakeFiles/yaml-cpp.dir/src/nodeevents.cpp.o
[ 12%] Building CXX object third_party/yaml-cpp/CMakeFiles/yaml-cpp.dir/src/null.cpp.o
[ 12%] Building CXX object third_party/yaml-cpp/CMakeFiles/yaml-cpp.dir/src/ostream_wrapper.cpp.o
[ 13%] Building CXX object third_party/yaml-cpp/CMakeFiles/yaml-cpp.dir/src/parse.cpp.o
[ 13%] Building CXX object third_party/yaml-cpp/CMakeFiles/yaml-cpp.dir/src/parser.cpp.o
[ 14%] Building CXX object third_party/yaml-cpp/CMakeFiles/yaml-cpp.dir/src/regex_yaml.cpp.o
[ 14%] Building CXX object third_party/yaml-cpp/CMakeFiles/yaml-cpp.dir/src/scanner.cpp.o
[ 15%] Building CXX object third_party/yaml-cpp/CMakeFiles/yaml-cpp.dir/src/scanscalar.cpp.o
[ 15%] Building CXX object third_party/yaml-cpp/CMakeFiles/yaml-cpp.dir/src/scantag.cpp.o
[ 16%] Building CXX object third_party/yaml-cpp/CMakeFiles/yaml-cpp.dir/src/scantoken.cpp.o
[ 16%] Building CXX object third_party/yaml-cpp/CMakeFiles/yaml-cpp.dir/src/simplekey.cpp.o
[ 16%] Building CXX object third_party/yaml-cpp/CMakeFiles/yaml-cpp.dir/src/singledocparser.cpp.o
[ 17%] Building CXX object third_party/yaml-cpp/CMakeFiles/yaml-cpp.dir/src/stream.cpp.o
[ 17%] Building CXX object third_party/yaml-cpp/CMakeFiles/yaml-cpp.dir/src/tag.cpp.o
[ 18%] Linking CXX static library libyaml-cpp.a
[ 18%] Built target yaml-cpp
[ 18%] Building CXX object third_party/yaml-cpp/util/CMakeFiles/yaml-cpp-parse.dir/parse.cpp.o
[ 18%] Building CXX object third_party/yaml-cpp/util/CMakeFiles/yaml-cpp-sandbox.dir/sandbox.cpp.o
[ 18%] Building CXX object third_party/yaml-cpp/util/CMakeFiles/yaml-cpp-read.dir/read.cpp.o
[ 19%] Linking CXX executable read
[ 20%] Linking CXX executable parse
[ 21%] Linking CXX executable sandbox
[ 21%] Built target yaml-cpp-sandbox
[ 21%] Built target yaml-cpp-read
[ 21%] Built target yaml-cpp-parse
-- Downloading... done
-- extracting...
src='/home/kevin/fastdeploy-git/src/FastDeploy/build/third_libs/onnxruntime/src/onnxruntime-linux-x64-1.12.0.tgz'
dst='/home/kevin/fastdeploy-git/src/FastDeploy/build/third_libs/onnxruntime/src/extern_onnxruntime'
-- extracting... [tar xfz]
-- Downloading... done
-- extracting...
src='/home/kevin/fastdeploy-git/src/FastDeploy/build/third_libs/paddle2onnx/src/paddle2onnx-linux-x64-1.0.4rc0.tgz'
dst='/home/kevin/fastdeploy-git/src/FastDeploy/build/third_libs/paddle2onnx/src/extern_paddle2onnx'
-- extracting... [tar xfz]
-- extracting... [analysis]
-- extracting... [rename]
-- extracting... [clean up]
-- extracting... done
-- extracting... [analysis]
-- extracting... [rename]
-- extracting... [clean up]
-- extracting... done
[ 22%] No update step for 'extern_onnxruntime'
[ 22%] No update step for 'extern_paddle2onnx'
[ 22%] No patch step for 'extern_onnxruntime'
[ 23%] No patch step for 'extern_paddle2onnx'
[ 23%] No configure step for 'extern_onnxruntime'
[ 23%] No configure step for 'extern_paddle2onnx'
[ 23%] No build step for 'extern_onnxruntime'
[ 24%] No build step for 'extern_paddle2onnx'
[ 24%] Performing install step for 'extern_onnxruntime'
[ 24%] Performing install step for 'extern_paddle2onnx'
[ 25%] Completed 'extern_onnxruntime'
[ 25%] Completed 'extern_paddle2onnx'
[ 25%] Built target extern_onnxruntime
[ 25%] Built target extern_paddle2onnx
-- Downloading... done
-- extracting...
src='/home/kevin/fastdeploy-git/src/FastDeploy/build/third_libs/fast_tokenizer/src/fast_tokenizer-linux-x64-1.0.0.tgz'
dst='/home/kevin/fastdeploy-git/src/FastDeploy/build/third_libs/fast_tokenizer/src/extern_fast_tokenizer'
-- extracting... [tar xfz]
-- extracting... [analysis]
-- extracting... [rename]
-- extracting... [clean up]
-- extracting... done
[ 25%] No update step for 'extern_fast_tokenizer'
[ 26%] No patch step for 'extern_fast_tokenizer'
[ 27%] No configure step for 'extern_fast_tokenizer'
[ 27%] No build step for 'extern_fast_tokenizer'
[ 28%] Performing install step for 'extern_fast_tokenizer'
[ 28%] Completed 'extern_fast_tokenizer'
[ 28%] Built target extern_fast_tokenizer
-- Downloading... done
-- extracting...
src='/home/kevin/fastdeploy-git/src/FastDeploy/build/third_libs/paddle_inference/src/paddle_inference-linux-x64-2.4-dev3.tgz'
dst='/home/kevin/fastdeploy-git/src/FastDeploy/build/third_libs/paddle_inference/src/extern_paddle_inference'
-- extracting... [tar xfz]
-- extracting... [analysis]
-- extracting... [rename]
-- extracting... [clean up]
-- extracting... done
[ 29%] No update step for 'extern_paddle_inference'
[ 29%] No patch step for 'extern_paddle_inference'
[ 30%] No configure step for 'extern_paddle_inference'
[ 30%] No build step for 'extern_paddle_inference'
[ 31%] Performing install step for 'extern_paddle_inference'
[ 32%] Completed 'extern_paddle_inference'
[ 32%] Built target extern_paddle_inference
[ 33%] Building CXX object CMakeFiles/fastdeploy.dir/fastdeploy/core/fd_tensor.cc.o
[ 33%] Building CXX object CMakeFiles/fastdeploy.dir/fastdeploy/backends/common/multiclass_nms.cc.o
[ 33%] Building CXX object CMakeFiles/fastdeploy.dir/fastdeploy/fastdeploy_model.cc.o
[ 33%] Building CXX object CMakeFiles/fastdeploy.dir/fastdeploy/core/allocate.cc.o
[ 34%] Building CXX object CMakeFiles/fastdeploy.dir/fastdeploy/function/clip.cc.o
[ 34%] Building CXX object CMakeFiles/fastdeploy.dir/fastdeploy/function/cast.cc.o
[ 35%] Building CXX object CMakeFiles/fastdeploy.dir/fastdeploy/core/fd_type.cc.o
[ 36%] Building CXX object CMakeFiles/fastdeploy.dir/fastdeploy/function/concat.cc.o
[ 36%] Building CXX object CMakeFiles/fastdeploy.dir/fastdeploy/function/cumprod.cc.o
[ 36%] Building CXX object CMakeFiles/fastdeploy.dir/fastdeploy/function/eigen.cc.o
[ 37%] Building CXX object CMakeFiles/fastdeploy.dir/fastdeploy/function/elementwise.cc.o
[ 37%] Building CXX object CMakeFiles/fastdeploy.dir/fastdeploy/function/full.cc.o
[ 38%] Building CXX object CMakeFiles/fastdeploy.dir/fastdeploy/function/gather_scatter_along_axis.cc.o
[ 38%] Building CXX object CMakeFiles/fastdeploy.dir/fastdeploy/function/gaussian_random.cc.o
[ 38%] Building CXX object CMakeFiles/fastdeploy.dir/fastdeploy/function/linspace.cc.o
[ 39%] Building CXX object CMakeFiles/fastdeploy.dir/fastdeploy/function/isfinite.cc.o
[ 40%] Building CXX object CMakeFiles/fastdeploy.dir/fastdeploy/function/math.cc.o
[ 40%] Building CXX object CMakeFiles/fastdeploy.dir/fastdeploy/function/pad.cc.o
[ 40%] Building CXX object CMakeFiles/fastdeploy.dir/fastdeploy/function/quantile.cc.o
[ 41%] Building CXX object CMakeFiles/fastdeploy.dir/fastdeploy/function/reduce.cc.o
[ 41%] Building CXX object CMakeFiles/fastdeploy.dir/fastdeploy/function/slice.cc.o
[ 42%] Building CXX object CMakeFiles/fastdeploy.dir/fastdeploy/function/softmax.cc.o
[ 43%] Building CXX object CMakeFiles/fastdeploy.dir/fastdeploy/function/sort.cc.o
[ 43%] Building CXX object CMakeFiles/fastdeploy.dir/fastdeploy/function/split.cc.o
[ 43%] Building CXX object CMakeFiles/fastdeploy.dir/fastdeploy/function/tile.cc.o
[ 44%] Building CXX object CMakeFiles/fastdeploy.dir/fastdeploy/function/transpose.cc.o
[ 44%] Building CXX object CMakeFiles/fastdeploy.dir/fastdeploy/runtime.cc.o
[ 45%] Building CXX object CMakeFiles/fastdeploy.dir/fastdeploy/utils/utils.cc.o
[ 45%] Building CXX object CMakeFiles/fastdeploy.dir/fastdeploy/backends/ort/ops/adaptive_pool2d.cc.o
[ 45%] Building CXX object CMakeFiles/fastdeploy.dir/fastdeploy/backends/ort/ops/multiclass_nms.cc.o
[ 46%] Building CXX object CMakeFiles/fastdeploy.dir/fastdeploy/backends/ort/ort_backend.cc.o
[ 46%] Building CXX object CMakeFiles/fastdeploy.dir/fastdeploy/backends/ort/utils.cc.o
[ 47%] Building CXX object CMakeFiles/fastdeploy.dir/fastdeploy/backends/paddle/paddle_backend.cc.o
[ 47%] Building CXX object CMakeFiles/fastdeploy.dir/fastdeploy/backends/paddle/util.cc.o
[ 48%] Building CXX object CMakeFiles/fastdeploy.dir/fastdeploy/backends/openvino/ov_backend.cc.o
In file included from /home/kevin/fastdeploy-git/src/FastDeploy/fastdeploy/runtime.cc:37:
/home/kevin/fastdeploy-git/src/FastDeploy/./fastdeploy/backends/openvino/ov_backend.h:24:10: 致命错误:openvino/openvino.hpp:没有那个文件或目录 24 | #include "openvino/openvino.hpp"
| ^~~~~~~~~~~~~~~~~~~~~~~
编译中断。make[2]: *** [CMakeFiles/fastdeploy.dir/build.make:440:CMakeFiles/fastdeploy.dir/fastdeploy/runtime.cc.o] 错误 1
make[2]: *** 正在等待未完成的任务....
[ 48%] Building CXX object CMakeFiles/fastdeploy.dir/fastdeploy/vision/classification/contrib/resnet.cc.o
In file included from /home/kevin/fastdeploy-git/src/FastDeploy/fastdeploy/backends/openvino/ov_backend.cc:15:
/home/kevin/fastdeploy-git/src/FastDeploy/./fastdeploy/backends/openvino/ov_backend.h:24:10: 致命错误:openvino/openvino.hpp:没有那个文件或目录 24 | #include "openvino/openvino.hpp"
| ^~~~~~~~~~~~~~~~~~~~~~~
编译中断。make[2]: *** [CMakeFiles/fastdeploy.dir/build.make:552:CMakeFiles/fastdeploy.dir/fastdeploy/backends/openvino/ov_backend.cc.o] 错误 1
make[1]: *** [CMakeFiles/Makefile2:284:CMakeFiles/fastdeploy.dir/all] 错误 2
make: *** [Makefile:136:all] 错误 2
==> 错误: 在 build() 中发生一个错误。 正在放弃...
修改 编译语言: C++,未在干净的chroot中尝试
linux aarch64下只能开启ORT和LITE两个backend,openvino不能支持
x64下则LITE不支持。
另外你能使用cmake和make编译通过吗
linux aarch64下只能开启ORT和LITE两个backend,openvino不能支持
Arch Linux 是一个 Linux 发行版, 不是 aarch
看了下好像 CMake 里面好像有些第三方库没有提供能让用户指定路径的方法, 比如 paddle2onnx 和 paddle_inference 🤔
paddle2onnx没有支持指定。 但是Paddle Inference会支持,预计在下周新的版本发版后,会支持Paddle Inference指定路径
此ISSUE由于一年未更新,将会关闭处理,如有需要,可再次更新打开。