LINUX下QT For ARM开发环境

system ver : ubuntu 12.1
gcc ver : 4.6.3
arm gcc ver : 4.5.1
qt ver :  qt-x11-opensource-src-4.5.3
qt-embedded  ver : qt-embedded-linux-opensource-src-4.5.3

1.    编译qt-x11-opensource-src-4.5.3

./configure –qvfb
make
cd tools/qvfb //进入此目录,准备对它进行编译
make
回到qt-x11-opensource-src-4.5.3主目录,准备安装
sudo    make install
编译过程中出现错误: error: 'ppd_file_t' does not name a type
解决方法:

vi    src/gui/painting/qcups_p.h

#ifndef QT_NO_CUPS
#include    //加入ppd头文件
QT_BEGIN_NAMESPACE
2. 安装 arm-linux-gcc

3. 编译qt-embedded-linux-opensource-src-4.5.3

./configure   -embedded  arm -qt-libpng
make
sudo   make install
编译时间会很长,可以使用下面的配置来减少编译时间:

./configure -embedded  arm -qt-libpng \
-release \
-shared \
-fast \
-no-largefile \
-qt-sql-sqlite \
-no-qt3support \
-no-xmlpatterns \
-no-mmx \
-no-3dnow \
-no-sse \
-no-sse2 \
-no-svg \
-no-webkit \
-qt-zlib \
-qt-gif \
-qt-libtiff \
-qt-libpng \
-qt-libmng \
-qt-libjpeg \
-make libs \
-xplatform qws/linux-arm-g++ \
-nomake tools \
-nomake examples \
-nomake docs \
-nomake demo \
-no-nis \
-no-cups \
-no-iconv \
-no-dbus \
-no-openssl \
-embedded arm \
-little-endian \
-qt-freetype \
-depths 16,18 \
-qt-gfx-linuxfb \
-no-gfx-transformed \
-no-gfx-multiscreen \
-no-gfx-vnc \
-no-gfx-qvfb \
-qt-kbd-usb \
-no-glib

你可能感兴趣的:(LINUX下QT For ARM开发环境)