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

When installing the blockfactory and any blockfactory-based plugin in the /usr prefix ideally no enviromental variable would need to be set to find the plugins #34

Open
traversaro opened this issue Jan 29, 2019 · 4 comments

Comments

@traversaro
Copy link
Member

@traversaro wrote:

Additionally, w.r.t. to debian packaging, it would be good if the default installation prefix was in the search path even without the need to define BLOCKFACTORY_PLUGIN_PATH, so that if in the future we have deb package of BlockFactory + WB-Toolbox, they will just work out of the box without the need to define any env variable.

@diegoferigo replied:

This is more complicated. If we install plugins in one of the default linker folder, we get the same problems due to LD_LIBRARY_PATH we recently discussed in robotology/ycm-cmake-modules#199 and robotology/robotology-superbuild#97.

@traversaro
Copy link
Member Author

This is more complicated. If we install plugins in one of the default linker folder, we get the same problems due to LD_LIBRARY_PATH we recently discussed in robotology/ycm-cmake-modules#199 and robotology/robotology-superbuild#97.

I am a bit confused. If when installing in /usr on Ubuntu the default installation folder for blockfactory plugins is /usr/lib/x86_64-linux-gnu/blockfactory , why searching it this directory by default there will create any LD_LIBRARY_PATH related problem?

@traversaro
Copy link
Member Author

traversaro commented Jan 29, 2019

Anyhow, until we address packaging this is not really important.

@traversaro
Copy link
Member Author

Now I perhaps remember that in YARP we discussed in the past to add some kind of logic "search in the same prefix in which YARP it is installed", but we had problems related to how to implement this in a relocatable way, and you needed to obtained the path to the YARP libraries, and this was not possible/easy on Windows.

@diegoferigo
Copy link
Member

Considering that I never had yet direct experience of packaging archives for debian-based distros, I drop here few links that might be useful in the future:

Probably I didn't explain myself good enough, and probably I might have been wrong. Assuming we are installing the library in /usr/lib/x86_64-linux-gnu/blockfactory, I do not honestly know if the linker checks by default all the subfolders inside /usr/lib/x86_64-linux-gnu. However, also in this case, including in the deb package a proper conf file installed inside /etc/ld.so.conf.d/ might suffice.

I'm not sure, but in light of this maybe also with the current situation installing in the system lib directory would not need any edit to the environment variables.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants