glorywings 发表于 2011-3-10 00:42:28

TQ2440 第一个应用程序问题

我按照天嵌的手册一步一步来做,用x86 qiopia2.2.0来做

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

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

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

# 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 , QMetaObject*&, const QMetaData , 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: *** 错误 1
#

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 , QMetaObject*&, const QMetaData , 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: *** 错误 1

shenzhou654321 发表于 2012-9-10 05:58:16

我也遇到了这个问题,求助啊,亲们,怎么解决的啊
页: [1]
查看完整版本: TQ2440 第一个应用程序问题