-
Notifications
You must be signed in to change notification settings - Fork 125
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 Failure: Unable to Build gazebo_ros2_control on Windows #377
Comments
The error messages come already from ros2_control and dependencies like rclcpp_lifecycle. We do not officially support ros2_control compilation on Windows (we don't have CI for that etc..). Were your able to build the ros2_control stack (without gazebo)? |
Yes, I was able to build ros2_control, ros2_controllers, and gazebo_ros_pkgs. However, some packages may be broken on Windows, such as pid_controller. I'm just curious to get this working on Windows! :) |
But there is a syntax error reported in hardware_interface, how can you compile that in ros2_control? |
@christophfroehlich I used the following command:
And Gazebo is working like a charm (with a good fps). However, two plugins, |
Why you should get syntax errors in the file included in gazebo_ros2_control, if it works if compiled separately? Sorry, I can't help you further here, never used ROS on Windows. |
I don't know either 🤣. No problem, thank you for your support. If I find any solution to solve this installation on Windows, I'll share it with you all. |
Just an update... I was able to minimize some errors using this code in the CMakeLists file: if(WIN32)
add_compile_definitions(
# For math constants
_USE_MATH_DEFINES
# Minimize Windows namespace collision
NOMINMAX
WIN32_LEAN_AND_MEAN
)
endif() I have tried to split the build and see which errors are related to each plugin. The log from
And the
|
|
Description:
I am encountering an issue while trying to build the
gazebo_ros2_control
package on a Windows environment. The build fails with the following error log. I've anonymized any user-specific data in the output. Please advise on how to resolve this issue.Error Log (Anonymized):
Environment:
I have already installed all necessary dependencies via
vcpkg
and configured the environment variables. Please let me know if additional details are required.Steps to Reproduce:
gazebo_ros2_control
repository.colcon build
in the workspace on Windows.Expected Behavior:
The build should complete successfully without errors.
Actual Behavior:
The build fails with the above-mentioned errors.
The text was updated successfully, but these errors were encountered: