您的位置:首页 > 编程语言 > Qt开发

编译qte版本的qwt出错问题

2014-05-08 09:50 316 查看
来自:http://www.qtcn.org/bbs/simple/?t30155.html

我把qwt移植到QT4.5中实现了,但是想移植到QtEmbeded-4.50-arm中,编译出错,我的初衷是想把基于qwt开发的QT界面,在 2440开发板上显示,不知道哪位大侠做过,给点指导,这样大家才能更多的进步啊 先谢谢了!!出错信息:

make[1]: 正在进入目录 `/opt/qwt-5.2.1/designer'

compiling qwt_designer_plugin.cpp

qwt_designer_plugin.cpp:17:40: error: QDesignerFormEditorInterface: 没有该文件或目录

qwt_designer_plugin.cpp:18:40: error: QDesignerFormWindowInterface: 没有该文件或目录

qwt_designer_plugin.cpp:19:46: error: QDesignerFormWindowCursorInterface: 没有该文件或目录

qwt_designer_plugin.cpp:20:29: error: QExtensionManager: 没有该文件或目录

In file included from qwt_designer_plugin.cpp:23:

qwt_designer_plugin.h:23:42: error: QDesignerCustomWidgetInterface: 没有该文件或目录

qwt_designer_plugin.h:24:38: error: QDesignerTaskMenuExtension: 没有该文件或目录

qwt_designer_plugin.h:25:29: error: QExtensionFactory: 没有该文件或目录

qwt_designer_plugin.h:32: error: expected class-name before ‘{’ token

qwt_designer_plugin.h:49: error: ‘QDesignerFormEditorInterface’ has not been declared

qwt_designer_plugin.h:66: error: expected class-name before ‘{’ token

qwt_designer_plugin.h:73: error: ‘QDesignerCustomWidgetInterface’ was not declared in this scope

qwt_designer_plugin.h:73: error: template argument 1 is invalid

qwt_designer_plugin.h:76: error: ‘QDesignerCustomWidgetInterface’ was not declared in this scope

qwt_designer_plugin.h:76: error: template argument 1 is invalid

qwt_designer_plugin.h:210: error: expected class-name before ‘{’ token

qwt_designer_plugin.h:214: error: expected `)' before ‘*’ token

qwt_designer_plugin.h:210: warning: ‘class QwtDesignerPlugin::TaskMenuFactory’ has virtual functions but non-virtual destructor

