gazebosim / gazebosim/sdformat

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

Open
#198 5 comments 0 reactions 0 assignees View on GitHub
bug major
Dominant language
C++
Stars
216
Forks
125
Avg merge
1d 14h
Merged PRs (30d)
14

Description

**Original report ([archived issue](https://osrf-migration.github.io/sdformat-gh-pages/#!/osrf/sdformat/issues/198)) by Steve Peters (Bitbucket: [Steven Peters](https://bitbucket.org/%7B2ccfed09-18b8-4921-8d58-15ef01092802%7D/), GitHub: [scpeters](https://github.com/scpeters)).**

----------------------------------------
As reported here: https://github.com/osrf/homebrew-simulation/issues/479

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

* https://github.com/osrf/sdformat/blob/f3ab32d891e619861c513a86e9c10f72cac480bf/src/SDF.cc#L90:103
* https://github.com/osrf/sdformat/blob/f3ab32d891e619861c513a86e9c10f72cac480bf/cmake/sdf_config.h.in#L30:31

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

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.