Cross-compile custom ROS2 package for Yocto #bitbake
A message that is not in the archive (sent off-list or not yet received): [email protected]
Hello, Matthias.
I added amente-cmake-native inti DEPENDS and, indeed, I got a different error this time:
Quoted 48 lines
Initialising tasks: 100% |######################################################################################################|
Time: 0:00:02
Sstate summary: Wanted 0 Local 0 Network 0 Missed 0 Current 578 (0% match,
100% complete)
NOTE: Executing Tasks
NOTE: my-first-yocto-pkg: compiling from external source tree/home/bojan/var-fslc-yocto-playground/build_xwayland/workspace/sources/my-first-yocto-pkgERROR: my-first-yocto-pkg-0.1.0-r0
do_package: QA Issue:
my-first-yocto-pkg: Files/directories were installed but not shipped in any package:/usr/share/my_first_yocto_pkg/usr/share/my_first_yocto_pkg/local_setup.zsh/usr/share/my_first_yocto_pkg/local_setup.bash/usr/share/my_first_yocto_pkg/package.xml/usr/share/my_first_yocto_pkg/local_setup.sh/usr/share/my_first_yocto_pkg/package.dsv/usr/share/my_first_yocto_pkg/local_setup.dsv/usr/share/my_first_yocto_pkg/environment/usr/share/my_first_yocto_pkg/cmake/usr/share/my_first_yocto_pkg/environment/path.sh/usr/share/my_first_yocto_pkg/environment/path.dsv/usr/share/my_first_yocto_pkg/environment/ament_prefix_path.dsv/usr/share/my_first_yocto_pkg/environment/ament_prefix_path.sh/usr/share/my_first_yocto_pkg/cmake/my_first_yocto_pkgConfig.cmake/usr/share/my_first_yocto_pkg/cmake/my_first_yocto_pkgConfig-version.cmake
/usr/lib/my_first_yocto_pkg/talker/usr/lib/my_first_yocto_pkg/listener
Please set FILES such that these items are packaged. Alternatively if they
are unneeded, avoid installing them or delete them withindo_install.
my-first-yocto-pkg: 17 installed and not shipped files.
[installed-vs-shipped]
ERROR: my-first-yocto-pkg-0.1.0-r0do_package: Fatal QA errors found,
failing task.
ERROR: Logfile of failure stored in:/home/bojan/var-fslc-yocto-playground/build_xwayland/tmp/work/cortexa53-crypto-fslc-linux/my-first-yocto-pkg/0.1.0-r0/temp/log.do_package.15149ERROR: Task (/home/bojan/var-fslc-yocto-playground/build_xwayland/workspace/recipes/my-first-yocto-pkg/my-first-yocto-pkg_git.bb:do_package) failed with exit code '1'
NOTE: Tasks Summary: Attempted 2200 tasks of which 2192 didn't need to be
rerun and 1 failed.
NOTE: Writing buildhistory
NOTE: Writing buildhistory took: 3 seconds
Quoted 6 lines
Summary: 1 task failed:
/home/bojan/var-fslc-yocto-playground/build_xwayland/workspace/recipes/my-first-yocto-pkg/my-first-yocto-pkg_git.bb:do_packageSummary: There was 1 WARNING message shown.
Summary: There were 2 ERROR messages shown, returning a non-zero exit code.
I needed to append the following lines at the end of my-first-yocto-pkg_git.bb file in order to resolve it:
Quoted 6 lines
FILES_${PN} += "
/usr/share/my_first_yocto_pkg/*" FILES_${PN} += "/usr/lib/my_first_yocto_pkg/*" FILES_${PN}-dev = "/usr/share/my_first_yocto_pkg/*/usr/lib/my_first_yocto_pkg/*${includedir}"
In addition to the above changes, I also included instructions inside conf/local.conf file to install my first ROS2 package:
IMAGE_INSTALL_append=" ros-core my-first-yocto-pkg"
After that, I was able to bitbake the complete Yocto image, put it on the SD card, and boot the Yocto on my devkit. After sourcing ros2_setup.sh script, I entered:
ros2 pkg list command to list all available ROS2 packages on the system.
my_first_yocto_pkg package was on the list so I was happy and excited!
I wanted to do the final touch and launch the *talker* node from the packet with:
ros2 run my_first_yocto_pkg talker
However, I got the info that No executable is found ! What the heck!
Do you have any idea what I did wrong in the whole process?
Appreciate your efforts!
Sincerely,
Bojan.