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

sdformat install not relocatable: sdf::findFile searches original install location #198

Open
osrf-migration opened this issue Sep 4, 2018 · 4 comments
Labels
bug Something isn't working major

Comments

@osrf-migration
Copy link

Original report (archived issue) by Steve Peters (Bitbucket: Steven Peters, GitHub: scpeters).


As reported here: osrf/homebrew-simulation#479

The issue is that the install path searched by sdf::findFile is the install location at compile time:

We would need to change the logic of sdf::findFile to make it fully relocatable.

@osrf-migration
Copy link
Author

Original comment by Jeongseok Lee (Bitbucket: jlee02, GitHub: jslee02).


DART also had the same issue and adopted the workaround of using the environment variable, which I believe sdformat already does. One possible solution I can think of now is searching typical install locations (like find_package does), which are platform dependent.

@osrf-migration
Copy link
Author

Original comment by Steve Peters (Bitbucket: Steven Peters, GitHub: scpeters).


Yes, SDF already checks the SDF_PATH environment variable:

but it does take an extra step to set that.

@osrf-migration
Copy link
Author

Original comment by Silvio Traversaro (Bitbucket: traversaro).


Relevant issue (I was not finding it anymore, so I think it is useful to link it here): https://osrf-migration.github.io/sdformat-gh-pages/#!/osrf/sdformat/issues/141/embed-sdf-xml-files-into-library (#141) .

@osrf-migration osrf-migration added major bug Something isn't working labels Apr 11, 2020
@traversaro
Copy link
Contributor

xref: gazebosim/gz-sim#626 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working major
Projects
None yet
Development

No branches or pull requests

2 participants