Skip to content

Remove build RUNPATH from installed libGrid3D.so (backport #676)#745

Open
nim65s wants to merge 1 commit intogazebosim:gz-gui8from
nim65s:backport-676-gz-gui-8
Open

Remove build RUNPATH from installed libGrid3D.so (backport #676)#745
nim65s wants to merge 1 commit intogazebosim:gz-gui8from
nim65s:backport-676-gz-gui-8

Conversation

@nim65s
Copy link
Copy Markdown

@nim65s nim65s commented Feb 20, 2026

Hi,

This backport #676 to gz-gui8


Installs libGrid3D.so (a legacy alias for libGridConfig.so) by copying the already installed libGridConfig.so using install(CODE ...) instead of install(FILES ...). This ensures the build directory RUNPATH is correctly stripped, matching other installed plugins.

Fixes #627

@nim65s nim65s requested a review from jennuine as a code owner February 20, 2026 13:56
@github-actions github-actions bot added the 🎵 harmonic Gazebo Harmonic label Feb 20, 2026
Installs libGrid3D.so (a legacy alias for libGridConfig.so)
by copying the already installed libGridConfig.so using install(CODE ...)
instead of install(FILES ...). This ensures the build directory
RUNPATH is correctly stripped, matching other installed plugins.

Fixes gazebosim#627

Signed-off-by: shashank1300 <shashankrao1307@gmail.com>
Co-authored-by: Addisu Z. Taddese <addisu@openrobotics.org>
Signed-off-by: Guilhem Saurel <guilhem.saurel@laas.fr>
@nim65s nim65s force-pushed the backport-676-gz-gui-8 branch from c154c9c to 88e23a9 Compare February 20, 2026 13:59
@nim65s nim65s changed the title Backport #676 to gz-gui-8 Backport #676 to gz-gui8 Feb 20, 2026
@iche033 iche033 changed the title Backport #676 to gz-gui8 Remove build RUNPATH from installed libGrid3D.so (backport #676) Feb 21, 2026
@github-project-automation github-project-automation bot moved this from Inbox to In review in Core development Feb 21, 2026
Copy link
Copy Markdown

@azeey azeey left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is actually causing a cmake warning on homebrew and windows

CMake Warning at src/plugins/grid_config/cmake_install.cmake:68 (message):
  Source file for Grid3D (legacy plugin) copy not found, skipping copy:
  /opt/homebrew/Cellar/gz-gui8/HEAD/lib/gz-gui-8/plugins/libGridConfig.so
Call Stack (most recent call first):
  src/plugins/cmake_install.cmake:45 (include)
  src/cmake_install.cmake:43 (include)
  cmake_install.cmake:77 (include)

https://build.osrfoundation.org/job/gz_gui-pr-clowin/97/consoleText
https://build.osrfoundation.org/job/gz_gui-ci-pr_any-homebrew-arm64/35/consoleText

Not sure why it's not being caught by Jenkins, but I've also seen it in gz-gui9.

Comment on lines +13 to +16
if(EXISTS \"\${CMAKE_INSTALL_PREFIX}/${GZ_GUI_PLUGIN_RELATIVE_INSTALL_DIR}/libGridConfig.so\")
execute_process(COMMAND ${CMAKE_COMMAND} -E copy_if_different
\"\${CMAKE_INSTALL_PREFIX}/${GZ_GUI_PLUGIN_RELATIVE_INSTALL_DIR}/libGridConfig.so\"
\"\${CMAKE_INSTALL_PREFIX}/${GZ_GUI_PLUGIN_RELATIVE_INSTALL_DIR}/libGrid3D.so\")
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think using ${CMAKE_SHARED_LIBRARY_SUFFIX} might what's needed to avoid the warning on homebrew.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🎵 harmonic Gazebo Harmonic

Projects

Status: In review

Development

Successfully merging this pull request may close these issues.

4 participants