tkfu/meta-onnx

Unable build yocto core-image-minimal adding meta-onnx for raspberrypi

Opened this issue · 0 comments

Hi Team,
since I am new to yocto setup and I am trying to build image for rpi4 by adding onnx package.
I am facing bellow error when add this layer to bblayer and "bitbake onnxruntime "

CMake Error at CMakeLists.txt:233 (add_subdirectory):
add_subdirectory given source
"/home/praveena/yocto_rpi/poky/rpi4_build/tmp/work/cortexa7t2hf-neon-vfpv4-poky-linux-gnueabi/onnxruntime/0.4.0-r0/git/cmake/external/protobuf/cmake"
which is not an existing directory.

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.
.///// same other for diferent set_XXXX

-- Configuring incomplete, errors occurred!
| See also "/home/praveena/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/praveena/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: Task (/home/praveena/yocto_rpi/meta-onnx/recipes-runtime/onnxruntime/onnxruntime_0.4.0.bb:do_configure) failed with exit code '1'
NOTE: Tasks Summary: Attempted 3076 tasks of which 3057 didn't need to be rerun and 1 failed.

Summary: 1 task failed:
/home/praveena/yocto_rpi/meta-onnx/recipes-runtime/onnxruntime/onnxruntime_0.4.0.bb:do_configure
Summary: There were 3 WARNING messages shown.
Summary: There was 1 ERROR message shown, returning a non-zero exit code.

is this layer supported for rpi4 meta-raspberrypi?