qwt_designer_plugin.h:223: error: expected class-name before ‘{’ token

qwt_designer_plugin.cpp:102: error: variable or field ‘initialize’ declared void

qwt_designer_plugin.cpp:102: error: ‘int QwtDesignerPlugin::CustomWidgetInterface::initialize’ is not a static member of ‘class QwtDesignerPlugin::CustomWidgetInterface’

qwt_designer_plugin.cpp:102: error: ‘QDesignerFormEditorInterface’ was not declared in this scope

qwt_designer_plugin.cpp:102: error: ‘formEditor’ was not declared in this scope

qwt_designer_plugin.cpp:103: error: expected ‘,’ or ‘;’ before ‘{’ token

qwt_designer_plugin.cpp: In constructor ‘QwtDesignerPlugin::CustomWidgetCollectionInterface::CustomWidgetCollectionInterface(QObject*)’:

qwt_designer_plugin.cpp:413: error: request for member ‘append’ in ‘((QwtDesignerPlugin::CustomWidgetCollectionInterface*)this)->QwtDesignerPlugin::CustomWidgetCollectionInterface::d_plugins’, which is of non-class type ‘int’

qwt_designer_plugin.cpp:414: error: request for member ‘append’ in ‘((QwtDesignerPlugin::CustomWidgetCollectionInterface*)this)->QwtDesignerPlugin::CustomWidgetCollectionInterface::d_plugins’, which is of non-class type ‘int’

qwt_designer_plugin.cpp:418: error: request for member ‘append’ in ‘((QwtDesignerPlugin::CustomWidgetCollectionInterface*)this)->QwtDesignerPlugin::CustomWidgetCollectionInterface::d_plugins’, which is of non-class type ‘int’

qwt_designer_plugin.cpp:419: error: request for member ‘append’ in ‘((QwtDesignerPlugin::CustomWidgetCollectionInterface*)this)->QwtDesignerPlugin::CustomWidgetCollectionInterface::d_plugins’, which is of non-class type ‘int’

qwt_designer_plugin.cpp:420: error: request for member ‘append’ in ‘((QwtDesignerPlugin::CustomWidgetCollectionInterface*)this)->QwtDesignerPlugin::CustomWidgetCollectionInterface::d_plugins’, which is of non-class type ‘int’

qwt_designer_plugin.cpp:421: error: request for member ‘append’ in ‘((QwtDesignerPlugin::CustomWidgetCollectionInterface*)this)->QwtDesignerPlugin::CustomWidgetCollectionInterface::d_plugins’, which is of non-class type ‘int’

qwt_designer_plugin.cpp:422: error: request for member ‘append’ in ‘((QwtDesignerPlugin::CustomWidgetCollectionInterface*)this)->QwtDesignerPlugin::CustomWidgetCollectionInterface::d_plugins’, which is of non-class type ‘int’

qwt_designer_plugin.cpp:423: error: request for member ‘append’ in ‘((QwtDesignerPlugin::CustomWidgetCollectionInterface*)this)->QwtDesignerPlugin::CustomWidgetCollectionInterface::d_plugins’, which is of non-class type ‘int’

qwt_designer_plugin.cpp:424: error: request for member ‘append’ in ‘((QwtDesignerPlugin::CustomWidgetCollectionInterface*)this)->QwtDesignerPlugin::CustomWidgetCollectionInterface::d_plugins’, which is of non-class type ‘int’

qwt_designer_plugin.cpp:425: error: request for member ‘append’ in ‘((QwtDesignerPlugin::CustomWidgetCollectionInterface*)this)->QwtDesignerPlugin::CustomWidgetCollectionInterface::d_plugins’, which is of non-class type ‘int’

qwt_designer_plugin.cpp:428: error: request for member ‘append’ in ‘((QwtDesignerPlugin::CustomWidgetCollectionInterface*)this)->QwtDesignerPlugin::CustomWidgetCollectionInterface::d_plugins’, which is of non-class type ‘int’

qwt_designer_plugin.cpp: At global scope:

qwt_designer_plugin.cpp:431: error: ‘QDesignerCustomWidgetInterface’ was not declared in this scope

qwt_designer_plugin.cpp:431: error: template argument 1 is invalid

qwt_designer_plugin.cpp:437: error: expected `)' before ‘*’ token

qwt_designer_plugin.cpp: In member function ‘QObject* QwtDesignerPlugin::TaskMenuFactory::createExtension(QObject*, const QString&, QObject*) const’:

qwt_designer_plugin.cpp:445: error: ‘QDesignerTaskMenuExtension’ was not declared in this scope

qwt_designer_plugin.cpp:445: error: ‘Q_TYPEID’ was not declared in this scope

qwt_designer_plugin.cpp:457: error: ‘QExtensionFactory’ has not been declared

qwt_designer_plugin.cpp: In member function ‘void QwtDesignerPlugin::TaskMenuExtension::applyProperties(const QString&)’:

qwt_designer_plugin.cpp:509: error: ‘QDesignerFormWindowInterface’ was not declared in this scope

qwt_designer_plugin.cpp:509: error: ‘formWindow’ was not declared in this scope

qwt_designer_plugin.cpp:510: error: ‘QDesignerFormWindowInterface’ is not a class or namespace

make[1]: *** [obj/qwt_designer_plugin.o] 错误 1

make[1]:正在离开目录 `/opt/qwt-5.2.1/designer'

make: *** [sub-designer-make_default-ordered] 错误 2

问题已解决,交叉编译的时候在qwt的文件夹下,在qwtconfig.pri文件中注释掉#CONFIG += QwtDesigner即可。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