-
Notifications
You must be signed in to change notification settings - Fork 253
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
[dunfell][gatesgarth][hardknott][honister][kirkstone] Add 'nativesdk' to some python package recipes to fix colcon nativesdk recipe #988
base: dunfell
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me, thanks!
I've tried to continue this work with the SDK. To do so, I have a workspace which contains demos and example_interfaces packages. Below is what I've manually added to the distro config file for the SDK.
I'm not sure ament-* recipes should be installed on the target here but find_package() will search on the target sysroot.
Using Another issue is that some libraries like libtinyxml2.so and libyaml.so are searched in yocto work directory instead of the target sysroot directory. I have no clue for this one yet.
|
Nice job! That seems about right. It seems fastrtps needs patching as well, I was wondering if this patch is required, it seems it does, it should be something like this:
The same holds for the
Another thing, the |
I've patched both recipes as you suggested and it worked. Thank you! If this is an acceptable change, I could also commit for other ros2 distros. I've added I'm not sure about dependencies, I've started to add them one by one at the beginning but the compilation time is very long, so at some point I gave up and all 'related' recipes... Another issue is that I don't know how to tell ament-cmake to search for packages in the workspace, because some of them are being built from there and are not on the target sysroot. |
The colcon magical incantation I used in the end was something like:
Couple of notes:
|
What is blocking this PR from merging it into the master? |
I have successfully compiled colcon into SDK. When compiling according to your colcon build command, I encountered the following problem. Do you have a solution? Currently available middlewares: '' Failed <<< examples_rclcpp_minimal_action_client [1.45s, exited with code 1]` |
Hello, i build my image by adding the content on the right(#988 (comment)) (wrlinuxsdk-x86_64-aarch64) wkdtjdqls@wkdtjdqls-MS-7C94:~/ros2_ws$ sudo colcon build \
execute_process(/opt/windriver/wrlinux/21.20/sysroots/x86_64-wrlinuxsdk-linux/usr/bin/python3 Failed <<< cpp_pubsub [0.08s, exited with code 1] Summary: 0 packages finished [0.15s]
|
Hi Tnx, for your help here it's helped me a lot! I have to ask something about the compilation with Colcon that I succeeded in compiling in my SDK. But I have some further questions, What are the whole steps to compile a node with SDK and Colcon ? and how to move the crosscompiled code to the device and run it? there is not enough info about these steps. |
@SergeyFabric @robwoolley what versions of ROS2 and YOCTO did you use make this work? I have been trying to get Jazzy and scarthgap working with no success. If I have a working combination maybe I can incrementally get something which works with my desired combo. |
Hey, I didn't get to that ... |
Following discussion on PR #977 , I've made the changes required to fix colcon nativesdk recipe.