红联Linux门户
Linux帮助

qt编译出错。

发布时间:2012-07-26 15:40:54来源:红联作者:ouzuguo
[i=s] 本帖最后由 ouzuguo 于 2012-7-26 15:43 编辑 [/i]

我下载的是qt-everywhere-opensource-src-4.8.2,解压后。输入
./configure -opensource -embedded arm -qvfb
make
开始编辑,然后出错(如下)
...
.obj/release-shared-emb-arm/moc_qeventtransition.o -L/media/DATACENTRA/Project/arm_qte/qt-everywhere-opensource-src-4.8.2/lib -lpthread -lz -lm -ldl -lrt
/opt/FriendlyARM/toolschain/4.4.3/lib/gcc/arm-none-linux-gnueabi/4.4.3/../../../../arm-none-linux-gnueabi/bin/ld: warning: creating a DT_TEXTREL in object.
ln -s libQtCore.so.4.8.2 libQtCore.so
ln: 创建符号链接 "libQtCore.so": 不允许的操作
make[1]: [../../lib/libQtCore.so.4.8.2] 错误 1 (忽略)
ln -s libQtCore.so.4.8.2 libQtCore.so.4
ln: 创建符号链接 "libQtCore.so.4": 不允许的操作
make[1]: [../../lib/libQtCore.so.4.8.2] 错误 1 (忽略)
ln -s libQtCore.so.4.8.2 libQtCore.so.4.8
ln: 创建符号链接 "libQtCore.so.4.8": 不允许的操作
make[1]: [../../lib/libQtCore.so.4.8.2] 错误 1 (忽略)
rm -f ../../lib/libQtCore.so.4.8.2
rm -f ../../lib/libQtCore.so
rm -f ../../lib/libQtCore.so.4
rm -f ../../lib/libQtCore.so.4.8
mv -f libQtCore.so.4.8.2 libQtCore.so libQtCore.so.4 libQtCore.so.4.8 ../../lib/
mv: 无法获取"libQtCore.so" 的文件状态(stat): 没有那个文件或目录
mv: 无法获取"libQtCore.so.4" 的文件状态(stat): 没有那个文件或目录
mv: 无法获取"libQtCore.so.4.8" 的文件状态(stat): 没有那个文件或目录
make[1]: [../../lib/libQtCore.so.4.8.2] 错误 1 (忽略)
make[1]:正在离开目录 `/media/DATACENTRA/Project/arm_qte/qt-everywhere-opensource-src-4.8.2/src/corelib'
cd src/xml/ && make -f Makefile
make[1]: 正在进入目录 `/media/DATACENTRA/Project/arm_qte/qt-everywhere-opensource-src-4.8.2/src/xml'
arm-linux-g++ -pipe -fno-exceptions -O2 -fvisibility=hidden -fvisibility-inlines-hidden -Wall -W -D_REENTRANT -fPIC -DQT_SHARED -DQT_BUILD_XML_LIB -DQT_NO_USING_NAMESPACE -DQT_NO_CAST_TO_ASCII -DQT_ASCII_CAST_WARNINGS -DQT3_SUPPORT -DQT_MOC_COMPAT -DQT_USE_QSTRINGBUILDER -DQT_NO_DEBUG -DQT_CORE_LIB -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -I../../mkspecs/qws/linux-arm-g++ -I. -I../../include/QtCore -I../../include -I../../include/QtXml -I.rcc/release-shared-emb-arm -I.moc/release-shared-emb-arm -x c++-header -c ../corelib/global/qt_pch.h -o .pch/release
-shared-emb-arm/QtXml.gch/c++
In file included from ../../include/QtCore/qstring.h:1,
from ../../include/QtCore/../../src/corelib/kernel/qobject.h:48,
from ../../include/QtCore/qobject.h:1,
from ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:45,
from ../../include/QtCore/qcoreapplication.h:1,
from ../corelib/global/qt_pch.h:58:
../../include/QtCore/../../src/corelib/tools/qstring.h:176: note: the mangling of 'va_list' has changed in GCC 4.4
arm-linux-g++ -c -include .pch/release-shared-emb-arm/QtXml -pipe -fno-exceptions -O2 -fvisibility=hidden -fvisibility-inlines-hidden -Wall -W -D_REENTRANT -fPIC -DQT_SHARED -DQT_BUILD_XML_LIB -DQT_NO_USING_NAMESPACE -DQT_NO_CAST_TO_ASCII -DQT_ASCII_CAST_WARNINGS -DQT3_SUPPORT -DQT_MOC_COMPAT -DQT_USE_QSTRINGBUILDER -DQT_NO_DEBUG -DQT_CORE_LIB -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -I../../mkspecs/qws/linux-arm-g++ -I. -I../../include/QtCore -I../../include -I../../include/QtXml -I.rcc/release-shared-emb-arm -I.moc/release-shared-emb-arm -o .obj/release-shared-emb-arm/qdom.o dom/qdom.cpp
arm-linux-g++ -c -include .pch/release-shared-emb-arm/QtXml -pipe -fno-exceptions -O2 -fvisibility=hidden -fvisibility-inlines-hidden -Wall -W -D_REENTRANT -fPIC -DQT_SHARED -DQT_BUILD_XML_LIB -DQT_NO_USING_NAMESPACE -DQT_NO_CAST_TO_ASCII -DQT_ASCII_CAST_WARNINGS -DQT3_SUPPORT -DQT_MOC_COMPAT -DQT_USE_QSTRINGBUILDER -DQT_NO_DEBUG -DQT_CORE_LIB -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -I../../mkspecs/qws/linux-arm-g++ -I. -I../../include/QtCore -I../../include -I../../include/QtXml -I.rcc/release-shared-emb-arm -I.moc/release-shared-emb-arm -o .obj/release-shared-emb-arm/qxml.o sax/qxml.cpp
rm -f libQtXml.so.4.8.2 libQtXml.so libQtXml.so.4 libQtXml.so.4.8
arm-linux-g++ -Wl,-rpath-link,/media/DATACENTRA/Project/arm_qte/qt-everywhere-opensource-src-4.8.2/lib -fno-exceptions -Wl,--no-undefined -Wl,-O1 -Wl,-rpath,/usr/local/Trolltech/QtEmbedded-4.8.2-arm/lib -Wl,-rpath,/usr/local/Trolltech/QtEmbedded-4.8.2-arm/lib -shared -Wl,-soname,libQtXml.so.4 -o libQtXml.so.4.8.2 .obj/release-shared-emb-arm/qdom.o .obj/release-shared-emb-arm/qxml.o -L/media/DATACENTRA/Project/arm_qte/qt-everywhere-opensource-src-4.8.2/lib -lQtCore -L/media/DATACENTRA/Project/arm_qte/qt-everywhere-opensource-src-4.8.2/lib -lpthread
/opt/FriendlyARM/toolschain/4.4.3/lib/gcc/arm-none-linux-gnueabi/4.4.3/../../../../arm-none-linux-gnueabi/bin/ld: cannot find -lQtCore
collect2: ld returned 1 exit status
make[1]: *** [../../lib/libQtXml.so.4.8.2] 错误 1
make[1]:正在离开目录 `/media/DATACENTRA/Project/arm_qte/qt-everywhere-opensource-src-4.8.2/src/xml'
make: *** [sub-xml-make_default-ordered] 错误 2

请问是什么原因引起的错误?该如何解决?
文章评论

共有 1 条评论

  1. coov 于 2012-07-26 21:39:33发表:

    帮顶下