我总结了一下,以下是出错信息,估计很多人遇到这些情况:
编译不成功的:
1. qt/e library for arm :
qt/qte-arm 目录下放着 qte , tmake
cd qt/qte-arm
export TMAKEPATH=$PWD/tmake-1.13/lib/qws/linux-arm-g++
export QTDIR=$PWD/qt-2.3.10
export PATH=$QTDIR/bin:/qt/usr/local/arm/3.4.1/bin:$PATH
export LD_LIBRARY_PATH=$QTDIR/lib:$LD_LIBRARY_PATH
cd $QTDIR
./configure -xplatform linux-arm-g++ -no-xft -no-qvfb -depths 4,8,16,32
yes
5
make
error info :
/qt/qte-arm/qt-2.3.10/lib/libqte.so: undefined reference to `operator new[](unsigned int)'
/qt/qte-arm/qt-2.3.10/lib/libqte.so: undefined reference to `operator delete(void*)'
/qt/qte-arm/qt-2.3.10/lib/libqte.so: undefined reference to `__cxa_pure_virtual'/qt/qte-arm/qt-2.3.10/lib/libqte.so: undefined reference to `operator delete[](void*)'
/qt/qte-arm/qt-2.3.10/lib/libqte.so: undefined reference to `operator new(unsigned int)'
collect2: ld returned 1 exit status
make[4]: *** [t1] Error 1
make[4]: Leaving directory `/qt/qte-arm/qt-2.3.10/tutorial/t1'
make[3]: *** [t1] Error 2
make[3]: Leaving directory `/qt/qte-arm/qt-2.3.10/tutorial'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/qt/qte-arm/qt-2.3.10/tutorial'
make[1]: *** [sub-tutorial] Error 2
make[1]: Leaving directory `/qt/qte-arm/qt-2.3.10'
make: *** [init] Error 2
lib 文件夹下 :
fonts libqte.so libqte.so.2 libqte.so.2.3 libqte.so.2.3.10
file libqte.so.2.3.10 得到信息:
libqte.so.2.3.10: ELF 32-bit LSB shared object, ARM, version 1 (ARM), not stripped
2. qtopia for x86 (PC) :
/qt/qte-x86/qtopia-x86 下放着 :
qt-embedded-2.3.10-free.tar.gz , qtopia-free-source-2.1.1.tar.bz2,
qt-x11-2.3.2.tar.gz, tmake-1.13.tar.gz
完全按照资料上来作.
qt-x11成功编译,资料上的 :
mkdir $QTEDIR/bin ,cp bin/uic $QTEDIR/bin是有问题的 ,因为
$QTEDIR下已经有bin目录,且也有 uic 工具,这里不复制.
同样,在 $QTEDIR/tools/qvfb下已经有 qvfb 工具,这里不编译.
编译 qt/e 的时候 , make sub-src 没有出现 enjoy .
编译qtopia时,出现错误:
/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 `/qt/qte-x86/qtopia-x86/qtopia-free-2.1.1/src/libraries/qtopia'
make[3]: *** [all] Error 2
make[3]: Leaving directory `/qt/qte-x86/qtopia-x86/qtopia-free-2.1.1/src/libraries/qtopia'
make[2]: *** [sub-libraries-qtopia] Error 2
make[2]: Leaving directory `/qt/qte-x86/qtopia-x86/qtopia-free-2.1.1/src'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/qt/qte-x86/qtopia-x86/qtopia-free-2.1.1/src'
make: *** [all] Error 2