草庐IT

c++ - 将 qwt 从 5.2.1 更新到 6.0.0

coder 2024-02-20 原文

我正在尝试将 qwt 从 5.2.1 版本更新到 6.0.0 版本,但是当我编译我的程序时,我得到了一个错误列表。 请帮忙。

这是错误列表:

src/../include/../include/scalepicker.h:7:33: error: qwt_double_interval.h: No such file or directory
In file included from src/plot.cpp:13:
src/../include/qwt_plot_rescaler.h:14:29: error: qwt_double_rect.h: No such file or directory
In file included from src/../include/plot.h:9,
                 from src/plot.cpp:1:
src/../include/plotintervalcurve.h:28: error: expected ‘,’ or ‘...’ before ‘<’ token
src/../include/plotintervalcurve.h:28: error: ISO C++ forbids declaration of ‘QwtArray’ with no type
src/../include/plotintervalcurve.h:51: error: ‘QwtDoubleRect’ does not name a type
In file included from src/../include/../../../include/../Glass/include/glass.h:8,
                 from src/../include/../../../include/globGlass.h:5,
                 from src/../include/splinedata.h:6,
                 from src/../include/plot.h:10,
                 from src/plot.cpp:1:
src/../include/../../../include/../Glass/include/../../Utils/include/geometry.h:125: warning: unused parameter ‘a’
src/../include/../../../include/../Glass/include/../../Utils/include/geometry.h:125: warning: unused parameter ‘b’
In file included from src/../include/plot.h:10,
                 from src/plot.cpp:1:
src/../include/splinedata.h:36: error: ‘QwtDoubleInterval’ does not name a type
src/../include/splinedata.h:53: error: ‘QwtDoubleInterval’ does not name a type
src/../include/splinedata.h:54: error: ‘QwtDoubleInterval’ has not been declared
In file included from src/../include/plot.h:11,
                 from src/plot.cpp:1:
