You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
libGrid3D.so has RUNPATH set, while other plugins don't.
Discussion
I came across this problem when building Gazebo with the Nix package manager in this project. Nix builds are automatically checked for inappropriate RUNPATH and fail if one is detected.
The reason why RUNPATH is set for libGrid3D.so is that it just a copy of libGridConfig.so, but installed differently (see here). Due to the fact that it is installed as a file rather than a library, CMake doesn't remove RUNPATH setting during installation.
I tried to figure out, how to convince CMake to install a library under a different name and remove RUNPATH settings, however I didn't find anything straightforward (except building the library twice). RENAME keyword is ignored when installing library targets and I don't see a way to do post-installation changes.
We can work around this in the downstream project, but fixing it here might benefit other users too.
The text was updated successfully, but these errors were encountered:
Environment
gz=gui8
)Description
libGrid3D.so
is not installed withRUNPATH
set.libGrid3D.so
is hasRUNPATH
set.Steps to reproduce
Run the following and observe the output:
libGrid3D.so
has RUNPATH set, while other plugins don't.Discussion
I came across this problem when building Gazebo with the Nix package manager in this project. Nix builds are automatically checked for inappropriate RUNPATH and fail if one is detected.
The reason why
RUNPATH
is set forlibGrid3D.so
is that it just a copy oflibGridConfig.so
, but installed differently (see here). Due to the fact that it is installed as a file rather than a library, CMake doesn't removeRUNPATH
setting during installation.I tried to figure out, how to convince CMake to install a library under a different name and remove
RUNPATH
settings, however I didn't find anything straightforward (except building the library twice).RENAME
keyword is ignored when installing library targets and I don't see a way to do post-installation changes.We can work around this in the downstream project, but fixing it here might benefit other users too.
The text was updated successfully, but these errors were encountered: