谢谢你!
构建Qt4.7.0嵌入式开发环境
所需平台及软件版本如下
FedoraCore 13
arm-linux-gcc-4.3.2.tgz
qt-everywhere-opensource-src-4.7.0.tar.gz
tslib1.4.tar.gz
步骤
解压tslib1.4.tar.gz
cd tslib
export CC=arm-linux-gcc
./autogen.sh
echo "ac_cv_func_malloc_0_nonnull=yes" >arm-linux.cache
./configure --host=arm-linux --cache-file=arm-linux.cache -prefix=/usr/local/tslib
make
make install
解压qt-everywhere-opensource-src-4.7.0.tar.gz,并拷贝出三份,分别命名成qt-4.7.0-arm、qt-4.7.0-x86、qt-4.7.0-pc
cd qt-4.7.0-arm
./configure -prefix /usr/local/Trolltech/qt-4.7.0-arm -opensource -confirm-license -release -shared -embedded arm -xplatform qws/linux-arm-g++ -no-qt3support -fast -no-largefile -qt-mouse-tslib -I /usr/local/tslib/include -L /uar/local/tslib/lib -make tools -make demos -make examples -make docs -qt-libjpeg -qt-libpng -qt-libtiff -qt-gif -multimedia
make
make install
cd qt-4.7.0-x86
./configure -prefix /usr/local/Trolltech/qt-4.7.0-x86 -opensource -confirm-license -embedded x86 -qt-gfx-qvfb -qt-kbd-qvfb -qt-mouse-qvfb -make tools
make
make install
cd qt-4.7.0-pc
./configure -prefix /usr/local/Trolltech/qt-4.7.0-pc -opensource -confirm-license
make
make install
接下来安装PC版本的qvfp
cd qt-4.7.0-pc
cd tools/qvfp
make
cp qt-4.7.0-pc/bin/qvfp /usr/local/Trolltech/qt-4.7.0-x86/bin
make
至此安装完成
我也不知道是哪出的错,按照上述步骤,每次都是在make时出现以下错误:
gmake[1]: *** [.obj/release-shared/qtconcurrentresultstore.o] Error 1
gmake[1]: Leaving directory `/tmp/qt-4.7.2-pc/src/corelib'
gmake: *** [sub-corelib-make_default-ordered] Error 2
[root@localhost qt-4.7.2-pc]#
然后就是再make install就不行了