编译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即可。
我把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即可。
相关文章推荐
- Android 编译出错版本匹配问题解决办法
- tq2440编译ARM版本的Qt4出错问题解决
- Android高版本SDK生成的Project换用低版本SDK编译出错的问题(不生成R.java)
- Android高版本SDK生成的Project换用低版本SDK编译出错的问题(不生成R.java)
- intellij IDE build出错,无法显示图片,找不到tomcat server,java编译版本过低,异常推出后无法启动项目等常见问题解决
- WINCE编译debug版本出错的问题
- 关于VC++6.0编译高版本DX库出错问题
- Cordova编译Android 22 以上版本,中文目录出错问题的解决办法
- android中导入低版本project可能会遇到的编译问题(转自: Victor@Beijing)
- IEDA Java项目,编译运行,提示“Error:java: 无效的源版本: 1.8”问题
- 如何降低自己的gcc版本--解决ubuntu12.04编译layer的问题
- linux 内核编译:内核配置原理与常见配置问题的解决方法&&内核版本控制解析
- 关于maven工程编译版本的问题
- 使用动态分配和指针操作求 9 个 double 数的乘积(编译通过了,但是运行时出错,谁能帮我看看出了什么问题啊)[em08]
- UNIX网络编程卷1(第三版)关于源程序编译出错问题的详细解决方法
- 关于新建Android Studio项目时默认的编译sdk版本导致的兼容问题
- 高版本的Ubuntu环境下android编译注意的问题
- android 编译问题,java 版本不对
- android 编译出错问题
- Ubuntu 16.04编译Android,make 版本过高导致编译失败的问题