-
Notifications
You must be signed in to change notification settings - Fork 486
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 build with qwt 6.2, deprecation warning #3047
Conversation
Compilation is broken with qwt 6.2 without this fix. Signed-off-by: Steven Peters <scpeters@openrobotics.org>
Signed-off-by: Steven Peters <scpeters@openrobotics.org>
To validate the PR, I spawned a build with this patch against qwt 6.2.0 in conda-forge/gazebo-feedstock#87, let's see how it goes. |
Apparently even with this patches the compilation fails against qwt 6.2 :
|
It seems that |
looks like the renaming occurred in https://sourceforge.net/p/qwt/git/ci/52a7bf84059ac9fe7601e12a525673790bb80e94/ |
In qwt 6.2, they have renamed all member variables from d_* to m_*, so create a helper function to minimize the ifdefs we will need to support both versions. Signed-off-by: Steven Peters <scpeters@openrobotics.org>
Some member variables in qwt_series_data were renamed in 6.2.0 Signed-off-by: Steven Peters <scpeters@openrobotics.org>
I've added some helper functions and |
I updated the patch in conda-forge PR with the latest modification: conda-forge/gazebo-feedstock@a26e8c3 . |
With the latest patch, the build is still failing:
it seems that |
yes, you mentioned that it is now |
Signed-off-by: Steven Peters <scpeters@openrobotics.org>
updated in 284cb02 |
Cool, I tried it in conda-forge/gazebo-feedstock@3bde7c7 and it seems to work fine. |
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.
Compiling works for me now in 6.2!
* IncrementalPlot.cc: include qwt_scale_map.h * Use Qt::MiddleButton to fix deprecation warning * PlotCurve: add private helper for renamed members In qwt 6.2, they have renamed all member variables, so create helper functions to minimize the ifdefs we will need to support both versions. * PlotCurve: add ifdefs to support qwt 6.2.0 Signed-off-by: Steven Peters <scpeters@openrobotics.org>
* IncrementalPlot.cc: include qwt_scale_map.h * Use Qt::MiddleButton to fix deprecation warning * PlotCurve: add private helper for renamed members In qwt 6.2, they have renamed all member variables, so create helper functions to minimize the ifdefs we will need to support both versions. * PlotCurve: add ifdefs to support qwt 6.2.0 Signed-off-by: Steven Peters <scpeters@openrobotics.org>
This is a quick fix for #3046, which will prevent compilation failures with qwt 6.2, which may be merged into homebrew-core soon.
This also fixes a deprecation warning by using
Qt::MiddleButton
instead ofQt::MidButton
, which has been apparently commented as deprecated since Qt 4.7.0 ( qt/qtbase@16e546e ), so the recommended API should be usable on all our supported platforms.