天嵌 ARM开发社区

 找回密码
 注册
查看: 3280|回复: 11

TQ2440 第一个应用程序问题

[复制链接]
glorywings 发表于 2011-3-10 00:42:28 | 显示全部楼层 |阅读模式
我按照天嵌的手册一步一步来做,用x86 qiopia2.2.0来做

到最后make的时候发现出现下面的问题

我刚接触arm,很多东西都不会

错误信息如下,希望能得到大家的帮助,解决问题.....

[root@glorywings first]# make
g++ -c -pipe -DQWS -fno-exceptions -fno-rtti -Wall -W -O2 -DNO_DEBUG -I/opt/EmbedSky/Qte/x86-qtopia-2.2.0/qt2/include -I/opt/EmbedSky/Qte/x86-qtopia-2.2.0/qtopia/include -o first.o first.cpp
g++ -c -pipe -DQWS -fno-exceptions -fno-rtti -Wall -W -O2 -DNO_DEBUG -I/opt/EmbedSky/Qte/x86-qtopia-2.2.0/qt2/include -I/opt/EmbedSky/Qte/x86-qtopia-2.2.0/qtopia/include -o main.o main.cpp
g++ -c -pipe -DQWS -fno-exceptions -fno-rtti -Wall -W -O2 -DNO_DEBUG -I/opt/EmbedSky/Qte/x86-qtopia-2.2.0/qt2/include -I/opt/EmbedSky/Qte/x86-qtopia-2.2.0/qtopia/include -o moc_first.o moc_first.cpp
moc_first.cpp:15:34: 错误:private/qucomextra_p.h:没有那个文件或目录
moc_first.cpp:17:2: 错误:#error "This file was generated using the moc from 3.3.8b. It"
moc_first.cpp:18:2: 错误:#error "cannot be used with the include files from this version of Qt."
moc_first.cpp:19:2: 错误:#error "(The moc has changed too much.)"
moc_first.cpp:28: 错误:‘QMetaObjectCleanUp’没有命名一个类型
moc_first.cpp: In static member function ‘static QString first::tr(const char*, const char*)’:
moc_first.cpp:34: 错误:‘DefaultCodec’不是‘QApplication’的成员
moc_first.cpp: At global scope:
moc_first.cpp:39: 错误:成员函数‘QString first::trUtf8(const char*, const char*)’未在类‘first’中声明
moc_first.cpp: In static member function ‘static QMetaObject* first::staticMetaObject()’:
moc_first.cpp:55: 错误:‘QUMethod’没有命名一个类型
moc_first.cpp:56: 错误:‘QUMethod’没有命名一个类型
moc_first.cpp:58: 错误:‘slot_0’在此作用域中尚未声明
moc_first.cpp:59: 错误:‘slot_1’在此作用域中尚未声明
moc_first.cpp:60: 错误:‘const QMetaData’的初始值设定项太多
moc_first.cpp:60: 错误:‘const QMetaData’的初始值设定项太多
moc_first.cpp:69: 错误:对‘QMetaObject::new_metaobject(const char [6], QMetaObject*&, const QMetaData [2], int, int, int, int, int)’的调用没有匹配的函数
/opt/EmbedSky/Qte/x86-qtopia-2.2.0/qt2/include/qmetaobject.h:197: 附注:备选为: static QMetaObject* QMetaObject::new_metaobject(const char*, const char*, QMetaData*, int, QMetaData*, int, QClassInfo*, int)
/opt/EmbedSky/Qte/x86-qtopia-2.2.0/qt2/include/qmetaobject.h:200: 附注:         static QMetaObject* QMetaObject::new_metaobject(const char*, const char*, QMetaData*, int, QMetaData*, int)
moc_first.cpp:70: 错误:‘cleanUp_first’在此作用域中尚未声明
moc_first.cpp: At global scope:
moc_first.cpp:74: 错误:成员函数‘void* first::qt_cast(const char*)’未在类‘first’中声明
moc_first.cpp:81: 错误:‘QUObject’未声明
moc_first.cpp:81: 错误:成员函数‘bool first::qt_invoke(int, int*)’未在类‘first’中声明
moc_first.cpp:92: 错误:‘QUObject’未声明
moc_first.cpp:92: 错误:成员函数‘bool first::qt_emit(int, int*)’未在类‘first’中声明
make: *** [moc_first.o] 错误 1
[root@glorywings first]#
 楼主| glorywings 发表于 2011-3-12 12:11:11 | 显示全部楼层
:'(  会的朋友帮忙解答一下~~~~~~~~
天嵌_support1 发表于 2011-3-12 14:22:20 | 显示全部楼层
编译测试程序之前,尽量先编译一下QTe的源码,因为它长生一些依赖的库和工具
 楼主| glorywings 发表于 2011-3-12 14:34:35 | 显示全部楼层
问题已解决....例程中部分有错误,改正后可以了
shufexiu 发表于 2011-3-12 15:00:07 | 显示全部楼层
:)
liuyuzdgs 发表于 2011-3-23 11:29:47 | 显示全部楼层
我也遇到了同样的问题  应该改哪里呢 ??
workhard123 发表于 2011-11-12 19:14:27 | 显示全部楼层
到底该哪里呢 会的哥们 吼一声
workhard123 发表于 2011-11-12 19:17:50 | 显示全部楼层
到底该哪里 会的给下意见吧
亚瑟王 发表于 2011-11-14 15:48:10 | 显示全部楼层
7楼的把你的错误信息贴出来吧。
流星国度 发表于 2011-12-7 09:56:10 | 显示全部楼层
:):):):):):):):):)
shenzhou654321 发表于 2012-9-10 05:57:43 | 显示全部楼层
moc_first.cpp:15:34: 错误:private/qucomextra_p.h:没有那个文件或目录
moc_first.cpp:17:2: 错误:#error "This file was generated using the moc from 3.3.6. It"
moc_first.cpp:18:2: 错误:#error "cannot be used with the include files from this version of Qt."
moc_first.cpp:19:2: 错误:#error "(The moc has changed too much.)"
moc_first.cpp:28: 错误:‘QMetaObjectCleanUp’ 没有命名一个类型
moc_first.cpp: In static member function ‘static QString first::tr(const char*, const char*)’:
moc_first.cpp:34: 错误:‘DefaultCodec’ 不是 ‘QApplication’ 的成员
moc_first.cpp: At global scope:
moc_first.cpp:39: 错误:成员函数 ‘QString first::trUtf8(const char*, const char*)’ 未在类 ‘first’ 中声明
moc_first.cpp: In member function ‘QString first::trUtf8(const char*, const char*)’:
moc_first.cpp:42: 错误:‘UnicodeUTF8’ 不是 ‘QApplication’ 的成员
moc_first.cpp: In static member function ‘static QMetaObject* first::staticMetaObject()’:
moc_first.cpp:55: 错误:‘QUMethod’ 没有命名一个类型
moc_first.cpp:56: 错误:‘QUMethod’ 没有命名一个类型
moc_first.cpp:58: 错误:‘slot_0’ 在此作用域中尚未声明
moc_first.cpp:59: 错误:‘slot_1’ 在此作用域中尚未声明
moc_first.cpp:60: 错误:‘const QMetaData’ 的初始值设定项太多
moc_first.cpp:60: 错误:‘const QMetaData’ 的初始值设定项太多
moc_first.cpp:69: 错误:对 ‘QMetaObject::new_metaobject(const char [6], QMetaObject*&, const QMetaData [2], int, int, int, int, int)’ 的调用没有匹配的函数
/opt/EmbedSky/Qte/x86-qtopia-2.2.0/qt2/include/qmetaobject.h:197: 附注:备选为: static QMetaObject* QMetaObject::new_metaobject(const char*, const char*, QMetaData*, int, QMetaData*, int, QClassInfo*, int)
/opt/EmbedSky/Qte/x86-qtopia-2.2.0/qt2/include/qmetaobject.h:200: 附注:         static QMetaObject* QMetaObject::new_metaobject(const char*, const char*, QMetaData*, int, QMetaData*, int)
moc_first.cpp:70: 错误:‘cleanUp_first’ 在此作用域中尚未声明
moc_first.cpp: At global scope:
moc_first.cpp:74: 错误:成员函数 ‘void* first::qt_cast(const char*)’ 未在类 ‘first’ 中声明
moc_first.cpp: In member function ‘void* first::qt_cast(const char*)’:
moc_first.cpp:78: 错误:‘qt_cast’ 不是 ‘QWidget’ 的成员
moc_first.cpp: At global scope:
moc_first.cpp:81: 错误:‘QUObject’ 未声明
moc_first.cpp:81: 错误:成员函数 ‘bool first::qt_invoke(int, int*)’ 未在类 ‘first’ 中声明
moc_first.cpp: In member function ‘bool first::qt_invoke(int, int*)’:
moc_first.cpp:83: 错误:‘class QMetaObject’ 没有名为 ‘slotOffset’ 的成员
moc_first.cpp:87: 错误:‘qt_invoke’ 不是 ‘QWidget’ 的成员
moc_first.cpp: At global scope:
moc_first.cpp:92: 错误:‘QUObject’ 未声明
moc_first.cpp:92: 错误:成员函数 ‘bool first::qt_emit(int, int*)’ 未在类 ‘first’ 中声明
moc_first.cpp: In member function ‘bool first::qt_emit(int, int*)’:
moc_first.cpp:94: 错误:‘qt_emit’ 不是 ‘QWidget’ 的成员
make: *** [moc_first.o] 错误 1
shenzhou654321 发表于 2012-9-10 05:58:16 | 显示全部楼层
我也遇到了这个问题,求助啊,亲们,怎么解决的啊
您需要登录后才可以回帖 登录 | 注册

本版积分规则

关闭

i.MX8系列ARM cortex A53 M4 工控板上一条 /1 下一条

Archiver|手机版|小黑屋|天嵌 嵌入式开发社区 ( 粤ICP备11094220号 )

GMT+8, 2024-5-16 19:25 , Processed in 1.046875 second(s), 18 queries .

Powered by Discuz! X3.4

Copyright © 2001-2020, Tencent Cloud.

快速回复 返回顶部 返回列表