• 75712阅读
  • 47回复

开贴整理常见编译错误集锦 -- 不断更新中 [复制链接]

上一主题 下一主题
离线shiroki
 

只看楼主 倒序阅读 楼主  发表于: 2006-10-29
看到大家为了编译搞得这么痛苦, 实在于心不忍. 决定开篇整理在编译过程中遇到的问题. 大家有什么新问题也可申请加到本贴中.


cannot find -lqte
这个问题比较复杂, 需要从几个方面来分析. 首先要看编译的命令行, 在编译的命令行里应该正确的指定libqte.so所在的路径. 用tmake生成的makefile里, 该路径会引用QTDIR/lib, 如果报该错, 则是QTDIR环境变量设定有误; 另外, tmake引用TMAKEDIR和TMAKEPATH变量。 TMAKEDIR设定tmake目录的路径, TMAKEPATH设定你使用的tmakespec位置, 当编译qt-x11程序时设为TMAKEPATH=$TMAKEDIR/lib/linux-g++, 编译qte程序时设为TMAKEPATH=$TMAKEDIR/lib/qws/linux-generic-g++

qmake则依据QMAKESPEC环境变量的值生成makefile, 对应qte/qtopia应用需要将QMAKESPEC设定为QPEDIR/mkspecs/qws/linux-generic-g++

该问题的解决方案就是设置好相应的环境变量, 重新用tmake或者qmake去生成Makefile, 然后编译. 肯定能行, 呵呵

uuid/uuid.h
桌面环境需要安装e2fsprogs的开发包(-devel包), 如果是交叉编译环境, 则需要找到源码包进行交叉编译. 装好开发包再make即可.

jpeg.h
需要安装libjpeg的开发包或用源码包交叉编译, 网上搜jpegsrc即可找到

cups/cups.h
安装 cups-devel*.rpm包

GL/glu.h
安装 mesa-libGLU-devel*.rpm包

undefined reference xxx
这是个链接错误,意思是说在你的程序里引用了某个函数或变量, 但是链接器找不到该变量的定义.
最容易出现此错误的情况是, 你的头文件和库文件不匹配. 比如你用了x11版本的头文件, 而链接到嵌入式版本的qt;或者有头文件但找不到库文件等. 具体问题具体分析.

如果报的符号是在某个第三方库里的, 比如uuid的什么什么函数, 则要检查你的libqte是不是编译得正确. 本来这些库应该正确链接到libqte.so上, 这样在qtopia链接的时候就不需要显式的加上这些库了. 有的时候libqte没有正确链接好, 但是在编译libqte阶段不会报错, 到后面qtopia或者其他应用编译的时候就出错了.

解决方案是把报错的库删除, 重新编译库. 如果是libqte, 要把你环境里的出现libqte的地方都检查检查, 有可能存在不同的libqte互相影响.
[ 此贴被shiroki在2006-11-16 18:26重新编辑 ]
--
shiro is White
ki is tree
http://www.cuteqt.com
论坛 http://www.cuteqt.com/bbs
博客 http://www.cuteqt.com/blog
博客镜像: http://sites.cuteqt.com/cuteqt
Linux/Qt/嵌入式讨论群 http://qun.qq.com/air/5699823
离线wicoo401
只看该作者 1楼 发表于: 2006-11-16
TO: cannot find -lqte
变量QTDIR指向QTE对吗?
QTDIR=$TROLLTECHDIR/qt-embedded-free-2.3.10-debug

我是这么做的export QTDIR=$HOME/Trolltech/qt-embedded-free-2.3.10-debug
结果出现如下错误
..........
/root/Trolltech/qt-embedded-free-2.3.10-debug/lib/libqte.so: undefined reference
to `QComboBox::setAutoCompletion(bool)'
/root/Trolltech/qt-embedded-free-2.3.10-debug/lib/libqte.so: undefined reference
to `QComboBox::setEditText(QString const&)'
/root/Trolltech/qt-embedded-free-2.3.10-debug/lib/libqte.so: undefined reference
to `QMotifStyle::drawIndicator(QPainter*, int, int, int, int, QColorGroup const
&, int, bool, bool)'
collect2: ld returned 1 exit status
make: *** [qvfb] Error 1
是libqte.so没装好吗?
菜鸟无知,提问非罪!!!
多问多学多动手!!!!!!!!
离线shiroki

只看该作者 2楼 发表于: 2006-11-16
undefined reference的问题我的帖子里也提到了, 恩, 建议你把lib下的libqte*删掉, 然后
cd qtedir
export QTDIR=$PWD
make

把libqte再生成一遍看看
--
shiro is White
ki is tree
http://www.cuteqt.com
论坛 http://www.cuteqt.com/bbs
博客 http://www.cuteqt.com/blog
博客镜像: http://sites.cuteqt.com/cuteqt
Linux/Qt/嵌入式讨论群 http://qun.qq.com/air/5699823
离线jinliang516
只看该作者 3楼 发表于: 2006-11-17
No rule to make target `all', needed by `default'
我编译qpe的 时候遇到的 ,
qte已经编译好了,qconfig-qpe.h也考过去了,
在qpe 的src下make的 时候出现,是在qtopia-free-1.7.0/src/libraries/qtopia下面
有点莫明奇妙,板主救人!!!
[ 此贴被jinliang516在2006-11-17 15:59重新编辑 ]
离线wicoo401
只看该作者 4楼 发表于: 2006-11-17
再详细问一下编译qvfb时变量QTDIR=$DTEDIR 还是 QTDIR=$QT2DIR
解决编译qvfb时出现cannot find -lqte问题时将TMAKEPATH改为TMAKEPATH=/root/Trolltech/tmake-1.13/lib/linux-g++吗?
随后出现了undefined reference还有什么解决办法(重新生成libqte不管用阿)
export QTDIR=$QT2DIR后出现的undefined reference
moc_config.o(.gnu.linkonce.d._ZTV6Config+0x1c4): undefined reference to `non-virtual thunk [nv:-36] to QWidget::bytesPerLine() const'
moc_config.o(.gnu.linkonce.d._ZTV6Config+0x1c8): undefined reference to `non-virtual thunk [nv:-36] to QWidget::graphicsContext(bool) const'
collect2: ld returned 1 exit status
菜鸟无知,提问非罪!!!
多问多学多动手!!!!!!!!
离线shiroki

只看该作者 5楼 发表于: 2006-11-18
qvfb是x11应用, 所以qtdir要设成qt-x11-2 dir
另外qtdir和tmakepath要互相配合
设好tmakepath之后要用tmake重新生成makefile
最后make clean;make
你这个应该是没有重新生成makefile
--
shiro is White
ki is tree
http://www.cuteqt.com
论坛 http://www.cuteqt.com/bbs
博客 http://www.cuteqt.com/blog
博客镜像: http://sites.cuteqt.com/cuteqt
Linux/Qt/嵌入式讨论群 http://qun.qq.com/air/5699823
离线wicoo401
只看该作者 6楼 发表于: 2006-11-20
再提一个问题:关于编译qtopia时的配置问题:
./configure -debug -edition pda -no-qtopiadesktop -displaysize 240x320
出现错误ERROR: Missing file /usr/lib/qt3/include/qglobal.h
          Did you pass a valid location to -dqt?
/usr/lib/下没有qt3 只有qt-3.1和qt2修改路径QT3DIR指向qt-3.1或qt2后再重新编译:
Expecting Qt to be at least version 3.3.0,
found only version 2.3.1, aborting configure.

精华贴中提到configure qtopia的时候没有加-no-qtopiadesktop选项或者用到了-languages参数就得准备qt-x11-3.x了
具体该怎么配置呢 才不用装qt-x11-3.x
菜鸟无知,提问非罪!!!
多问多学多动手!!!!!!!!
离线shiroki

只看该作者 7楼 发表于: 2006-11-20
加-no-qtopiadesktop选项应该就不需要qt3了
那个指定qt3的环境变量不是qt3dir , 是DQTDIR
--
shiro is White
ki is tree
http://www.cuteqt.com
论坛 http://www.cuteqt.com/bbs
博客 http://www.cuteqt.com/blog
博客镜像: http://sites.cuteqt.com/cuteqt
Linux/Qt/嵌入式讨论群 http://qun.qq.com/air/5699823
离线wicoo401
只看该作者 8楼 发表于: 2006-11-23
另一种解决办法,更改configure文件中Permanent settings:
my $mindqtVersion = "3.3.0"->"3.1.0"

编译通过,qtopia-2.1.1能用了,谢谢shiroki一直来的帮忙
菜鸟无知,提问非罪!!!
多问多学多动手!!!!!!!!
离线cavendish

只看该作者 9楼 发表于: 2006-11-23
qtopia中用到Qt3的东西有
一个是qtopiadesktop
一个是国际化
qtopia中使用的是qt3中的lupdate, lrelease
离线slient
只看该作者 10楼 发表于: 2007-03-31
/usr/local/arm/2.95.3/arm-linux/bin/ld: cannot find -lqassistantclient
collect2: ld returned 1 exit status
make[3]: *** [helpdemo] Error 1
make[3]: Leaving directory `/usr/local/QTarm/qt-embedded-free-3.2.1/examples/helpdemo'
make[2]: *** [sub-helpdemo] Error 2
make[2]: Leaving directory `/usr/local/QTarm/qt-embedded-free-3.2.1/examples'
make[1]: *** [sub-examples] Error 2
make[1]: Leaving directory `/usr/local/QTarm/qt-embedded-free-3.2.1'
make: *** [init] Error 2

交叉编译QT/e库的时候出现上述错误,有谁知道原因吗?谢谢
离线wslmcu
只看该作者 11楼 发表于: 2007-04-05
在RedHat9下编译Qtopia2.2.0时,报以下错误/usr/bin/ld: cannot find -luuid
可是在/lib有uuid的相关的动态库,搞了三天没搞定,请版主帮忙分析一下。
给我来瓶82年的矿泉水!
离线wslmcu
只看该作者 12楼 发表于: 2007-04-05
re:10楼。
qassistantclient 库路径不对
给我来瓶82年的矿泉水!
离线slient
只看该作者 13楼 发表于: 2007-04-10
qassistantclient 库路径该怎么设置,谢谢!
离线mviolet

只看该作者 14楼 发表于: 2007-05-28
交叉编译时,其他按照实验书上做一切正常,但在板子上执行./progressbar -qws出现问题:
Qt Embedded data directory has incorrect permissions : /tmp/qtembedded-0
请高手帮忙啊,如何解决...
离线mviolet

只看该作者 15楼 发表于: 2007-05-28
漏了说了,我chmod 777试过了
离线ljqiankun
只看该作者 16楼 发表于: 2007-09-15
qt-x11-2.3.2 ,run:
export TMAKEPATH=$TMAKEDIR/lib/linux-g++
export QTDIR=$QT2DIR
export PATH=$QTDIR/bin:$PATH
export LD_LIBRARY_PATH=$QTDIR/lib:$LD_LIBRARY_PATH
make clean
./configure -no-xft
make

~~~~
/qt/qt-2.3.2/include/qvaluestack.h:57: 错误:不能从 ‘QValueListIterator<QMap<QString, QString> >’ 转换到 ‘const char*’,为实参 ‘1’(属于 ‘int remove(const char*)’)
/qt/qt-2.3.2/include/qvaluestack.h: In member function ‘T QValueStack<T>::pop() [with T = QString]’:
xml/qxml.cpp:2502:  instantiated from here
/qt/qt-2.3.2/include/qvaluestack.h:57: 错误:不能从 ‘QValueListIterator<QString>’ 转换到 ‘const char*’,为实参 ‘1’(属于 ‘int remove(const char*)’)
make[2]: *** [xml/qxml.o] 错误 1
make[2]: Leaving directory `/qt/qt-2.3.2/src'
make[1]: *** [sub-src] 错误 2
make[1]: Leaving directory `/qt/qt-2.3.2'
make: *** [init] 错误 2

why?????
离线luxiaodong
只看该作者 17楼 发表于: 2008-02-15
qassistantclient库属于一个单独的类库,要使用该类库,需要在.pro中添加下面一行: CONFIG    +=assistant



   
离线luxiaodong
只看该作者 18楼 发表于: 2008-02-16
11楼的问题解决了没有?
[ 此贴被luxiaodong在2008-02-17 08:44重新编辑 ]
离线kyleyi
只看该作者 19楼 发表于: 2008-04-14
编译器: Default compiler
Building Makefile: "C:\Documents and Settings\Kyleyi\桌面\TestApp1[1].0.0\TestApp1.0.0\Makefile.win"
执行  make...
make.exe -f "C:\Documents and Settings\Kyleyi\桌面\TestApp1[1].0.0\TestApp1.0.0\Makefile.win" all
g++.exe main.o moc_form.o test_private.res -o "test.exe" -L"D:/Dev-Cpp/lib" -L"D:/Qt/4.3.3/lib" -mwindows D:/Qt/4.3.3/lib/libQt3Support4.a D:/Qt/4.3.3/lib/libQtAssistantClient4.a D:/Qt/4.3.3/lib/libQtCore4.a D:/Qt/4.3.3/lib/libQtDesigner4.a D:/Qt/4.3.3/lib/libQtDesignerComponents4.a D:/Qt/4.3.3/lib/libQtGui4.a D:/Qt/4.3.3/lib/libqtmain.a D:/Qt/4.3.3/lib/libQtNetwork4.a D:/Qt/4.3.3/lib/libQtOpenGL4.a D:/Qt/4.3.3/lib/libQtSql4.a D:/Qt/4.3.3/lib/libQtXml4.a 

main.o(.text+0x1aa):main.cpp: undefined reference to `Form::Form()'
moc_form.o(.text+0x1a5):moc_form.cpp: undefined reference to `Form::compute()'
collect2: ld returned 1 exit status

make.exe: *** [test.exe] Error 1

执行结束
离线liuwx

只看该作者 20楼 发表于: 2008-04-15
引用第14楼mviolet于2007-05-28 15:11发表的  :
交叉编译时,其他按照实验书上做一切正常,但在板子上执行./progressbar -qws出现问题:
Qt Embedded data directory has incorrect permissions : /tmp/qtembedded-0
请高手帮忙啊,如何解决...


我也碰到了,把tmp文件夹删掉,重启就可以了,呵呵
离线萧萧
只看该作者 21楼 发表于: 2008-07-31
版主搭建过qtopia主机的虚拟平台吗?qtopia4的
帮帮忙阿,做了几天了还是错的
离线萧萧
只看该作者 22楼 发表于: 2008-07-31
编译qt-x11-opensource-src-4.2.2遇到的问题:请问时怎么回事????

gmake[1]: Entering directory `/qt/QT4DIR/src'
cd tools/moc && gmake -f Makefile
gmake[2]: Entering directory `/qt/QT4DIR/src/tools/moc'


gmake[2]: *** wait: 没有子进程。 停止。
gmake[2]: *** 正在等待未完成的任务....
gmake[2]: *** wait: 没有子进程。 停止。
gmake[1]: *** [sub-tools_moc-make_default] 错误 2
gmake: *** [sub-src-make_default-ordered] 中断
离线0001
只看该作者 23楼 发表于: 2008-08-08
编译出错,大家帮忙看看
nputmethod/qwsinputcontext_qws.cpp:181: 错误:‘qt_sendSpontaneousEvent’ 在此作用域中尚未声明
gmake[3]: *** [.obj/debug-shared-emb-x86/qwsinputcontext_qws.o] 错误 1
gmake[3]: Leaving directory `/root/QT/qt-embedded-preview-src-4.0.1/src/gui'
gmake[2]: *** [debug-all] 错误 2
gmake[2]: Leaving directory `/root/QT/qt-embedded-preview-src-4.0.1/src/gui'
gmake[1]: *** [sub-gui-make_default-ordered] 错误 2
gmake[1]: Leaving directory `/root/QT/qt-embedded-preview-src-4.0.1/src'
gmake: *** [sub-src-make_default-ordered] 错误 2
离线0001
只看该作者 24楼 发表于: 2008-08-08
编译出错,大家帮忙看看
nputmethod/qwsinputcontext_qws.cpp:181: 错误:‘qt_sendSpontaneousEvent’ 在此作用域中尚未声明
gmake[3]: *** [.obj/debug-shared-emb-x86/qwsinputcontext_qws.o] 错误 1
gmake[3]: Leaving directory `/root/QT/qt-embedded-preview-src-4.0.1/src/gui'
gmake[2]: *** [debug-all] 错误 2
gmake[2]: Leaving directory `/root/QT/qt-embedded-preview-src-4.0.1/src/gui'
gmake[1]: *** [sub-gui-make_default-ordered] 错误 2
gmake[1]: Leaving directory `/root/QT/qt-embedded-preview-src-4.0.1/src'
gmake: *** [sub-src-make_default-ordered] 错误 2
离线yuchttp

只看该作者 25楼 发表于: 2008-08-08
我编译qtopia-opensource-4.3.2出现这样的问题,请大家帮帮忙
/mnt/qtopia/lib/libqtopia.so: undefined reference to `clock_gettime'
collect2: ld returned 1 exit status
gmake[6]: *** [qpe] 错误 1
gmake[6]: Leaving directory `/mnt/qtopia/src/server'
gmake[5]: *** [all] 错误 2
gmake[5]: Leaving directory `/mnt/qtopia/src/server'
gmake[4]: *** [all] 错误 2
gmake[4]: Leaving directory `/mnt/qtopia/src/server'
gmake[3]: *** [sub-server] 错误 2
gmake[3]: Leaving directory `/mnt/qtopia/src'
gmake[2]: *** [all] 错误 2
gmake[2]: Leaving directory `/mnt/qtopia/src'
gmake[1]: *** [qtopia_all] 错误 2
gmake[1]: Leaving directory `/mnt/qtopia'
gmake: *** [all] 错误 2
离线oneke
只看该作者 26楼 发表于: 2008-09-05
我的编译错误倒是没有,但在运行显示一个Label的时候却提示:

Initializing QFontEngineQPF failed for /home/oneke/Application/lib/fonts/DejaVuSans.ttf

这个字体我已经拷到相应的路径里面去了呀,初始化字体引擎失败~ 不明白
离线fychit

只看该作者 27楼 发表于: 2008-11-21
好多问题都是我遇到过的
嵌入式Linux系统开发QQ群:72659572
欢迎加入讨论!
离线fychit

只看该作者 28楼 发表于: 2008-11-21
cannot find -lqte
这个问题比较复杂, 需要从几个方面来分析. 首先要看编译的命令行, 在编译的命令行里应该正确的指定libqte.so所在的路径. 用tmake生成的makefile里, 该路径会引用QTDIR/lib, 如果报该错, 则是QTDIR环境变量设定有误; 另外, tmake引用TMAKEDIR和TMAKEPATH变量。 TMAKEDIR设定tmake目录的路径, TMAKEPATH设定你使用的tmakespec位置, 当编译qt-x11程序时设为TMAKEPATH=$TMAKEDIR/lib/linux-g++, 编译qte程序时设为TMAKEPATH=$TMAKEDIR/lib/qws/linux-generic-g++
什么时候用linux-arm-g++ ??
嵌入式Linux系统开发QQ群:72659572
欢迎加入讨论!
离线bliuzw
只看该作者 29楼 发表于: 2008-12-05
为什么就 没有launching error呢?
离线dacong301
只看该作者 30楼 发表于: 2008-12-13
版主救救我啊,整了快一星期了,就下面这个问题一直困扰着我!
make[3]: Entering directory `/root/arm-qt4.4.0/qt-embedded-linux-opensource-src-4.4.0/examples/desktop/screenshot'
linking screenshot
/root/arm-qt4.4.0/qt-embedded-linux-opensource-src-4.4.0/lib/libQtCore.so: undefined reference to `QInotifyFileSystemWatcherEngine::create()'
/root/arm-qt4.4.0/qt-embedded-linux-opensource-src-4.4.0/lib/libQtCore.so: undefined reference to `clock_gettime'
/root/arm-qt4.4.0/qt-embedded-linux-opensource-src-4.4.0/lib/libQtCore.so: undefined reference to `QDnotifyFileSystemWatcherEngine::create()'
/root/arm-qt4.4.0/qt-embedded-linux-opensource-src-4.4.0/lib/libQtGui.so: undefined reference to `QLinuxFbScreen::QLinuxFbScreen(int)'
collect2: ld returned 1 exit status
make[3]: *** [screenshot] Error 1
make[3]: Leaving directory `/root/arm-qt4.4.0/qt-embedded-linux-opensource-src-4.4.0/examples/desktop/screenshot'
make[2]: *** [sub-screenshot-make_default-ordered] Error 2
make[2]: Leaving directory `/root/arm-qt4.4.0/qt-embedded-linux-opensource-src-4.4.0/examples/desktop'
make[1]: *** [sub-desktop-make_default] Error 2
make[1]: Leaving directory `/root/arm-qt4.4.0/qt-embedded-linux-opensource-src-4.4.0/examples'
make: *** [sub-examples-make_default-ordered] Error 2
请各位路过走过的大侠指点指点啊!
离线mavis_y83
只看该作者 31楼 发表于: 2009-02-17
我也遇到了这个问题,用的ARM编译器交叉编译器,不知道怎么回事?请高手指点一下!
离线dancyz

只看该作者 32楼 发表于: 2009-03-06
gmake[1]: *** wait: 没有子进程。 停止。
gmake[1]: *** 正在等待未完成的任务....
gmake[1]: *** wait: 没有子进程。 停止。
gmake: *** [sub-corelib-make_default-ordered] 错误 2


碰到了和22楼同样的问题,
我是在CentOS 下编译QT-Embedded-4.4.3
交叉编译器是:arm-926ejs-linux-gcc

在gmake时发生的错误。

各位大虾遇到过这种问题么?
离线winstones
只看该作者 33楼 发表于: 2009-03-07
我碰到和30楼一样的问题,请大家帮忙,怎么解决啊?
/usr/local/qt-embedded-linux-opensource-src-4.5.0-rc1/lib/libQtCore.so: undefined reference to `QInotifyFileSystemWatcherEngine::create()'
/usr/local/qt-embedded-linux-opensource-src-4.5.0-rc1/lib/libQtCore.so: undefined reference to `QDnotifyFileSystemWatcherEngine::create()'
collect2: ld returned 1 exit status
make[3]: *** [screenshot] 错误 1
make[3]: Leaving directory `/usr/local/qt-embedded-linux-opensource-src-4.5.0-rc1/examples/desktop/screenshot'
make[2]: *** [sub-screenshot-make_default-ordered] 错误 2
make[2]: Leaving directory `/usr/local/qt-embedded-linux-opensource-src-4.5.0-rc1/examples/desktop'
make[1]: *** [sub-desktop-make_default] 错误 2
make[1]: Leaving directory `/usr/local/qt-embedded-linux-opensource-src-4.5.0-rc1/examples'
make: *** [sub-examples-make_default-ordered] 错误 2
离线chenliangzhu
只看该作者 34楼 发表于: 2009-03-12
遇到楼上同样的问题 没人解决吗?
谁解决了 留个解决方法在上面阿!!!!!!!!1
离线superyongzhe

只看该作者 35楼 发表于: 2009-03-14
不够详细
有付出才有回报!
离线crazier
只看该作者 36楼 发表于: 2009-03-25
你好,我在ubuntu8.04上安装Qtopia,安装到最后一步,出现下面的提示,找不到原因,请问该怎么解决?
make[1]: Entering directory `/opt/FriendlyARM/mini2440/x86-qtopia/qtopia/src/applications/mediarecorder'
cd /opt/FriendlyARM/mini2440/x86-qtopia/qtopia/bin ; ln -sf quicklauncher mediarecorder
make[1]: Leaving directory `/opt/FriendlyARM/mini2440/x86-qtopia/qtopia/src/applications/mediarecorder'
make -C applications/sysinfo
make[1]: Entering directory `/opt/FriendlyARM/mini2440/x86-qtopia/qtopia/src/applications/sysinfo'
gcc -L/opt/FriendlyARM/mini2440/x86-qtopia/qtopia/lib -Wl,-rpath,/opt/FriendlyARM/mini2440/x86-qtopia/qtopia/lib -L/opt/FriendlyARM/mini2440/x86-qtopia/qt/lib -Wl,-rpath,/opt/FriendlyARM/mini2440/x86-qtopia/qt/lib   -o /opt/FriendlyARM/mini2440/x86-qtopia/qtopia/bin/sysinfo .obj/linux-generic-g++//memory.o .obj/linux-generic-g++//graph.o .obj/linux-generic-g++//load.o .obj/linux-generic-g++//storage.o .obj/linux-generic-g++//versioninfo.o .obj/linux-generic-g++//sysinfo.o .obj/linux-generic-g++//main.o .obj/linux-generic-g++//moc_memory.o .obj/linux-generic-g++//moc_graph.o .obj/linux-generic-g++//moc_load.o .obj/linux-generic-g++//moc_storage.o .obj/linux-generic-g++//moc_versioninfo.o .obj/linux-generic-g++//moc_sysinfo.o  -lqpe -lqtopia -lqte 
/opt/FriendlyARM/mini2440/x86-qtopia/qtopia/lib/libqpe.so: undefined reference to `__cxa_guard_release'
/opt/FriendlyARM/mini2440/x86-qtopia/qtopia/lib/libqpe.so: undefined reference to `__cxa_guard_acquire'
collect2: ld returned 1 exit status
make[1]: *** [/opt/FriendlyARM/mini2440/x86-qtopia/qtopia/bin/sysinfo] Error 1
make[1]: Leaving directory `/opt/FriendlyARM/mini2440/x86-qtopia/qtopia/src/applications/sysinfo'
make: *** [applications/sysinfo] Error 2
just be my personal
离线gejunxiao1

只看该作者 37楼 发表于: 2009-04-14
-lcrypt -luuid -lm -ldl -ldl -L/home/gjx/qtopia-free-2.1.1/lib -L/home/gjx/qt-2.3.10/lib -lqte
/usr/bin/ld: skipping incompatible /home/gjx/qtopia-free-2.1.1/lib/libuuid.so when searching for -luuid
/usr/bin/ld: skipping incompatible /home/gjx/qtopia-free-2.1.1/lib/libuuid.a when searching for -luuid
/usr/bin/ld: skipping incompatible /home/gjx/qt-2.3.10/lib/libuuid.so when searching for -luuid
/usr/bin/ld: skipping incompatible /home/gjx/qt-2.3.10/lib/libuuid.a when searching for -luuid
/usr/bin/ld: skipping incompatible /usr/lib/gcc-lib/i386-redhat-linux/3.2.2/../../../libuuid.so when searching for -luuid
/usr/bin/ld: skipping incompatible /usr/lib/gcc-lib/i386-redhat-linux/3.2.2/../../../libuuid.a when searching for -luuid
/usr/bin/ld: skipping incompatible /usr/lib/libuuid.so when searching for -luuid/usr/bin/ld: skipping incompatible /usr/lib/libuuid.a when searching for -luuid
/usr/bin/ld: cannot find -luuid
collect2: ld returned 1 exit status
make[4]: *** [../../../lib/libqpe.so.1.5.3] Error 1
make[4]: Leaving directory `/home/gjx/qtopia-free-2.1.1/src/libraries/qtopia'
make[3]: *** [all] Error 2
make[3]: Leaving directory `/home/gjx/qtopia-free-2.1.1/src/libraries/qtopia'
make[2]: *** [sub-libraries-qtopia] Error 2
make[2]: Leaving directory `/home/gjx/qtopia-free-2.1.1/src'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/home/gjx/qtopia-free-2.1.1/src'
make: *** [all] Error 2
帮主求救啊!我把libuuid拷过去了还是这样!
离线qiang1985
只看该作者 38楼 发表于: 2009-05-05
我在编译qt-embedded-linux-opensource-src-4.5.1-arm时出错:
Creating qmake. Please wait...
make: 没有什么可以做的为 `first'。

The host system byte order could not be detected!
Turn on verbose messaging (-v) to see the final report.
You can use the -host-little-endian or -host-big-endian switch to
./configure to continue.
但是当我加上参数-host-little-endian or -host-big-endian后又出错:
TCreating qmake. Please wait...
make: 没有什么可以做的为 `first'。

The target system byte order could not be detected!
Turn on verbose messaging (-v) to see the final report.
You can use the -little-endian or -big-endian switch to
./configure to continue.
请大家多多指教,急急!
离线yangxue
只看该作者 39楼 发表于: 2009-05-15
请问以下,我在交叉编译中显示找到了libqte.so,但是紧接着就出现libqte.so:?????:???,出现这种问好是因为我的libqte.so没编译好吗?
快速回复
限100 字节
 
上一个 下一个