天嵌 ARM开发社区

 找回密码
 注册
查看: 3144|回复: 0

移植QT4.8到TQ2440

[复制链接]
shendan 发表于 2013-10-11 15:53:53 | 显示全部楼层 |阅读模式
移植QT4.8到TQ2440
1.PC 配置
主机版本:Deepin 12.06

2.ARM移植
移植的主要工作就是编译在ARM板上运行的qt库,并且把这些库做到根目录中。需要的文件tslib-1.4.tar.gz 和qt-everywhere-opensource-src-4.8.2.tar.gz
2.1.编译安装触摸屏驱动库tslib-1.4
解压
# tar xvzf tslib-1.4.tar.gz
进入目录
# cd tslib
配置
# ./autogen.sh
# ./configure--prefix=/usr/local/qte-arm/tslib-1.4 --host=arm-linux  ac_cv_func_malloc_0_nonnull=yes
编译安装
# make
# make install
通过上述操作,就可以在/usr/local/qte-arm/tslib-1.4目录下看到相关的应用程序、共享库、配置文件等,这些库和配置文件都是要拷到ARM板的根文件系统中的。
2.2编译安装qt-everywhere-opensource-src-4.8.2
解压文件
# tar -xvfqt-everywhere-opensource-src-4.8.2.tar
将解压的文件重命名为qt-arm
# mv qt-everywhere-opensource-src-4.8.2qt-arm
进入目录
# cd qt-arm/
配置
./configure -prefix /usr/local/qte-arm/(这个目录就是makeinstall后安装目录) -shared -no-fast -no-largefile -no-exceptions -qt-sql-sqlite -qt3support -no-xmlpatterns-multimedia -no-svg -no-mmx -no-3dnow -no-sse -no-sse2 -qt-zlib -no-webkit -qt-libtiff -qt-libpng -qt-libjpeg -make libs-nomake examples -nomake docs -nomake demo -no-optimized-qmake -no-nis -no-cups
-no-iconv -no-dbus -no-separate-debug-info-no-openssl -xplatform qws/linux-arm-g++ -embedded arm -little-endian -no-freetype-depths 4,8,16,32 -qt-gfx-linuxfb -no-gfx-multiscreen -no-gfx-vnc -no-gfx-qvfb-qt-kbd-linuxinput -no-kbd-tty -no-glib -armfpa -no-mouse-qvfb -qt-mouse-pc-qt-mouse-tslib -I/usr/local/qte-arm/tslib/include -L/usr/local/qte-arm/tslib/lib
编译和安装
make
make install
查看库和字体
移植主要的就是移植库和所支持的字体,库主要的集中位置就是在配置时指定的那个目录/usr/local/qte-arm/
3. configure配置
运行configure -h,可以看到
This is the Qt for Embedded Linux Open SourceEdition.
Usage: configure [-prefix <dir>] [-prefix-install] [-bindir <dir>][-libdir <dir>]
       [-docdir <dir>] [-headerdir <dir>] [-plugindir <dir> ][-datadir <dir>]
       [-translationdir <dir>] [-sysconfdir <dir>] [-examplesdir<dir>]
       [-demosdir <dir>] [-buildkey <key>] [-release] [-debug]
       [-debug-and-release] [-shared] [-static] [-no-fast] [-fast][-no-largefile]
       [-largefile] [-no-exceptions] [-exceptions] [-no-accessibility]
       [-accessibility] [-no-stl] [-stl] [-no-sql-<driver>][-sql-<driver>]
       [-plugin-sql-<driver>] [-system-sqlite] [-no-qt3support][-qt3support]
       [-platform] [-D <string>] [-I <string>] [-L <string>][-help]
       [-qt-zlib] [-system-zlib] [-no-gif] [-qt-gif] [-no-libtiff][-system-libtiff]
       [-no-libpng] [-qt-libpng] [-system-libpng] [-no-libmng] [-qt-libmng]
        [-system-libmng] [-no-libjpeg] [-qt-libjpeg][-system-libjpeg] [-make <part>]
       [-no-make <part>] [-R <string>]  [-l <string>] [-no-rpath]  [-rpath] [-continue]
       [-verbose] [-v] [-silent] [-no-nis] [-nis] [-no-cups] [-cups][-no-iconv]
        [-iconv] [-no-pch] [-pch] [-no-dbus] [-dbus][-dbus-linked]
       [-no-separate-debug-info] [-no-mmx] [-no-3dnow] [-no-sse] [-no-sse2]
       [-qtnamespace <namespace>] [-separate-debug-info] [-armfpa]
       [-no-optimized-qmake] [-optimized-qmake] [-no-xmlpatterns][-xmlpatterns]
       [-no-phonon] [-phonon] [-no-phonon-backend] [-phonon-backend]
       [-no-gtkstyle] [-gtkstyle] [-no-svg] [-svg] [-no-webkit] [-webkit]
       [-no-scripttools] [-scripttools]
       [additional platform specific options (see below)]


您需要登录后才可以回帖 登录 | 注册

本版积分规则

关闭

i.MX8系列ARM cortex A53 M4 工控板上一条 /1 下一条

Archiver|手机版|小黑屋|天嵌 嵌入式开发社区 ( 粤ICP备11094220号 )

GMT+8, 2024-4-29 12:52 , Processed in 1.046869 second(s), 22 queries .

Powered by Discuz! X3.4

Copyright © 2001-2020, Tencent Cloud.

快速回复 返回顶部 返回列表