PaddlePaddle / Paddle-Lite

PaddlePaddle High Performance Deep Learning Inference Engine for Mobile and Edge (飞桨高性能深度学习端侧推理引擎)
https://www.paddlepaddle.org.cn/lite
Apache License 2.0
6.89k stars 1.6k forks source link

Ubuntu编译错误 file STRINGS file /.tailored_kernels_source_list" cannot be read. #10487

Closed yuyutao closed 2 months ago

yuyutao commented 2 months ago

CMake Error at lite/kernels/CMakeLists.txt:18 (file): file STRINGS file "/.tailored_kernels_source_list" cannot be read.

CMake Error at lite/kernels/CMakeLists.txt:19 (file): file STRINGS file "/.tailored_kernels_list" cannot be read.

-- compile with lite host kernels -- compile with lite ARM kernels CMake Error at cmake/lite.cmake:155 (target_compile_options): Cannot specify compile options for target "kernels" which is not built by this project. Call Stack (most recent call first): lite/kernels/CMakeLists.txt:117 (lite_cc_library)

CMake Error at lite/kernels/CMakeLists.txt:118 (add_dependencies): Cannot add target-level dependencies to non-existent target "kernels".

The add_dependencies works for top-level logical targets created by the add_executable, add_library, or add_custom_target commands. If you want to add file-level dependencies see the DEPENDS option of the add_custom_target and add_custom_command commands.

fatal: no tag exactly matches 'cd09a8e010917cf3bf02bd3f50cd85804b346609' -- tag: -- branch: HEAD -- commit: cd09a8e01 CMake Error at lite/api/CMakeLists.txt:18 (message): Traceback (most recent call last):

File "/home/litao/work/Paddle-Lite/lite/tools/cmake_tools/parse_kernel_registry.py", line 38, in <module>
  with open(minkernels_list_path) as fd:

IOError: [Errno 2] No such file or directory: '/.tailored_kernels_list'

wz1qqx commented 2 months ago

根据模型进行动态库裁剪可以参考https://www.paddlepaddle.org.cn/lite/v2.11/source_compile/library_tailoring.html

yuyutao commented 2 months ago

感谢 可以了