-
Notifications
You must be signed in to change notification settings - Fork 8
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
size_t cross-compilation issue #8
Comments
The rosidl_generator_c__ functions are defined elsewhere, so it'd probably be more straightforward to have a local uint64_t for the argument, then assign that to the size_t out argument, after some range checking depending on how paranoid you are. Longer term, it appears that CBOR_Peek is not consistent with other CBOR functions from DPS that take a size_t instead of a uint64_t (i.e. CBOR_DecodeArray). I filed intel/dps-for-iot#96 to track this. |
This fixes #8. Signed-off-by: Todd Malsbary <[email protected]>
Can you provide me some pointers on how to configure ros2 to cross-compile for RaspberryPi? I see a handful of questions and answers online, but I'm not finding anything definitive looking. |
Yes, you are right. This is a PR I opened to add RaspberryPi cross-compilation support to the OSRF tools ros-tooling/cross_compile#15 NOTE:
|
@malsbat I tested your new branch https://github.com/intel/dps-for-iot/tree/x86 and it works! I haven't been able to cross-compile it, but this can be fixed by passing the compilation flags as done in the example I posted above. This is what I did in order to test it:
|
@alsora Great, I'm going to do a bit more testing with the x86 branch before I merge it. I need to make sure it works on Windows and I'd like to verify your RPi build as well on my end. |
I did not intend merging PR #9 to close this issue. I want to continue to track the general cross-compilation here. |
@alsora, I had trouble with the instructions at ros-tooling/cross_compile#15, however I was able to verify PR #33 with the instructions at https://index.ros.org/doc/ros2/Tutorials/Cross-compilation/#cross-compiling-examples-for-arm. |
I believe this can be closed now with the merge of intel/dps-for-iot#108 and #33. |
Bug report
I'm trying to cross-compile this repository for RaspberryPi (32 bit)
The cross-compilation of this package fails because
deserializeSequenceSize
function takes asize_t
argument and then converts it into `uint64_t.https://github.com/ros2/rmw_dps/blob/master/rmw_dps_cpp/include/rmw_dps_cpp/CborStream.hpp#L444
Do you think that it is possible to change the
GenericCSequence
object to directly use the proper type?https://github.com/ros2/rmw_dps/blob/ab6f8d0257d6cf61fc499fee6ab3936e0b3234f6/rmw_dps_cpp/include/rmw_dps_cpp/macros.hpp
The text was updated successfully, but these errors were encountered: