VMware下的qt/e环境问题
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
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我没弄个LZ这东西,但我看这句话还是应该好好去google一下
/opt/host/armv4l/armv4l-unknown-linux/bin/ld: Dwarf Error: Could not find abbrev number 46.
怎么没人给回答呢?没有碰到过这样的问题还是问题比价简单?