移植tslib
安装需要用到的工具
# apt-get install autoconf(或autoconf2.13) # apt-get install automake # apt-get install libtool
从https://github.com/kergoth/tslib 下载tslib,解压 切换到tslib目录
./autogen.sh ./configure --prefix=/usr/local/tslib/ CC=arm-linux-gcc --host=arm-linux ac_cv_func_malloc_0_nonnull=yes make make install
编译qt/embedded 4.6.3
打开mkspecs/common/linux.conf,在QMAKE_LIBS_THREAD变量添加一个参数“-lts” 使用下面的配置选项
./configure -embedded arm -platform qws/linux-x86-g++ -xplatform qws/linux-arm-g++ -depths 16,24,32 -no-cups -no-largefile\ -no-accessibility -no-openssl -qt-mouse-pc -qt-mouse-linuxtp -qt-mouse-linuxinput -plugin-mouse-linuxtp -plugin-mouse-pc -qt-mouse-tslib make make install
其他
把命令写成编译脚本,如下
#/bin/bash rm -fr qt-everywhere-opensource-src-4.6.3 rm -fr /usr/local/Trolltech/QtEmbedded-4.6.3-arm tar xfvz qt-everywhere-opensource-src-4.6.3.tar.gz cd qt-everywhere-opensource-src-4.6.3 echo yes | ./configure -embedded arm -platform qws/linux-x86-g++ -xplatform qws/linux-arm-g++ -depths 16,24,32 -no-cups -no-largefile\ -no-accessibility -no-openssl -qt-mouse-pc -qt-mouse-linuxtp -qt-mouse-linuxinput -plugin-mouse-linuxtp -plugin-mouse-pc -qt-mouse-tslib make && make install
问题解决
./configure -embedded arm -xplatform qws/linux-arm-gnueabi-g++ -little-endian -host-little-endian -make tools -make tools 解决Qt creator 添加QT Versions时提示"No qmlviewer installed."的问题
一些可以参考的文章
http://blog.csdn.net/vacole/article/details/6873314
http://developer.qt.nokia.com/doc/qt-4.8/qt-embedded-crosscompiling.html
http://processors.wiki.ti.com/index.php/Building_Qt
QT下触摸屏和键盘接口移植[[1]]
Tslib-1.0移植[[2]]
tslib[[3]]
移植tslib到mini2440[[4]]
Qt 4.5.1触摸屏和Sqlite 3 移植教程 下篇(1)[[5]]
Qt for Embedded Linux[[6]]