• 7010阅读
  • 6回复

qt-embedded-3.3.6安装出错! [复制链接]

上一主题 下一主题
离线hunhunzi
 

只看楼主 倒序阅读 楼主  发表于: 2006-04-07
本人想以arm处理器为目标安装的,

我已经安装完了qt-x11-3.3.2并把其下的bin目录下的可执行文件拷贝到了qt-embedded-3.3.6的bin目录下,
然后:
export QTDIR=/usr/qt-3.3.2/qt-3.3.6
export PATH=$QTDIR/bin:$PATH
export MANPATH=$QTDIR/doc/man:$MANPATH
export LD_LIBRARY_PATH=$QTDIR/lib:$LD_LIBRARY_PATH

再./configure -platform linux-arm-g++ -qconfig qpe -depths 8,46,24,32

make之后就出现了以下错误:
arm-linux-g++ -c -pipe -DQWS -fno-exceptions -fno-rtti -O2 -DQT_MOC -DQT_NO_CODECS -DQT_LITE_UNICODE -DQT_NO_COMPONENT -DQT_NO_STL -DQT_NO_COMPRESS -I/usr/qt-3.3.2/qt-3.3.6/mkspecs/linux-arm-g++ -I. -I../../include -I../tools -I. -o ./qtextstream.o ../tools/qtextstream.cpp
arm-linux-g++ -c -pipe -DQWS -fno-exceptions -fno-rtti -O2 -DQT_MOC -DQT_NO_CODECS -DQT_LITE_UNICODE -DQT_NO_COMPONENT -DQT_NO_STL -DQT_NO_COMPRESS -I/usr/qt-3.3.2/qt-3.3.6/mkspecs/linux-arm-g++ -I. -I../../include -I../tools -I. -o ./qbitarray.o ../tools/qbitarray.cpp
arm-linux-g++ -c -pipe -DQWS -fno-exceptions -fno-rtti -O2 -DQT_MOC -DQT_NO_CODECS -DQT_LITE_UNICODE -DQT_NO_COMPONENT -DQT_NO_STL -DQT_NO_COMPRESS -I/usr/qt-3.3.2/qt-3.3.6/mkspecs/linux-arm-g++ -I. -I../../include -I../tools -I. -o ./qmap.o ../tools/qmap.cpp
arm-linux-g++ -c -pipe -DQWS -fno-exceptions -fno-rtti -O2 -DQT_MOC -DQT_NO_CODECS -DQT_LITE_UNICODE -DQT_NO_COMPONENT -DQT_NO_STL -DQT_NO_COMPRESS -I/usr/qt-3.3.2/qt-3.3.6/mkspecs/linux-arm-g++ -I. -I../../include -I../tools -I. -o ./qgcache.o ../tools/qgcache.cpp
arm-linux-g++ -c -pipe -DQWS -fno-exceptions -fno-rtti -O2 -DQT_MOC -DQT_NO_CODECS -DQT_LITE_UNICODE -DQT_NO_COMPONENT -DQT_NO_STL -DQT_NO_COMPRESS -I/usr/qt-3.3.2/qt-3.3.6/mkspecs/linux-arm-g++ -I. -I../../include -I../tools -I. -o ./qtextcodec.o ../codecs/qtextcodec.cpp
arm-linux-g++ -c -pipe -DQWS -fno-exceptions -fno-rtti -O2 -DQT_MOC -DQT_NO_CODECS -DQT_LITE_UNICODE -DQT_NO_COMPONENT -DQT_NO_STL -DQT_NO_COMPRESS -I/usr/qt-3.3.2/qt-3.3.6/mkspecs/linux-arm-g++ -I. -I../../include -I../tools -I. -o ./qutfcodec.o ../codecs/qutfcodec.cpp
arm-linux-g++ -c -pipe -DQWS -fno-exceptions -fno-rtti -O2 -DQT_MOC -DQT_NO_CODECS -DQT_LITE_UNICODE -DQT_NO_COMPONENT -DQT_NO_STL -DQT_NO_COMPRESS -I/usr/qt-3.3.2/qt-3.3.6/mkspecs/linux-arm-g++ -I. -I../../include -I../tools -I. -o ./moc_yacc.o moc_yacc.cpp
arm-linux-g++ -c -pipe -DQWS -fno-exceptions -fno-rtti -O2 -DQT_MOC -DQT_NO_CODECS -DQT_LITE_UNICODE -DQT_NO_COMPONENT -DQT_NO_STL -DQT_NO_COMPRESS -I/usr/qt-3.3.2/qt-3.3.6/mkspecs/linux-arm-g++ -I. -I../../include -I../tools -I. -o ./qfile_unix.o ../tools/qfile_unix.cpp
arm-linux-g++ -c -pipe -DQWS -fno-exceptions -fno-rtti -O2 -DQT_MOC -DQT_NO_CODECS -DQT_LITE_UNICODE -DQT_NO_COMPONENT -DQT_NO_STL -DQT_NO_COMPRESS -I/usr/qt-3.3.2/qt-3.3.6/mkspecs/linux-arm-g++ -I. -I../../include -I../tools -I. -o ./qdir_unix.o ../tools/qdir_unix.cpp
arm-linux-g++ -c -pipe -DQWS -fno-exceptions -fno-rtti -O2 -DQT_MOC -DQT_NO_CODECS -DQT_LITE_UNICODE -DQT_NO_COMPONENT -DQT_NO_STL -DQT_NO_COMPRESS -I/usr/qt-3.3.2/qt-3.3.6/mkspecs/linux-arm-g++ -I. -I../../include -I../tools -I. -o ./qfileinfo_unix.o ../tools/qfileinfo_unix.cpp
test -d ../../bin/ || mkdir -p ../../bin/
arm-linux-g++ -o ../../bin/moc ./qbuffer.o ./qptrcollection.o ./qcstring.o ./qdatastream.o ./qdatetime.o ./qfile.o ./qdir.o ./qfileinfo.o ./qgarray.o ./qgdict.o ./qglist.o ./qglobal.o ./qgvector.o ./qiodevice.o ./qregexp.o ./qstring.o ./qlocale.o ./qunicodetables.o ./qstringlist.o ./qtextstream.o ./qbitarray.o ./qmap.o ./qgcache.o ./qtextcodec.o ./qutfcodec.o ./moc_yacc.o ./qfile_unix.o ./qdir_unix.o ./qfileinfo_unix.o
./qlocale.o(.text+0x67d8): In function `qdtoa(double, int, int, int*, int*, char**, char**)':
: warning: warning: feholdexcept is not implemented and will always fail
./qlocale.o(.text+0x6818): In function `qdtoa(double, int, int, int*, int*, char**, char**)':
: warning: warning: fesetenv is not implemented and will always fail
make[2]: Leaving directory `/usr/qt-3.3.2/qt-3.3.6/src/moc'
cd src && make
make[2]: Entering directory `/usr/qt-3.3.2/qt-3.3.6/src'
////////////////////////////////////请注意下面一行,///////////////////////////////////////////////
//////////////////////好像又变成了以X86处理器为目标了/////////////////////////////////////
echo '#include "kernel/qt.h"' >.moc/release-shared-emb-x86/allmoc.cpp
g++ -E -DQT_MOC_CPP -DQT_NO_STL -pipe -DQWS -fno-exceptions -fno-rtti -Wall -W -O2 -fPIC -DQT_SHARED -DQT_NO_DEBUG -DQT_NO_NIS -D_LARGEFILE_SOURCE -D_LARGE_FILES -D_FILE_OFFSET_BITS=64 -DQT_NO_IMAGEIO_MNG -DQT_NO_IMAGEIO_JPEG -DQT_NO_STYLE_MAC -DQT_NO_STYLE_AQUA -DQT_NO_STYLE_INTERLACE -DQT_NO_STYLE_WINDOWSXP -DQT_NO_STYLE_COMPACT -DQT_NO_STYLE_POCKETPC -DQT_NO_QWS_VFB -DQT_NO_QWS_VNC -DQT_NO_QWS_VGA16 -DQT_NO_QWS_TRANSFORMED -DQT_NO_QWS_SNAP -DQT_NO_QWS_MACH64 -DQT_NO_QWS_VOODOO3 -DQT_NO_QWS_MATROX -DQT_NO_QWS_SHADOWFB -DQT_NO_QWS_REPEATER -DQT_NO_QWS_KBD_SL5000 -DQT_NO_QWS_KBD_USB -DQT_NO_QWS_KBD_YOPY -DQT_NO_QWS_KBD_VR41 -DQT_NO_QWS_MOUSE_BUS -DQT_NO_QWS_MOUSE_LINUXTP -DQT_NO_QWS_MOUSE_VR41 -DQT_NO_QWS_MOUSE_YOPY -I/usr/qt-3.3.2/qt-3.3.6/mkspecs/qws/linux-x86-g++ -I. -I3rdparty/freetype/src -I3rdparty/freetype/include -I3rdparty/freetype/builds/unix -I3rdparty/freetype2/include -I3rdparty/libpng -I3rdparty/zlib -I../include -I.moc/release-shared-emb-x86/ >.moc/release-shared-emb-x86/allmoc.h .moc/release-shared-emb-x86/allmoc.cpp
/usr/qt-3.3.2/qt-3.3.6/bin/moc -o .moc/release-shared-emb-x86/allmoc.cpp .moc/release-shared-emb-x86/allmoc.h
/usr/qt-3.3.2/qt-3.3.6/bin/moc: /usr/qt-3.3.2/qt-3.3.6/bin/moc: cannot execute binary file
make[2]: *** [.moc/release-shared-emb-x86/allmoc.cpp] Error 126
make[2]: Leaving directory `/usr/qt-3.3.2/qt-3.3.6/src'
make[1]: *** [sub-src] Error 2
make[1]: Leaving directory `/usr/qt-3.3.2/qt-3.3.6'
make: *** [init] Error 2
[root@localhost qt-3.3.6]#


