-
Notifications
You must be signed in to change notification settings - Fork 51
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: Do not assume that ogre plugins have lib prefix on macOS #454
Conversation
(I will fix the DCO as soon as I am back to my laptop : ) ) |
Codecov Report
@@ Coverage Diff @@
## ign-rendering3 #454 +/- ##
==================================================
- Coverage 53.35% 53.35% -0.01%
==================================================
Files 131 131
Lines 12036 12035 -1
==================================================
- Hits 6422 6421 -1
Misses 5614 5614
Continue to review full report at Codecov.
|
Signed-off-by: Silvio <silvio@traversaro.it>
Done. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks, yeah looks like we just didn't port these changes over from gazebo.
Looks good to me.
* ogre: Do not assume that ogre plugins have lib prefix on macOS (#454) Signed-off-by: Silvio <silvio@traversaro.it> * Fix compilation against Ogre 1.10.12 (#390) Signed-off-by: GitHub <noreply@github.com> Co-authored-by: Alejandro Hernández Cordero <ahcorde@gmail.com> Co-authored-by: Jose Luis Rivero <jrivero@osrfoundation.org> * Avoid symbol redefition to fix armel builds (#457) * Avoid symbol redefiniition on armel builds Signed-off-by: Jose Luis Rivero <jrivero@osrfoundation.org> * Fix logic on warning for ogre versions different than 1.9.x (#465) * Fix logic on warning for ogre versions different than 1.9.x Signed-off-by: Jose Luis Rivero <jrivero@osrfoundation.org> * Fix context attributes of glXCreateContextAttribsARB. (#460) Signed-off-by: Hill Ma <hillma@google.com> Co-authored-by: Silvio Traversaro <silvio@traversaro.it> Co-authored-by: Alejandro Hernández Cordero <ahcorde@gmail.com> Co-authored-by: Jose Luis Rivero <jrivero@osrfoundation.org> Co-authored-by: Hill Ma <mahiuchun@users.noreply.github.com>
…osim#454) Signed-off-by: Silvio <silvio@traversaro.it>
…osim#454) Signed-off-by: Silvio <silvio@traversaro.it> Signed-off-by: William Lew <WilliamMilesLew@gmail.com>
This pull request has been mentioned on Gazebo Community. There might be relevant details there: https://community.gazebosim.org/t/new-ignition-releases-2022-01-10/1228/1 |
🦟 Bug fix
Fix most of the test suite when running against ogre with conda-forge-provided dependencies on macOS.
Summary
By default, ogre plugins (the one that are installed under
lib\OGRE\<..>
and that are loaded at runtime) are not built with thelib
prefix on any platform. However, for legacy reasons (see comment in https://github.com/osrf/homebrew-simulation/blame/f27e070d08600f77933f5608df8d413bc99b2206/Formula/ogre1.9.rb#L105) theogre1.9
contained both the deprecatedlib\OGRE\libRenderSystem_GL.dylib
and the recommended to uselib\OGRE\RenderSystem_GL.dylib
. Furthermore, the ignition-rendering ogre plugin only looked for the library starting withlib
on macOS, creating runtime problems on macOS distributions in which ogre did not had the plugin that started withlib
, such as conda-forge, but I imagine that on vcpkg on macOS you could get a similar problem.This PR switches also igniton-rendering to only look for ogre plugins without the
lib
prefix. It is basically the backport of the gazebo commit gazebosim/gazebo-classic@2dd748d#diff-ed2a31885765b0b34495723b06e6ce939e978bb42f5c082a9b93b9fec20257a2 from gazebo8/2017 that was never forward ported to ignition-rendering.As the homebrew bottles provide ogre plugins without the
lib
prefix since at least 5 years (see comment https://github.com/osrf/homebrew-simulation/blame/f27e070d08600f77933f5608df8d413bc99b2206/Formula/ogre1.9.rb#L105) I think there is a low risk of creating problems (even because if anyone has a system in which gazebo classic works fine, then also ignition-rendering will work fine after this PR).Checklist
codecheck
passed (See contributing)Note to maintainers: Remember to use Squash-Merge