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

OGRE_PLUGIN_PATH definable at build time #1274

Merged
merged 1 commit into from
Mar 7, 2019

Conversation

cratliff
Copy link
Contributor

@cratliff cratliff commented Aug 1, 2018

I was attempting the package rviz in a snap and had difficulty because of OGRE_PLUGIN_PATH. The OGRE_PLUGIN_PATH would take a path pointing to a build directory from the package config. This allows OGRE_PLUGIN_PATH to be specified as a cmake arg if the plugin path is known to be different on the system rviz is installed from the one it is built on.

@cratliff
Copy link
Contributor Author

@wjwwood

Is there any feedback on this PR? If there is additional work to get this merged in I'm happy to do it, but am unsure of what that might be.

The affects a few people who are trying to package rviz in a snap:
https://forum.snapcraft.io/t/encountering-problems-when-packaging-rviz/2659

I would imaging this affects other similar packaging utilities like flatpack too. Being able to package rviz in something like a snap is useful. I'm currently building rviz and custom messages into a snap so I can distribute it to techs and support who need to interact with a robot, but for whom having to checkout and compile the correct version themselves would be onerous. Without this change it is difficult to build a working snap as the OGRE plugin path gets hardcoded to a path not guaranteed to be on the end system.

As an alternative, would making a change that allows rviz to search for the library at runtime be more welcome? I would think using OGRE_PLUGING_PATH when defined, but the current hardcoded value as a default if it is not, is good.

@rhaschke rhaschke merged commit 1ff0e36 into ros-visualization:kinetic-devel Mar 7, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants