-
Notifications
You must be signed in to change notification settings - Fork 6.5k
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
[sdformat13] new port #31280
[sdformat13] new port #31280
Conversation
I got this error:
|
logs: |
Note: I will be converting your PR to draft status. If you fixed the issue with CI, please reactivate it. |
@Adela0814 Can you explain why this error is happening? Is it come from vcpkg? |
@autoantwort @dg0yt @traversaro |
Grep for |
I think it is a bug upstream in vcpkg in the case |
It added on the cmake: |
It by design. Can we compile it only with static? |
To be clear, AFAIU it is a bug in upstream which becomes visible in vcpkg's static triplets.
I don't see how this is "by design". It should be fixed upstream, and the same patch can be applied in the vcpkg port for the current release. |
I meant it by design that vcpkg turn off the shared libs in Linux compilation. |
Oh, I don't think this is by design, but just the historic choice of the "supported triplet" |
@traversaro But it also fail on windows that have shared libs on. Why? |
The new gz port are still not mature.
|
@dg0yt Can you fix it? |
I guess for Windows, urdfdom needs ros/urdfdom#169. |
ok. I will appreciate your fix. |
@dg0yt windows is still fail after update urdfdom with the patch you suggested: |
The remaining build error is a bug in the project's files and unrelated to windows. |
The error is the one described in #31280 (comment) , nothing related to the use of |
@traversaro |
|
Do you know how to solve it? |
That's the point I'm trying to make: I know how to use CMake. But once projects start to use their own language of macros and functions, it becomes tedious to find out where it breaks and how to fix it. We don't even have a CMake call stack to start from because the error shows too late. |
Ahh, sorry I misunderstdood, that's totally correct.
I am happy to give you the hints to understand how to fix it. To be honest I am not interest at the moment in building sdformat13 as part of vcpkg and in static mode, so I prefer not to prepare the PR and submit it. The |
Okay, I managed to add the install line. I will send a PR for this port to @talregev, adding a few more changes. |
Note: I will be converting your PR to draft status. When you respond, please revert to "ready for review". That way, I can be aware that you've responded since you can't modify the tags. |
ca7d5d6
to
6007700
Compare
@talregev I'm a bit confused, does |
we already have this discussions on gz-ports: The conclusion was to add new gz-port while maintain all the old other port with their version number. |
6007700
to
ac60cf7
Compare
@traversaro Will you consider the next version of sdformat will support vcpkg in sperate static and dynamic mode? |
@Adela0814 adding
Please read comments here: I want to revert this change. |
I am not a mantainer of sdformat, but I guess that if you submit a PR based on #31280 (comment) explaining in which case it is useful I guess the mantainers would be happy to review it. |
If I knew how to solve it, I was create a PR and a patch. I am lacking the knowledge how to do it. |
If you open an (even incomplete) PR on sdformat it may be easier to iterate on your solution and provide you suggestions. |
I will copy the solution from here, and I will happy for your guidance and suggestion and test it |
@Adela0814 I will happy to hear your comment about the build fail. |
* Fix cmake config export * Cleanup * Add usage * Update versions
ac60cf7
to
46edb34
Compare
@Adela0814 It now compile also on windows. |
@Adela0814 Thank you for your approve. |
Thank you! |
Add sdformat13 port:
find_package
calls are REQUIRED, are satisfied byvcpkg.json
's declared dependencies, or disabled with CMAKE_DISABLE_FIND_PACKAGE_Xxxvcpkg.json
matches what upstream says.vcpkg.json
matches what upstream says../vcpkg x-add-version --all
and committing the result.