sequenceplanner/r2r

Generate bindings for Windows

CommanderChuter opened this issue · 2 comments

Hello,

I am trying to generate bindings on windows, and I am having some problems.
First is a problem with path separators on windows being ';' instead of ':'.
I was able to fix this with a helper function in r2r_common.
The big problem though was trying to run builder for r2r_rcl.
It spits out errors on rcutils/allocator.h:82:1: error: unknown type name 'Check_return'
and alot of warnings: 'dllimport' attribute only applies to functions, variables, classes, and Objective-C interfaces [-Wignored-attributes]
This points too bindgen is struggling with the attribute tags used throughout rcl.
I am unsure how to resolve this nor was I able to find any hints or suggestions on the internet.

I am running Windows 10, ros2-foxy, LLVM-13.0.0, and rust 1.57.0
I would appreciate any help or suggestions.

Sorry I haven't even tried to build on a Windows. I am in a way surprised you got this far.

Agree that it sounds like a bindgen issue but since I don't have any experience with bindgen (or ros for that matter) on Windows I don't think I can be of much help.

Cleaning up some old issues and noticed we forgot to close this one. Windows should work now.