QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 1376|回复: 6

难道是版本不对??

[复制链接]
发表于 2005-10-14 09:20:57 | 显示全部楼层 |阅读模式
麻烦高手提示一下,问题所在!
谢谢.
make -C libraries/qtopia
make[1]: Entering directory `/friendly-arm/arm-diao/qtopia-free-1.7.0/src/librar/friendly-arm/arm-diao/ku-qt-2.3.7/lib/libqte.so: undefined reference to `QLocalFs::tr(char const*)'
/friendly-arm/arm-diao/ku-qt-2.3.7/lib/libqte.so: undefined reference to `vtable for QWidget'
/friendly-arm/arm-diao/ku-qt-2.3.7/lib/libqte.so: undefined reference to `vtable for QWSKeyboardHandler'
/friendly-arm/arm-diao/ku-qt-2.3.7/lib/libqte.so: undefined reference to `QApplication::lastWindowClosed()'
/friendly-arm/arm-diao/ku-qt-2.3.7/lib/libqte.so: undefined reference to `QMultiLineEdit::undoAvailable(bool)'
/friendly-arm/arm-diao/ku-qt-2.3.7/lib/libqte.so: undefined reference to `QWSClient::connectionClosed()'
/friendly-arm/arm-diao/ku-qt-2.3.7/lib/libqte.so: undefined reference to `QActionGroup::selected(QAction*)'
/friendly-arm/arm-diao/ku-qt-2.3.7/lib/libqte.so: undefined reference to `vtable for QMotifPlusstyle'
/friendly-arm/arm-diao/qtopia-free-1.7.0/lib/libqpe.so: undefined reference to `QComboBox::className() const'
/friendly-arm/arm-diao/ku-qt-2.3.7/lib/libqte.so: undefined reference to `QIconView::mouseButtonPressed(int, QIconViewItem*, QPoint const&)'
collect2: ld returned 1 exit status
:


..................
/friendly-arm/arm-diao/ku-qt-2.3.7/lib/libqte.so: undefined reference to `vtable for QWidget'
/friendly-arm/arm-diao/ku-qt-2.3.7/lib/libqte.so: undefined reference to `vtable for QWSKeyboardHandler'
/friendly-arm/arm-diao/ku-qt-2.3.7/lib/libqte.so: undefined reference to `QApplication::lastWindowClosed()'
/friendly-arm/arm-diao/ku-qt-2.3.7/lib/libqte.so: undefined reference to `QMultiLineEdit::undoAvailable(bool)'
/friendly-arm/arm-diao/ku-qt-2.3.7/lib/libqte.so: undefined reference to `QWSClient::connectionClosed()'
/friendly-arm/arm-diao/ku-qt-2.3.7/lib/libqte.so: undefined reference to `QActionGroup::selected(QAction*)'
/friendly-arm/arm-diao/ku-qt-2.3.7/lib/libqte.so: undefined reference to `vtable for QMotifPlusstyle'
/friendly-arm/arm-diao/qtopia-free-1.7.0/lib/libqpe.so: undefined reference to `QComboBox::className() const'
/friendly-arm/arm-diao/ku-qt-2.3.7/lib/libqte.so: undefined reference to `QIconView::mouseButtonPressed(int, QIconViewItem*, QPoint const&)'
collect2: ld returned 1 exit status
make[1]: *** [/friendly-arm/arm-diao/qtopia-free-1.7.0/bin/sysinfo] Error 1
make[1]: Leaving directory `/friendly-arm/arm-diao/qtopia-free-1.7.0/src/applications/sysinfo'
make: *** [applications/sysinfo] Error 2
[root@diao src]#





  


--------------------------------------------------------------------------------
 楼主| 发表于 2005-10-14 16:25:36 | 显示全部楼层
有人知道吗?
回复

使用道具 举报

发表于 2005-10-14 18:20:04 | 显示全部楼层
很早先,我编译QT时,也遇到“ld returned 1 exit status”这样的错误,用的也是友善的代码。

后来查到原因是,没有ld所需要的类库,所以你看看会不会也是这个原因造成的?
回复

使用道具 举报

 楼主| 发表于 2005-10-15 15:32:25 | 显示全部楼层
你说的很对。就是找不到ld所需要的类库,我手头有。但是安以下的意思,要设置-rpath or -rpath-link,我不知如何设置或者查看。我也试过将库libuuid.so.1拷到qte/lib或者qtopia/lib但是都没用,问题依然,请高人指点。谢谢

以下是出错信息部分截取:
--More--/usr/local/arm/3.3.2/lib/gcc-lib/arm-linux/3.3.2/../../../../arm-linux/bin/ld: warning: libuuid.so.1, needed by /friendly-arm/arm-diao/qtopia-free-1.7.0/lib/libqtopia.so, not found (try using -rpath or -rpath-link)



以下是详细出错信息

make[1]: Entering directory `/friendly-arm/arm-diao/qtopia-free-1.7.0/src/3rdparty/tools/atd'
make[1]: Nothing to be done for `default'.
make[1]: Leaving directory `/friendly-arm/arm-diao/qtopia-free-1.7.0/src/3rdparty/tools/atd'
make -C applications/addressbook
make[1]: Entering directory `/friendly-arm/arm-diao/qtopia-free-1.7.0/src/applications/addressbook'
cd /friendly-arm/arm-diao/qtopia-free-1.7.0/bin ; ln -sf quicklauncher addressbook
--More--/usr/local/arm/3.3.2/lib/gcc-lib/arm-linux/3.3.2/../../../../arm-linux/bin/ld: warning: libuuid.so.1, needed by /friendly-arm/arm-diao/qtopia-free-1.7.0/lib/libqtopia.so, not found (try using -rpath or -rpath-link)
.obj/linux-arm-g++//memory.o(.text+0x14): In function `MemoryInfo::MemoryInfo(QWidget *, char const *, unsigned int)':
: undefined reference to `QWidget::QWidget(QWidget *, char const *, unsigned int)'
.obj/linux-arm-g++//memory.o(.text+0x44): In function `MemoryInfo::MemoryInfo(QWidget *, char const *, unsigned int)':
: undefined reference to `QVBoxLayout::QVBoxLayout(QWidget *, int, int, char const *)'
.obj/linux-arm-g++//memory.o(.text+0x60): In function `MemoryInfo::MemoryInfo(QWidget *, char const *, unsigned int)':
: undefined reference to `QLabel::QLabel(QWidget *, char const *, unsigned int)'
.obj/linux-arm-g++//memory.o(.text+0x7: In function `MemoryInfo::MemoryInfo(QWidget *, char const *, unsigned int)':
: undefined reference to `QBoxLayout::addWidget(QWidget *, int, int)'
.obj/linux-arm-g++//memory.o(.text+0xb: In function `MemoryInfo::MemoryInfo(QWidget *, char const *, unsigned int)':
: undefined reference to `QString::makeSharedNull(void)'
回复

使用道具 举报

发表于 2005-10-17 11:43:18 | 显示全部楼层
我似乎记得将类库放到arm-linux的lib下面再编译就可以了的。

我翻了一下笔记,上面只有“QT:ld错误:缺libuuid类库”一行字,没写明如何解决,但我印象力好象从友善的rootfs中拷贝缺少的类库过去交叉编译的lib中就好了。你试试吧。
回复

使用道具 举报

 楼主| 发表于 2005-10-22 19:48:38 | 显示全部楼层
但是我没有友善的rootfs,能否给我发一份!谢谢![email protected]
回复

使用道具 举报

发表于 2005-10-25 11:56:29 | 显示全部楼层
是你的libqte库有问题吧,试试编译qte时用everything来编译,
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

GMT+8, 2024-11-3 02:20 , Processed in 0.039261 second(s), 15 queries .

© 2021 Powered by Discuz! X3.5.

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