天嵌 ARM开发社区

 找回密码
 注册
查看: 1484|回复: 3

Qt应用程序的问题

[复制链接]
Nicholas3388 发表于 2010-2-8 22:29:42 | 显示全部楼层 |阅读模式
照着光盘里的《Qt程序开发完全手册》里第一个Qt程序的开发的步骤做到最后一步输入make后出现下面的错误,请问这是什么错误,怎么修改?

Makefile:132: warning: overriding commands for target `moc_first.cpp'
Makefile:129: warning: ignoring old commands for target `moc_first.cpp'
g++  -o /bin/first first.o main.o first.o moc_first.o moc_first.o  -L/lib -L/usr/lib/qt-3.1/lib -lqpe -lqtopia -lqte
first.o(.text+0x0): In function `first::first[not-in-charge](QWidget*, char const*, unsigned)':
: multiple definition of `first::first[not-in-charge](QWidget*, char const*, unsigned)'
first.o(.text+0x0): first defined here
first.o(.text+0x398): In function `first::first[in-charge](QWidget*, char const*, unsigned)':
: multiple definition of `first::first[in-charge](QWidget*, char const*, unsigned)'
first.o(.text+0x398): first defined here
first.o(.text+0x730): In function `first::~first [not-in-charge]()':
: multiple definition of `first::~first [not-in-charge]()'
first.o(.text+0x730): first defined here
first.o(.text+0x754): In function `first::~first [in-charge]()':
: multiple definition of `first::~first [in-charge]()'
first.o(.text+0x754): first defined here
first.o(.text+0x778): In function `first::~first [in-charge deleting]()':
: multiple definition of `first::~first [in-charge deleting]()'
first.o(.text+0x778): first defined here
first.o(.text+0x7a4): In function `first::event(QEvent*)':
: multiple definition of `first::event(QEvent*)'
first.o(.text+0x7a4): first defined here
first.o(.text+0x880): In function `first::user_botton()':
: multiple definition of `first::user_botton()'
first.o(.text+0x880): first defined here
moc_first.o(.text+0x0): In function `first::className() const':
: multiple definition of `first::className() const'
moc_first.o(.text+0x0): first defined here
moc_first.o(.data+0x0): multiple definition of `first::metaObj'
moc_first.o(.data+0x0): first defined here
moc_first.o(.text+0xc): In function `first::initMetaObject()':
: multiple definition of `first::initMetaObject()'
moc_first.o(.text+0xc): first defined here
moc_first.o(.text+0xcc): In function `first::staticMetaObject()':
: multiple definition of `first::staticMetaObject()'
moc_first.o(.text+0xcc): first defined here
moc_first.o(.text+0x74): In function `first::tr(char const*)':
: multiple definition of `first::tr(char const*)'
moc_first.o(.text+0x74): first defined here
moc_first.o(.text+0xa0): In function `first::tr(char const*, char const*)':
: multiple definition of `first::tr(char const*, char const*)'
moc_first.o(.text+0xa0): first defined here
/usr/bin/ld: cannot find -lqpe
collect2: ld returned 1 exit status
make: *** [/bin/first] Error 1
亚瑟王 发表于 2010-2-10 16:21:12 | 显示全部楼层
根据错误信息,你看手册不仔细哦,Makefile文件中的重复信息要删掉,手册里面讲了这点的。
 楼主| Nicholas3388 发表于 2010-2-11 11:55:02 | 显示全部楼层
3Q,这个问题解决了但是x86仿真的时候,为什么应用程序运行不了呢?如下图:
亚瑟王 发表于 2010-3-1 12:10:01 | 显示全部楼层
看不到截图、
您需要登录后才可以回帖 登录 | 注册

本版积分规则

关闭

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

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

GMT+8, 2024-10-6 16:21 , Processed in 1.038020 second(s), 19 queries .

Powered by Discuz! X3.4 Licensed

Copyright © 2001-2020, Tencent Cloud.

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