-
Notifications
You must be signed in to change notification settings - Fork 498
setup.sh script is not relocatable #3056
Comments
I have tried adapting @traversaro's patch in scpeters@6ba45ba and will submit a pull request after some testing |
from a slack conversation: it looks like using also, we could try to check for errors by checking if |
I've proposed adding a relocatable |
Refactor setup.sh to set the `GAZEBO_*_PATH` environment variables relative to a path specified in `GAZEBO_INSTALL_PREFIX` environment variable (defaulting to the current behavior of setting path variables relative to the configure-time install prefix if `GAZEBO_INSTALL_PREFIX` is empty or unset). Add a relocatable setup.bash script that uses bash-specific syntax to detect the folder containing the `setup.*sh` scripts, sets `GAZEBO_INSTALL_PREFIX` relative to that folder, and then sources setup.sh. Reference setup.bash in console messages and test script instead of setup.sh. Fixes #3056. Signed-off-by: Steve Peters <scpeters@openrobotics.org>
As noted in #2782 (comment) and #2782 (comment), the
setup.sh
script installed with gazebo is not relocatable, as it contains install paths hard-coded at configure time. It looks like @traversaro has already done the hard work of making setup.sh relocatable in https://github.com/robotology/robotology-superbuild-dependencies-vcpkg/blob/master/scripts/setup-gazebo.shSo we could resolve this ticket by porting that script to this repository.
The text was updated successfully, but these errors were encountered: