0

我正在关注https://github.com/tkfu/meta-onnx为可以在 rpi4 上运行的自定义映像添加 onnxrunntime 支持。一旦我将给定的图层添加到 bblayer 文件并尝试 bitbake onnxruntime,我将面临以下错误

Initialising tasks: 100% |#############################################################################################################| Time: 0:00:04 Sstate summary: Wanted 7 Found 0 Missed 7 Current 859 (0% match, 99% complete) NOTE: Executing Tasks NOTE: Setscene tasks completed ERROR: onnxruntime-0.4.0-r0 do_configure: Execution of '/home/XXXX/yocto_rpi/poky/rpi4_build/tmp/work/cortexa7t2hf-neon-vfpv4-poky-linux-gnueabi/onnxruntime/0.4.0-r0/temp/run.do_configure.295677' failed with exit code 1: 

**/* .. Other logs, can't paste as I putting in short as possible */**

- Found OpenMP_C: -fopenmp (found version "4.5") 
-- Found OpenMP_CXX: -fopenmp (found version "4.5") 
-- Found OpenMP: TRUE (found version "4.5")  
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - found
-- Found Threads: TRUE  
-- Found ZLIB: /home/praveena/yocto_rpi/poky/rpi4_build/tmp/work/cortexa7t2hf-neon-vfpv4-poky-linux-gnueabi/onnxruntime/0.4.0-r0/recipe-sysroot/usr/lib/libz.so (found version "1.2.11") 
-- Could NOT find PNG (missing: PNG_LIBRARY PNG_PNG_INCLUDE_DIR)  Doing crosscompiling CMake Error at CMakeLists.txt:222 (add_subdirectory):   The source directory

    /home/praveena/yocto_rpi/poky/rpi4_build/tmp/work/cortexa7t2hf-neon-vfpv4-poky-linux-gnueabi/onnxruntime/0.4.0-r0/git/cmake/external/nsync

  does not contain a CMakeLists.txt file.


**/* .. Other logs, can't paste as I putting in short as possible */**

 CMake Error at CMakeLists.txt:234 (set_target_properties):   set_target_properties Can not find target to add properties to: libprotobuf


CMake Error at CMakeLists.txt:235 (set_target_properties):   set_target_properties Can not find target to add properties to:   libprotobuf-lite


CMake Error at CMakeLists.txt:236 (set_target_properties):   set_target_properties Can not find target to add properties to: libprotoc


CMake Error at CMakeLists.txt:237 (set_target_properties):   set_target_properties Can not find target to add properties to: protoc


CMake Error at CMakeLists.txt:241 (add_library):   add_library cannot create ALIAS target "protobuf::libprotobuf" because   target "libprotobuf-lite" does not already exist.


**/* .. Other logs, can't paste as I putting in short as possible */**


CMake Error at CMakeLists.txt:627 (set_target_properties):   set_target_properties Can not find target to add properties to: gtest_main


-- Configuring incomplete, errors occurred! See also "/home/XXXX/yocto_rpi/poky/rpi4_build/tmp/work/cortexa7t2hf-neon-vfpv4-poky-linux-gnueabi/onnxruntime/0.4.0-r0/build/CMakeFiles/CMakeOutput.log". See also "/home/XXXX/yocto_rpi/poky/rpi4_build/tmp/work/cortexa7t2hf-neon-vfpv4-poky-linux-gnueabi/onnxruntime/0.4.0-r0/build/CMakeFiles/CMakeError.log". WARNING: exit code 1 from a shell command.

ERROR: Logfile of failure stored in: /home/XXXX/yocto_rpi/poky/rpi4_build/tmp/work/cortexa7t2hf-neon-vfpv4-poky-linux-gnueabi/onnxruntime/0.4.0-r0/temp/log.do_configure.295677`

我在这里缺少任何依赖吗?

4

0 回答 0