VMware下的qt/e环境问题
时间:2010-12-20
来源:互联网
VM下的系统是redhat9。我按网上的blog安装完qt/e环境,qt(2.3.2)和qte(2.3.7)都能正常安装了,arm_linux环境下make错误:编译简单的helloworld.cpp出错,我重新安装过几次环境,还是没能解决,下面是出错信息:望高手给点指点
armv4l-unknown-linux-g++ -c -pipe -DQWS -fno-exceptions -fno-rtti -Wall -W -O2 -DNO_DEBUG -I/home/qt-2.3.7//include -o helloword.o helloword.cpp
armv4l-unknown-linux-g++ -o helloword helloword.o -L/home/qt-2.3.7//lib -L/home/qt-2.3.7//lib -lm -lts -lqte
/opt/host/armv4l/armv4l-unknown-linux/bin/ld: Dwarf Error: Could not find abbrev number 46.
/home/qt-2.3.7//lib/libqte.so(*ABS*+0x517444): multiple definition of `_DYNAMIC'/opt/host/armv4l/armv4l-unknown-linux/lib/crti.o(.dynamic+0x0): first defined here
/home/qt-2.3.7//lib/libqte.so: In function `_init':
/home/qt-2.3.7//lib/libqte.so(.init+0x0): multiple definition of `_init'
/opt/host/armv4l/armv4l-unknown-linux/lib/crti.o(.init+0x0): first defined here
/home/qt-2.3.7//lib/libqte.so: In function `_edata':
qdom.cpp(*ABS*+0x52275
: multiple definition of `__bss_start'
/home/qt-2.3.7//lib/libqte.so: In function `_fini':
/home/qt-2.3.7//lib/libqte.so(.fini+0x0): multiple definition of `_fini'
/opt/host/armv4l/armv4l-unknown-linux/lib/crti.o(.fini+0x0): first defined here
/home/qt-2.3.7//lib/libqte.so: In function `_edata':
qdom.cpp(*ABS*+0x52275
: multiple definition of `_edata'
/home/qt-2.3.7//lib/libqte.so(*ABS*+0x5175a4): multiple definition of `_GLOBAL_OFFSET_TABLE_'
/opt/host/armv4l/armv4l-unknown-linux/lib/crti.o(.got.plt+0x0): first defined here
/home/qt-2.3.7//lib/libqte.so: In function `_end':
qdom.cpp(*ABS*+0x524b5
: multiple definition of `_end'
helloword.o: In function `main':
helloword.o(.text+0x24): undefined reference to `QApplication:
Application(int
&, char **)'
helloword.o(.text+0x24): relocation truncated to fit: R_ARM_PC24 QApplication:
Application(int &, char **)
helloword.o(.text+0x40): undefined reference to `QString:
String(char const *)'helloword.o(.text+0x40): relocation truncated to fit: R_ARM_PC24 QString:
String(char const *)
helloword.o(.text+0x5c): undefined reference to `QLabel:
Label(QString const &, QWidget *, char const *, unsigned int)'
helloword.o(.text+0x5c): relocation truncated to fit: R_ARM_PC24 QLabel:
Label(QString const &, QWidget *, char const *, unsigned int)
helloword.o(.text+0x90): undefined reference to `QStringData::deleteSelf(void)'
helloword.o(.text+0x90): relocation truncated to fit: R_ARM_PC24 QStringData::deleteSelf(void)
helloword.o(.text+0xd4): undefined reference to `QApplication::setMainWidget(QWidget *)'
helloword.o(.text+0xd4): relocation truncated to fit: R_ARM_PC24 QApplication::setMainWidget(QWidget *)
helloword.o(.text+0xec): undefined reference to `QApplication::exec(void)'
helloword.o(.text+0xec): relocation truncated to fit: R_ARM_PC24 QApplication::exec(void)
helloword.o(.text+0xfc): undefined reference to `QApplication::~QApplication(void)'
helloword.o(.text+0xfc): relocation truncated to fit: R_ARM_PC24 QApplication::~QApplication(void)
helloword.o(.text+0x10c): undefined reference to `QString::shared_null'
collect2: ld returned 1 exit status
make: *** [helloword] Error 1
armv4l-unknown-linux-g++ -c -pipe -DQWS -fno-exceptions -fno-rtti -Wall -W -O2 -DNO_DEBUG -I/home/qt-2.3.7//include -o helloword.o helloword.cpp
armv4l-unknown-linux-g++ -o helloword helloword.o -L/home/qt-2.3.7//lib -L/home/qt-2.3.7//lib -lm -lts -lqte
/opt/host/armv4l/armv4l-unknown-linux/bin/ld: Dwarf Error: Could not find abbrev number 46.
/home/qt-2.3.7//lib/libqte.so(*ABS*+0x517444): multiple definition of `_DYNAMIC'/opt/host/armv4l/armv4l-unknown-linux/lib/crti.o(.dynamic+0x0): first defined here
/home/qt-2.3.7//lib/libqte.so: In function `_init':
/home/qt-2.3.7//lib/libqte.so(.init+0x0): multiple definition of `_init'
/opt/host/armv4l/armv4l-unknown-linux/lib/crti.o(.init+0x0): first defined here
/home/qt-2.3.7//lib/libqte.so: In function `_edata':
qdom.cpp(*ABS*+0x52275

/home/qt-2.3.7//lib/libqte.so: In function `_fini':
/home/qt-2.3.7//lib/libqte.so(.fini+0x0): multiple definition of `_fini'
/opt/host/armv4l/armv4l-unknown-linux/lib/crti.o(.fini+0x0): first defined here
/home/qt-2.3.7//lib/libqte.so: In function `_edata':
qdom.cpp(*ABS*+0x52275

/home/qt-2.3.7//lib/libqte.so(*ABS*+0x5175a4): multiple definition of `_GLOBAL_OFFSET_TABLE_'
/opt/host/armv4l/armv4l-unknown-linux/lib/crti.o(.got.plt+0x0): first defined here
/home/qt-2.3.7//lib/libqte.so: In function `_end':
qdom.cpp(*ABS*+0x524b5

helloword.o: In function `main':
helloword.o(.text+0x24): undefined reference to `QApplication:

&, char **)'
helloword.o(.text+0x24): relocation truncated to fit: R_ARM_PC24 QApplication:

helloword.o(.text+0x40): undefined reference to `QString:


helloword.o(.text+0x5c): undefined reference to `QLabel:

helloword.o(.text+0x5c): relocation truncated to fit: R_ARM_PC24 QLabel:

helloword.o(.text+0x90): undefined reference to `QStringData::deleteSelf(void)'
helloword.o(.text+0x90): relocation truncated to fit: R_ARM_PC24 QStringData::deleteSelf(void)
helloword.o(.text+0xd4): undefined reference to `QApplication::setMainWidget(QWidget *)'
helloword.o(.text+0xd4): relocation truncated to fit: R_ARM_PC24 QApplication::setMainWidget(QWidget *)
helloword.o(.text+0xec): undefined reference to `QApplication::exec(void)'
helloword.o(.text+0xec): relocation truncated to fit: R_ARM_PC24 QApplication::exec(void)
helloword.o(.text+0xfc): undefined reference to `QApplication::~QApplication(void)'
helloword.o(.text+0xfc): relocation truncated to fit: R_ARM_PC24 QApplication::~QApplication(void)
helloword.o(.text+0x10c): undefined reference to `QString::shared_null'
collect2: ld returned 1 exit status
make: *** [helloword] Error 1
作者: cunyong 发布时间: 2010-12-20
怎么没人给回答呢?没有碰到过这样的问题还是问题比价简单?
作者: cunyong 发布时间: 2010-12-21
我没弄个LZ这东西,但我看这句话还是应该好好去google一下
/opt/host/armv4l/armv4l-unknown-linux/bin/ld: Dwarf Error: Could not find abbrev number 46.
/opt/host/armv4l/armv4l-unknown-linux/bin/ld: Dwarf Error: Could not find abbrev number 46.
作者: dn833 发布时间: 2010-12-21
相关阅读 更多
热门阅读
-
office 2019专业增强版最新2021版激活秘钥/序列号/激活码推荐 附激活工具
阅读:74
-
如何安装mysql8.0
阅读:31
-
Word快速设置标题样式步骤详解
阅读:28
-
20+道必知必会的Vue面试题(附答案解析)
阅读:37
-
HTML如何制作表单
阅读:22
-
百词斩可以改天数吗?当然可以,4个步骤轻松修改天数!
阅读:31
-
ET文件格式和XLS格式文件之间如何转化?
阅读:24
-
react和vue的区别及优缺点是什么
阅读:121
-
支付宝人脸识别如何关闭?
阅读:21
-
腾讯微云怎么修改照片或视频备份路径?
阅读:28