从上面的错误来看,在编译的后半部分,编译器由arm-linux-g++,变成了g++,请问这是怎么回事?
[ 此贴被XChinux在2006-04-07 13:40重新编辑 ]
华曼科技网
www.whaman.com
->BBS
技术论坛提供各种嵌入式系统学习资料下载!
欢迎您到来!
离线hunhunzi

只看该作者 1楼 发表于: 2006-04-07
后来发现,./configure -platform linux-arm-g++ -qconfig qpe -depths 8,46,24,32
中的-qconfig qpe是找不到qconfig-pqe.h文件的,

谁以arm为目标安装过3.3.X版本的QT请指导一下
华曼科技网
www.whaman.com
->BBS
技术论坛提供各种嵌入式系统学习资料下载!
欢迎您到来!
离线linuzer

只看该作者 2楼 发表于: 2006-04-08
我觉得你应该这样
./configure -xplatform qws/linux-arm-g++ -qconfig qpe
qconfig-qpe.h要从qtopia那里拷贝来的,好象在qtopia/src/qt还是qtopia/src/tools/qt我记得不大清楚了
离线hunhunzi

只看该作者 3楼 发表于: 2006-04-08
.moc/release-shared-emb-arm/allmoc.cpp
这个文件在哪里啊,怎么找不到啊,我编译的时候就是缺少这个文件
华曼科技网
www.whaman.com
->BBS
技术论坛提供各种嵌入式系统学习资料下载!
欢迎您到来!
离线hunhunzi

只看该作者 4楼 发表于: 2006-04-08
哪位仁兄编译过的指点一下嘛。。。。。

困了我好久啊
华曼科技网
www.whaman.com
->BBS
技术论坛提供各种嵌入式系统学习资料下载!
欢迎您到来!
离线pf2000

只看该作者 5楼 发表于: 2006-04-21
兄弟我这两天也在学习QT,准备在xscale270上做开发,遇到和你类似的问题,我在单位把QTE在arm上的环境都搭建好了,但回到家里交叉编译就有问题(编译x86的qte没问题),后来找到原因是交叉编译器的问题,我虽然安装了交叉编译器,但是没有修改etc下的profile文件,在profile加入了pathmunge /usr/local/arm0linux/bin(我的交叉编译器路径)就ok了,分析原因是系统未能找到交叉编译器,你可以看看linux-arm-g++的目录下的环境设置,无非是一些环境变量的设置,我做了shell安装脚本,如果需要我可以给你一份

embed_pan@163.com
离线zhujili0620
只看该作者 6楼 发表于: 2009-02-27
最后怎么解决的?
快速回复
限100 字节
 
上一个 下一个