VMware下的qt/e环境问题

发布于 2022-09-09 16:03:35 字数 4268 浏览 20 评论 2

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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

静赏你的温柔 2022-09-13 00:07:06

我没弄个LZ这东西,但我看这句话还是应该好好去google一下
/opt/host/armv4l/armv4l-unknown-linux/bin/ld: Dwarf Error: Could not find abbrev number 46.

荒岛晴空 2022-09-10 03:41:59

怎么没人给回答呢?没有碰到过这样的问题还是问题比价简单?

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文