ros / meta-ros

OpenEmbedded Layers for ROS 1 and ROS 2
MIT License
381 stars 252 forks source link

add meta-ros to existing Yocto project STM32MP1 #1012

Closed SergeyFabric closed 2 years ago

SergeyFabric commented 2 years ago

Hi, I try to add meta-ros to an Existing OpenEmbedded Project (STM32MP1) by the wiki page. first of all, I don't understand step 2 "Add meta-ros[12]- to your conf/bblayers.conf." of "Add meta-ros to an Existing OpenEmbedded Project " What does the "12" stand for?

then I just added this layers in different constellations : bitbake-layers add-layer ../layers/meta-ros/meta-ros2-foxy/ bitbake-layers add-layer ../layers/meta-ros/meta-ros-common/

and i got the same output: unparsed line: 'ROS_SUPERFLORE_GENERATED_BUILDTOOLS:remove = "ament-cmake-google-benchmark-native"'

Layers without meta-ros:

Starting bitbake server... meta-st-stm32mp-addons openstlinux-5.4-dunfell-mp1-20-11-12/layers/meta-st/meta-fabric/meta-st-stm32mp-addons 7 meta-oe openstlinux-5.4-dunfell-mp1-20-11-12/layers/meta-openembedded/meta-oe 6 meta-initramfs openstlinux-5.4-dunfell-mp1-20-11-12/layers/meta-openembedded/meta-initramfs 8 meta-multimedia openstlinux-5.4-dunfell-mp1-20-11-12/layers/meta-openembedded/meta-multimedia 6 meta-networking openstlinux-5.4-dunfell-mp1-20-11-12/layers/meta-openembedded/meta-networking 5 meta-webserver openstlinux-5.4-dunfell-mp1-20-11-12/layers/meta-openembedded/meta-webserver 6 meta-filesystems openstlinux-5.4-dunfell-mp1-20-11-12/layers/meta-openembedded/meta-filesystems 6 meta-perl openstlinux-5.4-dunfell-mp1-20-11-12/layers/meta-openembedded/meta-perl 6 meta-python openstlinux-5.4-dunfell-mp1-20-11-12/layers/meta-openembedded/meta-python 7 meta-st-stm32mp openstlinux-5.4-dunfell-mp1-20-11-12/layers/meta-st/meta-st-stm32mp 6 meta-qt5 openstlinux-5.4-dunfell-mp1-20-11-12/layers/meta-qt5 7 meta-st-openstlinux-cv openstlinux-5.4-dunfell-mp1-20-11-12/layers/meta-st/meta-fabric/meta-st-openstlinux-cv 6 meta-st-openstlinux openstlinux-5.4-dunfell-mp1-20-11-12/layers/meta-st/meta-st-openstlinux 5 meta-mt9v034 openstlinux-5.4-dunfell-mp1-20-11-12/layers/meta-st/meta-fabric/meta-mt9v034 7 meta-wl18xx-layer openstlinux-5.4-dunfell-mp1-20-11-12/layers/meta-st/meta-fabric/meta-wl18xx-layer 7 meta-csr openstlinux-5.4-dunfell-mp1-20-11-12/layers/meta-st/meta-fabric/meta-csr 6 meta openstlinux-5.4-dunfell-mp1-20-11-12/layers/openembedded-core/meta 5

when i add meta-ros , meta-ros2-foxy to bblayers the output are: NOTE: Starting bitbake server... ERROR: Unable to start bitbake server (None) ERROR: Server log for this session (/home/sergey/yoctoWorkspace/openstlinux-5.4-dunfell-mp1-20-11-12/build-openstlinuxcv-stm32mp1-ground4-mx/bitbake-cookerdaemon.log): --- Starting bitbake server pid 27353 at 2022-05-14 19:18:16.683520 --- ERROR: ParseError at /home/sergey/yoctoWorkspace/openstlinux-5.4-dunfell-mp1-20-11-12/layers/meta-ros/meta-ros2-foxy/conf/ros-distro/include/foxy/ros-distro.inc:43: unparsed line: 'ROS_SUPERFLORE_GENERATED_BUILDTOOLS:remove = "ament-cmake-google-benchmark-native"' ERROR: ParseError at /home/sergey/yoctoWorkspace/openstlinux-5.4-dunfell-mp1-20-11-12/layers/meta-ros/meta-ros2-foxy/conf/ros-distro/include/foxy/ros-distro.inc:43: unparsed line: 'ROS_SUPERFLORE_GENERATED_BUILDTOOLS:remove = "ament-cmake-google-benchmark-native"' ERROR: ParseError at /home/sergey/yoctoWorkspace/openstlinux-5.4-dunfell-mp1-20-11-12/layers/meta-ros/meta-ros2-foxy/conf/ros-distro/include/foxy/ros-distro.inc:43: unparsed line: 'ROS_SUPERFLORE_GENERATED_BUILDTOOLS:remove = "ament-cmake-google-benchmark-native"'

or when I run the same error : bitbake -p ros-core ERROR: Unable to start bitbake server (None) ERROR: Server log for this session (/home/sergey/yoctoWorkspace/openstlinux-5.4-dunfell-mp1-20-11-12/build-openstlinuxcv-stm32mp1-ground4-mx/bitbake-cookerdaemon.log): --- Starting bitbake server pid 27408 at 2022-05-14 19:20:02.620360 --- ERROR: ParseError at /home/sergey/yoctoWorkspace/openstlinux-5.4-dunfell-mp1-20-11-12/layers/meta-ros/meta-ros2-foxy/conf/ros-distro/include/foxy/ros-distro.inc:43: unparsed line: 'ROS_SUPERFLORE_GENERATED_BUILDTOOLS:remove = "ament-cmake-google-benchmark-native"'

why this meta so difficult to add ? it should be simple task like add to local.conf only the ros2-foxy or something like this at the end its only SW ...

shr-project commented 2 years ago

your bitbake is too old, read: https://github.com/ros/meta-ros/pull/902

SergeyFabric commented 2 years ago

So if I update my STLinux to the last version that ST has it will help? :openstlinux-5.10-dunfell-mp1-21-11-17 Build process OpenEmbedded LTS Dunfell (v3.1.11) - NEW

erikboto commented 2 years ago

Yeah dunfell should be new enough, at least I use meta-ros with dunfell. Just make sure to use the dunfell branch of meta-ros.