src/../include/../include/scalepicker.h:21: error: ‘QwtDoubleInterval’ has not been declared
In file included from src/plot.cpp:1:
src/../include/plot.h:37: error: ‘QwtDoubleInterval’ does not name a type
src/../include/plot.h:50: error: ISO C++ forbids declaration of ‘QwtArray’ with no type
src/../include/plot.h:50: error: expected ‘;’ before ‘<’ token
src/../include/plot.h:56: error: ‘QwtDoubleInterval’ has not been declared
In file included from src/plot.cpp:12:
src/../include/plotspectrogram.h:22: error: expected ‘,’ or ‘...’ before ‘&’ token
src/../include/plotspectrogram.h:22: error: ISO C++ forbids declaration of ‘QwtDoubleRect’ with no type
In file included from src/plot.cpp:13:
src/../include/qwt_plot_rescaler.h:96: error: expected ‘,’ or ‘...’ before ‘&’ token
src/../include/qwt_plot_rescaler.h:96: error: ISO C++ forbids declaration of ‘QwtDoubleInterval’ with no type
src/../include/qwt_plot_rescaler.h:97: error: ‘QwtDoubleInterval’ does not name a type
src/../include/qwt_plot_rescaler.h:113: error: ‘QwtDoubleInterval’ does not name a type
src/../include/qwt_plot_rescaler.h:116: error: ‘QwtDoubleInterval’ does not name a type
src/../include/qwt_plot_rescaler.h:121: error: ‘QwtDoubleInterval’ has not been declared
src/../include/qwt_plot_rescaler.h:124: error: ‘QwtDoubleInterval’ does not name a type
src/../include/qwt_plot_rescaler.h:125: error: ‘QwtDoubleInterval’ does not name a type
In file included from src/plot.cpp:14:
src/../include/spectrogramzoomer.h:24: error: expected ‘,’ or ‘...’ before ‘&’ token
src/../include/spectrogramzoomer.h:24: error: ISO C++ forbids declaration of ‘QwtDoubleRect’ with no type
src/../include/spectrogramzoomer.h:25: error: ‘virtual void SpectrogramZoomer::zoom(int)’ cannot be overloaded
src/../include/spectrogramzoomer.h:24: error: with ‘virtual void SpectrogramZoomer::zoom(int)’
src/../include/spectrogramzoomer.h:27: error: expected ‘,’ or ‘...’ before ‘&’ token
src/../include/spectrogramzoomer.h:27: error: ISO C++ forbids declaration of ‘QwtDoubleRect’ with no type
src/../include/spectrogramzoomer.h:28: error: ‘void SpectrogramZoomer::reallyZoom(int)’ cannot be overloaded
src/../include/spectrogramzoomer.h:27: error: with ‘void SpectrogramZoomer::reallyZoom(int)’
src/../include/spectrogramzoomer.h:31: error: expected ‘,’ or ‘...’ before ‘&’ token
src/../include/spectrogramzoomer.h:31: error: ISO C++ forbids declaration of ‘QwtDoubleRect’ with no type
src/../include/spectrogramzoomer.h:32: error: ‘void SpectrogramZoomer::requestZoom(int)’ cannot be overloaded
src/../include/spectrogramzoomer.h:31: error: with ‘void SpectrogramZoomer::requestZoom(int)’
src/../include/spectrogramzoomer.h:37: error: expected ‘,’ or ‘...’ before ‘&’ token
src/../include/spectrogramzoomer.h:37: error: ISO C++ forbids declaration of ‘QwtDoublePoint’ with no type
src/plot.cpp: In constructor ‘Plot::Plot(SplineData*, QwtText, bool, QWidget*)’:
src/plot.cpp:62: error: ‘class PlotSpectrogram’ has no member named ‘setConrecAttribute’
src/plot.cpp:76: error: no matching function for call to ‘PlotSpectrogram::setColorMap(QwtLinearColorMap&)’
/usr/local/qwt-6.0.0/lib/qwt.framework/Versions/6/Headers/qwt_plot_spectrogram.h:67: note: candidates are: void QwtPlotSpectrogram::setColorMap(QwtColorMap*)
src/plot.cpp:78: error: no matching function for call to ‘PlotSpectrogram::setColorMap(QwtLinearColorMap&)’
/usr/local/qwt-6.0.0/lib/qwt.framework/Versions/6/Headers/qwt_plot_spectrogram.h:67: note: candidates are: void QwtPlotSpectrogram::setColorMap(QwtColorMap*)
src/plot.cpp:81: error: no matching function for call to ‘PlotSpectrogram::setData(SplineData&)’
/usr/local/qwt-6.0.0/lib/qwt.framework/Versions/6/Headers/qwt_plot_spectrogram.h:63: note: candidates are: void QwtPlotSpectrogram::setData(QwtRasterData*)
src/plot.cpp:86: error: ‘QwtValueList’ was not declared in this scope
src/plot.cpp:86: error: expected `;' before ‘contourLevels’
src/plot.cpp:88: error: request for member ‘range’ in ‘((Plot*)this)->Plot::d_spectrogram->PlotSpectrogram::<anonymous>.QwtPlotSpectrogram::data()’, which is of non-class type ‘QwtRasterData*’
src/plot.cpp:89: error: request for member ‘range’ in ‘((Plot*)this)->Plot::d_spectrogram->PlotSpectrogram::<anonymous>.QwtPlotSpectrogram::data()’, which is of non-class type ‘QwtRasterData*’
src/plot.cpp:92: error: ‘contourLevels’ was not declared in this scope
src/plot.cpp:96: error: ‘contourLevels’ was not declared in this scope
src/plot.cpp:100: error: ‘contourLevels’ was not declared in this scope
src/plot.cpp:104: error: request for member ‘range’ in ‘((Plot*)this)->Plot::d_spectrogram->PlotSpectrogram::<anonymous>.QwtPlotSpectrogram::data()’, which is of non-class type ‘QwtRasterData*’
src/plot.cpp:106: error: request for member ‘range’ in ‘((Plot*)this)->Plot::d_spectrogram->PlotSpectrogram::<anonymous>.QwtPlotSpectrogram::data()’, which is of non-class type ‘QwtRasterData*’
src/plot.cpp:107: error: request for member ‘range’ in ‘((Plot*)this)->Plot::d_spectrogram->PlotSpectrogram::<anonymous>.QwtPlotSpectrogram::data()’, which is of non-class type ‘QwtRasterData*’
src/plot.cpp:112: error: request for member ‘boundingRect’ in ‘((Plot*)this)->Plot::d_spectrogram->PlotSpectrogram::<anonymous>.QwtPlotSpectrogram::data()’, which is of non-class type ‘QwtRasterData*’
src/plot.cpp:113: error: request for member ‘boundingRect’ in ‘((Plot*)this)->Plot::d_spectrogram->PlotSpectrogram::<anonymous>.QwtPlotSpectrogram::data()’, which is of non-class type ‘QwtRasterData*’
src/plot.cpp:115: error: request for member ‘boundingRect’ in ‘((Plot*)this)->Plot::d_spectrogram->PlotSpectrogram::<anonymous>.QwtPlotSpectrogram::data()’, which is of non-class type ‘QwtRasterData*’
src/plot.cpp:116: error: request for member ‘boundingRect’ in ‘((Plot*)this)->Plot::d_spectrogram->PlotSpectrogram::<anonymous>.QwtPlotSpectrogram::data()’, which is of non-class type ‘QwtRasterData*’
src/plot.cpp:144: error: ‘class PointSaver’ has no member named ‘setSelectionFlags’
src/plot.cpp:144: error: ‘PointSelection’ is not a member of ‘QwtPicker’
src/plot.cpp:144: error: ‘ClickSelection’ is not a member of ‘QwtPicker’
src/plot.cpp: In member function ‘void Plot::update(Spline*)’:
src/plot.cpp:205: error: no matching function for call to ‘PlotSpectrogram::setData(SplineData&)’
/usr/local/qwt-6.0.0/lib/qwt.framework/Versions/6/Headers/qwt_plot_spectrogram.h:63: note: candidates are: void QwtPlotSpectrogram::setData(QwtRasterData*)
src/plot.cpp:208: error: ‘QwtValueList’ was not declared in this scope
src/plot.cpp:208: error: expected `;' before ‘contourLevels’
src/plot.cpp:209: error: request for member ‘range’ in ‘((Plot*)this)->Plot::d_spectrogram->PlotSpectrogram::<anonymous>.QwtPlotSpectrogram::data()’, which is of non-class type ‘QwtRasterData*’
src/plot.cpp:210: error: request for member ‘range’ in ‘((Plot*)this)->Plot::d_spectrogram->PlotSpectrogram::<anonymous>.QwtPlotSpectrogram::data()’, which is of non-class type ‘QwtRasterData*’
src/plot.cpp:214: error: ‘contourLevels’ was not declared in this scope
src/plot.cpp:218: error: ‘contourLevels’ was not declared in this scope
src/plot.cpp:222: error: ‘contourLevels’ was not declared in this scope
src/plot.cpp:224: error: request for member ‘range’ in ‘((Plot*)this)->Plot::d_spectrogram->PlotSpectrogram::<anonymous>.QwtPlotSpectrogram::data()’, which is of non-class type ‘QwtRasterData*’
src/plot.cpp:228: error: request for member ‘range’ in ‘((Plot*)this)->Plot::d_spectrogram->PlotSpectrogram::<anonymous>.QwtPlotSpectrogram::data()’, which is of non-class type ‘QwtRasterData*’
src/plot.cpp:229: error: request for member ‘range’ in ‘((Plot*)this)->Plot::d_spectrogram->PlotSpectrogram::<anonymous>.QwtPlotSpectrogram::data()’, which is of non-class type ‘QwtRasterData*’
src/plot.cpp: In member function ‘void Plot::update(Spline*, double)’:
src/plot.cpp:239: error: no matching function for call to ‘PlotSpectrogram::setData(SplineData&)’
/usr/local/qwt-6.0.0/lib/qwt.framework/Versions/6/Headers/qwt_plot_spectrogram.h:63: note: candidates are: void QwtPlotSpectrogram::setData(QwtRasterData*)
src/plot.cpp:242: error: ‘QwtValueList’ was not declared in this scope
src/plot.cpp:242: error: expected `;' before ‘contourLevels’
src/plot.cpp:243: error: request for member ‘range’ in ‘((Plot*)this)->Plot::d_spectrogram->PlotSpectrogram::<anonymous>.QwtPlotSpectrogram::data()’, which is of non-class type ‘QwtRasterData*’
src/plot.cpp:244: error: request for member ‘range’ in ‘((Plot*)this)->Plot::d_spectrogram->PlotSpectrogram::<anonymous>.QwtPlotSpectrogram::data()’, which is of non-class type ‘QwtRasterData*’
src/plot.cpp:248: error: ‘contourLevels’ was not declared in this scope
src/plot.cpp:252: error: ‘contourLevels’ was not declared in this scope
src/plot.cpp:256: error: ‘contourLevels’ was not declared in this scope
src/plot.cpp:258: error: request for member ‘range’ in ‘((Plot*)this)->Plot::d_spectrogram->PlotSpectrogram::<anonymous>.QwtPlotSpectrogram::data()’, which is of non-class type ‘QwtRasterData*’
src/plot.cpp:262: error: request for member ‘range’ in ‘((Plot*)this)->Plot::d_spectrogram->PlotSpectrogram::<anonymous>.QwtPlotSpectrogram::data()’, which is of non-class type ‘QwtRasterData*’
src/plot.cpp:263: error: request for member ‘range’ in ‘((Plot*)this)->Plot::d_spectrogram->PlotSpectrogram::<anonymous>.QwtPlotSpectrogram::data()’, which is of non-class type ‘QwtRasterData*’
src/plot.cpp: In member function ‘void Plot::update(Glass*)’:
src/plot.cpp:274: error: no matching function for call to ‘PlotSpectrogram::setData(SplineData&)’
/usr/local/qwt-6.0.0/lib/qwt.framework/Versions/6/Headers/qwt_plot_spectrogram.h:63: note: candidates are: void QwtPlotSpectrogram::setData(QwtRasterData*)
src/plot.cpp:277: error: ‘QwtValueList’ was not declared in this scope
src/plot.cpp:277: error: expected `;' before ‘contourLevels’
src/plot.cpp:278: error: request for member ‘range’ in ‘((Plot*)this)->Plot::d_spectrogram->PlotSpectrogram::<anonymous>.QwtPlotSpectrogram::data()’, which is of non-class type ‘QwtRasterData*’
src/plot.cpp:279: error: request for member ‘range’ in ‘((Plot*)this)->Plot::d_spectrogram->PlotSpectrogram::<anonymous>.QwtPlotSpectrogram::data()’, which is of non-class type ‘QwtRasterData*’
src/plot.cpp:283: error: ‘contourLevels’ was not declared in this scope
src/plot.cpp:287: error: ‘contourLevels’ was not declared in this scope
src/plot.cpp:292: error: ‘contourLevels’ was not declared in this scope
src/plot.cpp:294: error: request for member ‘range’ in ‘((Plot*)this)->Plot::d_spectrogram->PlotSpectrogram::<anonymous>.QwtPlotSpectrogram::data()’, which is of non-class type ‘QwtRasterData*’
src/plot.cpp:298: error: request for member ‘range’ in ‘((Plot*)this)->Plot::d_spectrogram->PlotSpectrogram::<anonymous>.QwtPlotSpectrogram::data()’, which is of non-class type ‘QwtRasterData*’
src/plot.cpp:299: error: request for member ‘range’ in ‘((Plot*)this)->Plot::d_spectrogram->PlotSpectrogram::<anonymous>.QwtPlotSpectrogram::data()’, which is of non-class type ‘QwtRasterData*’
src/plot.cpp: In member function ‘void Plot::update(Glass*, double)’:
src/plot.cpp:308: error: no matching function for call to ‘PlotSpectrogram::setData(SplineData&)’
/usr/local/qwt-6.0.0/lib/qwt.framework/Versions/6/Headers/qwt_plot_spectrogram.h:63: note: candidates are: void QwtPlotSpectrogram::setData(QwtRasterData*)
src/plot.cpp:311: error: ‘QwtValueList’ was not declared in this scope
src/plot.cpp:311: error: expected `;' before ‘contourLevels’
src/plot.cpp:312: error: request for member ‘range’ in ‘((Plot*)this)->Plot::d_spectrogram->PlotSpectrogram::<anonymous>.QwtPlotSpectrogram::data()’, which is of non-class type ‘QwtRasterData*’
src/plot.cpp:313: error: request for member ‘range’ in ‘((Plot*)this)->Plot::d_spectrogram->PlotSpectrogram::<anonymous>.QwtPlotSpectrogram::data()’, which is of non-class type ‘QwtRasterData*’
src/plot.cpp:317: error: ‘contourLevels’ was not declared in this scope
src/plot.cpp:321: error: ‘contourLevels’ was not declared in this scope
src/plot.cpp:326: error: ‘contourLevels’ was not declared in this scope
src/plot.cpp:328: error: request for member ‘range’ in ‘((Plot*)this)->Plot::d_spectrogram->PlotSpectrogram::<anonymous>.QwtPlotSpectrogram::data()’, which is of non-class type ‘QwtRasterData*’
src/plot.cpp:332: error: request for member ‘range’ in ‘((Plot*)this)->Plot::d_spectrogram->PlotSpectrogram::<anonymous>.QwtPlotSpectrogram::data()’, which is of non-class type ‘QwtRasterData*’
src/plot.cpp:333: error: request for member ‘range’ in ‘((Plot*)this)->Plot::d_spectrogram->PlotSpectrogram::<anonymous>.QwtPlotSpectrogram::data()’, which is of non-class type ‘QwtRasterData*’
src/plot.cpp: At global scope:
src/plot.cpp:342: error: variable or field ‘update’ declared void
src/plot.cpp:342: error: ‘QwtDoubleInterval’ was not declared in this scope
src/plot.cpp:49: warning: ‘attachedL’ defined but not used
src/plot.cpp:50: warning: ‘attachedR’ defined but not used

最佳答案

QwtDoubleInterval、QwtDoubleRect、QwtValueList 和 QwtArray 在 Qwt 6 中被弃用。

它们仍然被定义,但在 qwt_compat.h 中定义为别名/typedef .

关于c++ - 将 qwt 从 5.2.1 更新到 6.0.0,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7091553/

有关c++ - 将 qwt 从 5.2.1 更新到 6.0.0的更多相关文章

  1. ruby-on-rails - 如何验证 update_all 是否实际在 Rails 中更新 - 2

    给定这段代码defcreate@upgrades=User.update_all(["role=?","upgraded"],:id=>params[:upgrade])redirect_toadmin_upgrades_path,:notice=>"Successfullyupgradeduser."end我如何在该操作中实际验证它们是否已保存或未重定向到适当的页面和消息? 最佳答案 在Rails3中,update_all不返回任何有意义的信息,除了已更新的记录数(这可能取决于您的DBMS是否返回该信息)。http://ar.ru

  2. ruby-on-rails - 如何优雅地重启 thin + nginx? - 2

    我的瘦服务器配置了nginx,我的ROR应用程序正在它们上运行。在我发布代码更新时运行thinrestart会给我的应用程序带来一些停机时间。我试图弄清楚如何优雅地重启正在运行的Thin实例,但找不到好的解决方案。有没有人能做到这一点? 最佳答案 #Restartjustthethinserverdescribedbythatconfigsudothin-C/etc/thin/mysite.ymlrestartNginx将继续运行并代理请求。如果您将Nginx设置为使用多个上游服务器,例如server{listen80;server

  3. ruby-on-rails - 使用 rails 4 设计而不更新用户 - 2

    我将应用程序升级到Rails4,一切正常。我可以登录并转到我的编辑页面。也更新了观点。使用标准View时,用户会更新。但是当我添加例如字段:name时,它​​不会在表单中更新。使用devise3.1.1和gem'protected_attributes'我需要在设备或数据库上运行某种更新命令吗?我也搜索过这个地方,找到了许多不同的解决方案,但没有一个会更新我的用户字段。我没有添加任何自定义字段。 最佳答案 如果您想允许额外的参数,您可以在ApplicationController中使用beforefilter,因为Rails4将参数

  4. ruby - 使用 `+=` 和 `send` 方法 - 2

    如何将send与+=一起使用?a=20;a.send"+=",10undefinedmethod`+='for20:Fixnuma=20;a+=10=>30 最佳答案 恐怕你不能。+=不是方法,而是语法糖。参见http://www.ruby-doc.org/docs/ProgrammingRuby/html/tut_expressions.html它说Incommonwithmanyotherlanguages,Rubyhasasyntacticshortcut:a=a+2maybewrittenasa+=2.你能做的最好的事情是:

  5. objective-c - 在设置 Cocoa Pods 和安装 Ruby 更新时出错 - 2

    我正在尝试为我的iOS应用程序设置cocoapods但是当我执行命令时:sudogemupdate--system我收到错误消息:当前已安装最新版本。中止。当我进入cocoapods的下一步时:sudogeminstallcocoapods我在MacOS10.8.5上遇到错误:ERROR:Errorinstallingcocoapods:cocoapods-trunkrequiresRubyversion>=2.0.0.我在MacOS10.9.4上尝试了同样的操作,但出现错误:ERROR:Couldnotfindavalidgem'cocoapods'(>=0),hereiswhy:U

  6. ruby - 如何计算 Liquid 中的变量 +1 - 2

    我对如何计算通过{%assignvar=0%}赋值的变量加一完全感到困惑。这应该是最简单的任务。到目前为止,这是我尝试过的:{%assignamount=0%}{%forvariantinproduct.variants%}{%assignamount=amount+1%}{%endfor%}Amount:{{amount}}结果总是0。也许我忽略了一些明显的东西。也许有更好的方法。我想要存档的只是获取运行的迭代次数。 最佳答案 因为{{incrementamount}}将输出您的变量值并且不会影响{%assign%}定义的变量,我

  7. ruby-on-rails - Rails Associations 的更新方法是什么? - 2

    这太简单了,太荒谬了,我在任何地方都找不到关于它的任何信息,包括API文档和Rails源代码:我有一个:belongs_to关联,我开始理解当您没有关联时您在Controller中调用的正常模型方法与您有关联时调用的方法略有不同。例如,我的关联在创建Controller操作时运行良好:@user=current_user@building=Building.new(params[:building])respond_todo|format|if@user.buildings.create(params[:building])#etcetera但我找不到关于更新如何工作的文档:@user

  8. arrays - Ruby 数组 += vs 推送 - 2

    我有一个数组数组,想将元素附加到子数组。+=做我想做的,但我想了解为什么push不做。我期望的行为(并与+=一起工作):b=Array.new(3,[])b[0]+=["apple"]b[1]+=["orange"]b[2]+=["frog"]b=>[["苹果"],["橙子"],["Frog"]]通过推送,我将推送的元素附加到每个子数组(为什么?):a=Array.new(3,[])a[0].push("apple")a[1].push("orange")a[2].push("frog")a=>[[“苹果”、“橙子”、“Frog”]、[“苹果”、“橙子”、“Frog”]、[“苹果”、“

  9. += 的 Ruby 方法 - 2

    有没有办法让Ruby能够做这样的事情?classPlane@moved=0@x=0defx+=(v)#thisiserror@x+=v@moved+=1enddefto_s"moved#{@moved}times,currentxis#{@x}"endendplane=Plane.newplane.x+=5plane.x+=10putsplane.to_s#moved2times,currentxis15 最佳答案 您不能在Ruby中覆盖复合赋值运算符。任务在内部处理。您应该覆盖+,而不是+=。plane.a+=b与plane.a=

  10. ruby-on-rails - OSX Yosemite 更新破坏了 pow.cx - 2

    升级到OSXYosemite后,我现有的pow.cx安装不起作用。升级到最新的pow.cx无效。通过事件监视器重新启动它也没有成功。 最佳答案 卸载(!)并重新安装解决了这个问题。curlget.pow.cx/uninstall.sh|shcurlget.pow.cx|sh 关于ruby-on-rails-OSXYosemite更新破坏了pow.cx,我们在StackOverflow上找到一个类似的问题: https://stackoverflow.com/q

随机推荐