QT Source code compile Error
I am trying to compile my QT4.8.6 Source code in raspberry pi jessie.
I got an error like this
mainwindow.cpp:972:25: error: ‘class QwtDial’ has no member named ‘setRange’ Settings_FOOTPEDAL->setRange(Sett_FP_Xaxis_CALIBER,Sett_FP_Yaxis_CALIBER,1,1);
my source code compiled successfully in wheezy os qt version is same.
I think the error occurs on qwt lib. I don have an idea how to fix it.
The error occured after changed my header file
//#include </usr/include/qwt/qwt_dial.h> //#include </usr/include/qwt/qwt_dial_needle.h> #include </usr/local/qwt-6.1.0/include/qwt_dial.h> #include </usr/local/qwt-6.1.0/include/qwt_dial_needle.h>
Please help me to fix this problem
@vivekyuvan I guess you used a different Qwt version?
Can you check what Qwt version you have in wheezy and on RaspberryPi?
mainwindow.cpp:972:25: error: ‘class QwtDial’ has no member named ‘setRange’
QwtDial::setRange()was removed in Qwt 6.1.
Your project needs Qwt 6.0. It is not compatible with Qwt 6.1