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

Could not find a configuration file for package "urdfdom_headers" that is compatible with requested version "". #1365

Closed
dongfangliu opened this issue Jul 5, 2019 · 7 comments · Fixed by #1456
Labels
type: bug Indicates an unexpected problem or unintended behavior

Comments

@dongfangliu
Copy link

dongfangliu commented Jul 5, 2019

I currently tried to install DART on windows 10 .
I followed the guide all the way through, using fresh new vcpkg and install all dependencies.

However, things stack on the configure process of cmake.

It always jumped out following message.

Could not find a configuration file for package "urdfdom_headers" that is
  compatible with requested version "".

  The following configuration files were considered but not accepted:

    F:/vcpkg/installed/x64-windows/share/urdfdom_headers/urdfdom_headers-config.cmake, version: 1.0.4 (64bit)`

Which i think it's reason to cause following generate failure if above warning is negelectd

CMake Error in dart/utils/urdf/CMakeLists.txt:
  Imported target "urdfdom" includes non-existent path

    "/include"

  in its INTERFACE_INCLUDE_DIRECTORIES.

I really confused, if there's no requested verison ,why not accepted?

@dongfangliu dongfangliu added the type: bug Indicates an unexpected problem or unintended behavior label Jul 5, 2019
@jslee02
Copy link
Member

jslee02 commented Jul 6, 2019

I could reproduce this on the CI build test. Let me take a look this.

@dongfangliu
Copy link
Author

dongfangliu commented Jul 7, 2019

I could reproduce this on the CI build test. Let me take a look this.

Cool, waiting for your reply

@jslee02
Copy link
Member

jslee02 commented Jul 7, 2019

The root cause of the error is that urdfdom_INCLUDE_DIRS includes /include that is generated by the urdfdom-config.cmake.in as you described in the post. I'm not sure if this an issue of urdfdom itself or the vcpkg package. What DART can do would be excluding /include from urdfdom_INCLUDE_DIRS (or any path begin with /), but it might lead to compilation errors because tinyxml headers are required to build with urdfdom.

I think this should be fixed either by the upstream or in the vcpkg package. But, unfortunately, we currently don't have the resources to fix dependency packages to support Windows at the moment. I've tried to fix this issue within DART but couldn't come up with a good solution.

Please consider using DART on other supported platforms.

@dongfangliu
Copy link
Author

Ok,thank you anyway

@dongfangliu
Copy link
Author

Now i find the problem.

It dues to the config file urdfdom-config.cmake in vcpkg-2020.01\installed\x64-windows\share\urdfdom.

The 4th line should be corrected to
set(urdfdom_INCLUDE_DIRS "${CMAKE_CURRENT_LIST_DIR}/../../include" )

@jslee02
Copy link
Member

jslee02 commented Apr 27, 2020

Thank you for looking into the problem. It sounds like the tinyxml location is different when urdfdom is built and DART is built. A potential fix would be change line 4 of urdfdom-config.cmake.in to use find_dependency() so that tinyxml is always correctly found when urdfdom-config.cmake is loaded.

Closing as it looks like this issue should be fixed by urdfdom.

@jslee02
Copy link
Member

jslee02 commented May 2, 2020

Reported to urdfdom: ros/urdfdom#140

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug Indicates an unexpected problem or unintended behavior
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants