-
Notifications
You must be signed in to change notification settings - Fork 251
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Colcon build for an STM32MP1 target #1000
Comments
There are two ways of using colcon:
In case of option 1, you would add the line you specified, and run The problem you are facing specifically is that the When choosing option 2, one should add the package |
Thanks a lot for your answer. I went for option 1 as you recommended (and also because it is inconveniant to build on the target device)
I also tried option 2 and it worked for me (I removed |
Thats an interesting error, it looks like the boost dynamic libraries are included in the microstrain-inertial-driver package, clearly, the so files of boost should be contained in the boost package, so something odd is happening in the microstrain-initial-driver package. You could check its work folder, and inspect the contents of the |
Thanks for your reply.
Which I passed by adding I added :
But I now have the same issu with the SDK than when trying to colcon build on my target.
Once again, thanks a lot for your help and your work. |
Adding
did the trick for me and I could genereate an SDK. However I still had C and CXX flag issues when calling colcon build so I decided to go for an other solution. |
I'm using Yocto to compile my nodes. I took examples of the files present in meta ROS and managed to compile an image with my packages. When using the generated image on my STM32MP157C-DK2, I see some files named "my-ros-package" in the Once again thank you for your time and your help. |
What finally did the trick for me was adding thoses lines to my bb append file (instead of the superflore-ros-distro.inc file) :
|
Hello, can may I ask you a question? I entered the code below in the local.conf file and built the image. ''' However, the following error occurred. How can i solve this? (wrlinuxsdk-x86_64-aarch64) wkdtjdqls@wkdtjdqls-MS-7C94:~/ros2_ws$ colcon build Starting >>> cpp_pubsub --- stderr: cpp_pubsub Traceback (most recent call last): File "/opt/windriver/wrlinux/21.20/sysroots/cortexa53-wrs-linux/usr/share/ament_cmake_core/cmake/package_templates/templates_2_cmake.py", line 21, in from ament_package.templates import get_environment_hook_template_path ModuleNotFoundError: No module named 'ament_package' CMake Error at /opt/windriver/wrlinux/21.20/sysroots/cortexa53-wrs-linux/usr/share/ament_cmake_core/cmake/ament_cmake_package_templates-extras.cmake:41 (message): execute_process(/opt/windriver/wrlinux/21.20/sysroots/x86_64-wrlinuxsdk-linux/usr/bin/python3 /opt/windriver/wrlinux/21.20/sysroots/cortexa53-wrs-linux/usr/share/ament_cmake_core/cmake/package_templates/templates_2_cmake.py /home/wkdtjdqls/ros2_ws/build/cpp_pubsub/ament_cmake_package_templates/templates.cmake) returned error code 1 Call Stack (most recent call first): /opt/windriver/wrlinux/21.20/sysroots/cortexa53-wrs-linux/usr/share/ament_cmake_core/cmake/ament_cmake_coreConfig.cmake:41 (include) /opt/windriver/wrlinux/21.20/sysroots/cortexa53-wrs-linux/usr/share/ament_cmake/cmake/ament_cmake_export_dependencies-extras.cmake:15 (find_package) /opt/windriver/wrlinux/21.20/sysroots/cortexa53-wrs-linux/usr/share/ament_cmake/cmake/ament_cmakeConfig.cmake:41 (include) CMakeLists.txt:13 (find_package) --- Failed <<< cpp_pubsub [0.07s, exited with code 1] Summary: 0 packages finished [0.15s] 1 package failed: cpp_pubsub 1 package had stderr output: cpp_pubsub Thank you. |
Dear ros community,
I'm an absolute beginner in the world of meta-ros, but I used to work with it on my ubuntu laptop. I wanted to create my own ros nodes and execute them on my STM32MP1 board, but I can't find any way to build them on it, that's why I wanted to add colcon build command. I've seen other issues talking about it but I don't understand what I'm doing wrong here.
Describe the bug
Unable to bitbake my image when including
TOOLCHAIN_HOST_TASK_append = " nativesdk-python3-colcon-common-extensions"
to my local.conf file.
To Reproduce
Using ROS2 foxy on Dunfell branch. I added meta-ros successfully to my image however, I'm unable to bitbake my image when adding colcon to the build process. Here is the error :
Expected behavior
bitbake should successfully build "mybot-image" and
colcon build
command should be recognized.The text was updated successfully, but these errors were encountered: