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

Fail to build ignition-physics #72

Closed
MakinoharaShouko opened this issue Jun 25, 2020 · 2 comments
Closed

Fail to build ignition-physics #72

MakinoharaShouko opened this issue Jun 25, 2020 · 2 comments

Comments

@MakinoharaShouko
Copy link

When building ignition-dome on Ubuntu 18.04 following this document, I got the following error
I am wondering how can this be fixed

--- stderr: ignition-physics3                                                
CMake Error at /usr/share/dart/cmake/DARTFindurdfdom.cmake:13 (set_target_properties):
  Property INTERFACE_LINK_LIBRARIES may not contain link-type keyword
  "optimized".  The INTERFACE_LINK_LIBRARIES property may contain
  configuration-sensitive generator-expressions which may be used to specify
  per-configuration rules.
Call Stack (most recent call first):
  /usr/share/dart/cmake/dart_utils-urdfComponent.cmake:6 (include)
  /usr/share/dart/cmake/DARTConfig.cmake:63 (include)
  /usr/share/dart/cmake/DARTConfig.cmake:123 (dart_traverse_components)
  /usr/share/dart/cmake/DARTConfig.cmake:171 (dart_package_init)
  /home/makinohara/ws_dome/install/share/cmake/ignition-cmake2/cmake2/IgnUtils.cmake:188 (find_package)
  CMakeLists.txt:63 (ign_find_package)


---
Failed   <<< ignition-physics3 [0.40s, exited with code 1]
@traversaro
Copy link
Contributor

The error seems to be an incompatibility between DART's CMake script and the urdfdom installed by ROS2, see ros2/urdfdom#16 and robotology-legacy/gym-ignition#118 (comment) .
In theory the problem should be fixed by ros2/urdfdom#16 , but I do not know if the fix has been released, from the document you linked it should be fixed on ROS 2 Foxy, which version of ROS2 do you have installed instead?

@MakinoharaShouko
Copy link
Author

The error seems to be an incompatibility between DART's CMake script and the urdfdom installed by ROS2, see ros2/urdfdom#16 and robotology/gym-ignition#118 (comment) .
In theory the problem should be fixed by ros2/urdfdom#16 , but I do not know if the fix has been released, from the document you linked it should be fixed on ROS 2 Foxy, which version of ROS2 do you have installed instead?

I am using ROS eloquent and I found it does not contain the fix. I will manually modify that.

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

No branches or pull requests

2 participants