Menu Home

LINUX下QT For ARM开发环境


LINUX下QT For ARM开发环境

OS: ubuntu 12.1
gcc: 4.6.3
arm gcc: 4.5.1
QT: qt-x11-opensource-src-4.5.3
QT-embedded: qt-embedded-linux-opensource-src-4.5.3

编译qt-x11-opensource-src-4.5.3

./configure –qvfb
make
cd tools/qvfb //进入此目录,准备对它进行编译
make
sudo  make install

编译过程中出现的错误:
error: ‘ppd_file_t’ does not name a type
解决方法:
打开src/gui/painting/qcups_p.h做如下修改:

#ifndef QT_NO_CUPS
#include    //加入ppd头文件
QT_BEGIN_NAMESPACE

安装 arm-linux-gcc

(略)

编译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

Leave a Reply

Your email address will not be published.