Skip to content
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

Build fails on Windows (at ".../lifecycle_msgs.sln) #4

Open
NexusReflex opened this issue May 11, 2018 · 4 comments
Open

Build fails on Windows (at ".../lifecycle_msgs.sln) #4

NexusReflex opened this issue May 11, 2018 · 4 comments
Assignees

Comments

@NexusReflex
Copy link

NexusReflex commented May 11, 2018

Hi,
I've been trying to add rclcs to my ROS 2.0 installation. However, build fails at .../lifecycle_msgs.sln.

ROS 2 has been build from source on Windows 10, following the instructions at [https://github.com/ros2/ros2/wiki/Windows-Development-Setup]. Build succeded and publishing/subscribing was tested and worked without any problems.

For rclsc I have followed the instructions given in the README.md (also added ament_export_dependencies(rosidl_generator_cs) and so on ...). Anyways, when trying to build again, by using python src\ament\ament_tools\scripts\ament.py build, I get the following output:

screenshot 1
screenshot 2

Did anyone have a similar issue?

@firesurfer
Copy link
Owner

Hi,
unfortunatly I havn't done any work on the rclcs for month. Therefore the probablity that it currently won't compile together with ROS2 is quite high. When I tested it the last time I think I already had issues with building it on windows.

Perhaps you might want to dig into the code and fix the issue?
There are two possible reasons why this kind of error pops up:

  1. The messages are generated incorrectly -> Then nested messages won't work either
  2. On Windows the folders where the build system looks for the assemblies of the already generated messages might be somewhere else.

@firesurfer
Copy link
Owner

firesurfer commented May 12, 2018

Ok I took a closer look at it. Unfortunatly only on linux because I don't have a working windows installation. On my setup the lifecycle_msgs.dll is properly generated.
Could you take a look at the directory: build\lifecycle_msgs\rosidl_generator_cs\lifecyle_msgs
Are there any files and especially is there a lifecycle_msgs.dll?

One more thing: Could you please show the complete output of the C# message generator. It prints quite a lot of debug information.

EDIT: I fixed a dependency error in the cmake file. Due to this error all messages where built twice on linux (but then worked).

@NexusReflex
Copy link
Author

Hi,
thanks for looking into it! Your fix worked for me on Windows, too. lifecycle_msgs.dll is being generated and the build succeeded without errors.

@firesurfer
Copy link
Owner

@NexusReflex - One more warning -> Apparently the rcl interface changed in the last few months. I try to adapt the rclcs in the next few weeks but I can't promise anything, because I've got a lot of other work todo.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants