-
Notifications
You must be signed in to change notification settings - Fork 316
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
[runSofa] FIX PluginRepository initialization #502
Conversation
[ci-build] [with-scene-tests] |
Looks awesome, this fix looks like a dream to me! |
Is not the problem that the PluginRepository should contain "../lib" instead of "./" on gcc ? I do not remember where libraries are installed on this platform ( ./bin ? ../lib ? ). If ../lib I guess there is already built in trick (maybe in CMake) so that the LD_LIBRARY_PATH ( or RPATH ) is properly set.
Or is there some legitimate reason for doing otherwise ? |
@guparan: ultimately what I wanted to achieve with this PR was to roll back to ca0402d in terms of what the PluginRepository contains. I made a mistake when it came to the content of the PluginRepository except for the windows platform which is my most common development environment. |
In f93e2b9 I wanted to restore the default behavior of ca0402d which had PluginRepository initialised with
These paths are relative and are compatible both with a build tree and an install tree. Prior to f93e2b9 the PluginRepository was empty by default, leaving all the executables the responsibility to fill it with these values. Behavior which was changed multiple times compared to ca0402d for a reason yet to be explained. The side effect this change introduced was the requirement to have every unit test executable which attempts to load a plugin to explicitly fill the PluginRepository with the paths where the libraries are located with respect to the executable. This requirement was covered by having most of the unit tests depend on SofaGTest which initialize these default paths for you, so that test scenes that use a The other thing I mentionned in the comment #502 (comment) is that there should be only one place to store the paths for possible plugin locations so either the method |
I mean the only thing that could be considered is whether on platforms like gcc the PluginRepository should contain both the working directory and |
I understand that and I agree but I'm confused because that's NOT what you were doing here with |
This is exactly what I mentionned when I said "I strongly believe that would these paths have been properly restored by f93e2b9 (my bad)..." |
Also further above "I made a mistake when it came to the content of the PluginRepository except for the windows platform which is my most common development environment." |
Ok it's all clear now, many thanks for your time :-) |
This should fix failing scene tests due to issofa_plugin merge
Failures were due to wrong
plugin_list.conf
path implying no plugin loading.Added some output to understand better were this list is loaded from (especially in case of failure).
This PR:
Reviewers will merge only if all these checks are true.