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

Use relative install paths for plugin shared libraries #616

Merged
merged 4 commits into from
Apr 10, 2024

Conversation

azeey
Copy link
Contributor

@azeey azeey commented Apr 4, 2024

🦟 Bug fix

Summary

Fixes an error when building https://github.com/gazebo-release/gz_physics_vendor/ in the ROS buildfarm.

Similar to gazebosim/gz-tools#137

Checklist

  • Signed all commits for DCO
  • Added tests
  • Updated documentation (as needed)
  • Updated migration guide (as needed)
  • Consider updating Python bindings (if the library has them)
  • codecheck passed (See contributing)
  • All tests passed (See test coverage)
  • While waiting for a review on your PR, please help review another open pull request to support the maintainers

Note to maintainers: Remember to use Squash-Merge and edit the commit message to match the pull request summary while retaining Signed-off-by messages.

@github-actions github-actions bot added the 🎵 harmonic Gazebo Harmonic label Apr 4, 2024
Copy link

codecov bot commented Apr 4, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 78.35%. Comparing base (2bc19ad) to head (ede7dd5).
Report is 1 commits behind head on gz-physics7.

❗ Current head ede7dd5 differs from pull request most recent head a141a08. Consider uploading reports for the commit a141a08 to get more accurate results

Additional details and impacted files
@@             Coverage Diff              @@
##           gz-physics7     #616   +/-   ##
============================================
  Coverage        78.35%   78.35%           
============================================
  Files              140      140           
  Lines             8079     8079           
============================================
  Hits              6330     6330           
  Misses            1749     1749           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@traversaro
Copy link
Contributor

Note that GZ_PHYSICS_ENGINE_INSTALL_DIR is used in many places (see https://github.com/search?q=repo%3Agazebosim%2Fgz-physics%20GZ_PHYSICS_ENGINE_INSTALL_DIR%20&type=code), and I am not sure if all those uses work fine with GZ_PHYSICS_ENGINE_INSTALL_DIR being a non-absolute path (in particular see

#define GZ_PHYSICS_ENGINE_INSTALL_DIR _Pragma ("GCC warning \"'GZ_PHYSICS_ENGINE_INSTALL_DIR' macro is deprecated, use gz::physics::getEngineInstallDir() function instead. \"") "${GZ_PHYSICS_ENGINE_INSTALL_DIR}"
, that even if deprecated is a public macro). Perhaps it could make sense to change only the places where DESTINATION argument of install to use GZ_PHYSICS_ENGINE_RELATIVE_INSTALL_DIR instead of GZ_PHYSICS_ENGINE_INSTALL_DIR ?

@azeey
Copy link
Contributor Author

azeey commented Apr 9, 2024

Note that GZ_PHYSICS_ENGINE_INSTALL_DIR is used in many places (see https://github.com/search?q=repo%3Agazebosim%2Fgz-physics%20GZ_PHYSICS_ENGINE_INSTALL_DIR%20&type=code), and I am not sure if all those uses work fine with GZ_PHYSICS_ENGINE_INSTALL_DIR being a non-absolute path (in particular see

#define GZ_PHYSICS_ENGINE_INSTALL_DIR _Pragma ("GCC warning \"'GZ_PHYSICS_ENGINE_INSTALL_DIR' macro is deprecated, use gz::physics::getEngineInstallDir() function instead. \"") "${GZ_PHYSICS_ENGINE_INSTALL_DIR}"

, that even if deprecated is a public macro). Perhaps it could make sense to change only the places where DESTINATION argument of install to use GZ_PHYSICS_ENGINE_RELATIVE_INSTALL_DIR instead of GZ_PHYSICS_ENGINE_INSTALL_DIR ?

Good catch. I've used GZ_PHYSICS_ENGINE_RELATIVE_INSTALL_DIR in a141a08.

@azeey azeey merged commit 0fe1ae9 into gz-physics7 Apr 10, 2024
8 checks passed
@azeey azeey deleted the azeey/rel_paths branch April 10, 2024 15:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🎵 harmonic Gazebo Harmonic
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

None yet

5 participants