-
-
Notifications
You must be signed in to change notification settings - Fork 469
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
Fix Windows compilation #1568
Fix Windows compilation #1568
Conversation
Many thanks @traversaro for the hint /cc @wolfv |
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 for reporting this issue. However, I think it should be fine to remove the EXPORT
declaration completely. All other symbols going into the plugin lib are declared without any such EXPORT
as well. The only symbol using it is InteractiveMarker
, which is also used by the main binary directly.
Could you please try and adapt the PR if so? I cannot build on Windows myself.
@seanyen: Would it be possible to add a Windows CI build to avoid such issues in future?
Any help is highly welcome.
class RVIZ_EXPORT ScrewVisual | ||
class RVIZ_DEFAULT_PLUGIN_EXPORT ScrewVisual |
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.
Here as well.
Hi, thanks for getting back to me so quickly. I tried removing the export first and it didn't work for some reason. Unfortunately I won't have time to look at this again. Many other files probably have unnecessary exports, too - I suggest to merge this PR to get a working compilation and open an issue to clean the exports up. What do you think? |
PS: on https://github.com/RoboStack/ros-noetic we'll have regular builds on Win, OSX and Linux. |
Maybe, you forgot the one export in declaration of WrenchVisual?
No, that's the only plugin source declaring a superfluent export. To keep the code clean, I would prefer to fix it immediately.
Would be nice to have CI integrated here with github... |
If you're interested I can push a GitHub action that uses |
Hi @wolfv, I'm not used to github actions yet. Don't you need to pay for that service? If not, a full stack of github actions to build rviz on Windows would be highly welcome. |
nope, github actions for open source is free. Azure Pipelines is also free & open source and both are pretty similar. Travis CI is the one which, unfortunately, recently changed their business model to disallow "unlimited" use for opensource projects. |
Good to know. Need to learn about its configuration now...
Yeah, they did. But they already reverted that decision for open-source: https://blog.travis-ci.com/oss-announcement |
This is good to be merged. |
Thanks for testing the latest commit on Windows. |
* Remove EXPORTs for ScrewVisual, ScrewDisplay
* Remove EXPORTs for ScrewVisual, ScrewDisplay
The recent commit dd1779e broke compilation on Windows. This PR fixes this issue.
Compiler error without this patch:
With patch compilation succeeds.