标签:
【参考】http://www.lijingquan.net/2016/07/08/build-kernel-busybox-qt5-6-tslib-imx28/
HOST:ubuntu 12.04LTS, 64bit, Core i7-4790K,gcc version 4.6.3 (Ubuntu/Linaro 4.6.3-1ubuntu5)
CROSS-TOOLCHAIN:gcc version 4.4.1 (Sourcery G++ Lite 2009q3-67)
SRC:
tslib-1.4.tar.gz
qt-everywhere-opensource-src-5.6.1.tar.gz
qt-opensource-linux-x64-5.6.1.run
虽说网上已经有好多资源了,但是遇到这样或那样的问题,有些问题花了一些时间才搞的定,其实冷静下来,认真思考,就可以节约很多时间了。
〇、32bit compatible
因为交叉编译工具都是32位,所以需要使用32位兼容库:
sudo apt-get install ia32-libs
另外,需要注意5.6.1linux开发软件包只有64位的,用32位的系统是不行的。
一、tslib
tslib是触屏相关的库,既然是做UI,还是建议把这个带上,以免回头重编qt。
tslib的编译比较简单,注意需要GNU Autotools三大件:
sudo apt-get install automake autogen autoconf libtool
1)解压tslib-1.4.tar.gz;
tar zxvf tslib-1.4.tar.gz
cd tslib/
acinclude.m4 autogen-clean.sh ChangeLog COPYING etc m4 NEWS README tests AUTHORS autogen.sh configure.ac CVS INSTALL Makefile.am plugins src tslib.pc.in
./autogen.sh
acinclude.m4 autogen-clean.sh ChangeLog config.sub COPYING etc ltmain.sh Makefile.in plugins tests aclocal.m4 autogen.sh config.guess configure CVS INSTALL m4 missing README tslib.pc.in AUTHORS autom4te.cache config.h.in configure.ac depcomp install-sh Makefile.am NEWS src
./configure --host=arm-linux ac_cv_func_malloc_0_nonnull=yes --cache-file=arm-linux.cache -prefix=/opt/tslib
acinclude.m4 autogen-clean.sh config.guess config.status COPYING INSTALL m4 missing src tslib.pc.in aclocal.m4 autogen.sh config.h config.sub CVS install-sh Makefile NEWS stamp-h1 arm-linux.cache autom4te.cache config.h.in configure depcomp libtool Makefile.am plugins tests AUTHORS ChangeLog config.log configure.ac etc ltmain.sh Makefile.in README tslib-0.0.pc
之后,make && sudo make install 就可以了。
cd /opt/tslib/lib/
libts-0.0.so.0 libts-0.0.so.0.1.1 libts.la libts.so pkgconfig ts
查看一下是否编译成功了?
file libts-0.0.so.0.1.1
libts-0.0.so.0.1.1: ELF 32-bit LSB shared object, ARM, version 1 (SYSV), dynamically linked, not stripped
希望能支持鼠标输入功能,取消第2行的注释:
vim /opt/tslib/etc/vim ts.conf
# Uncomment if you wish to use the linux input layer event interface module_raw input # Uncomment if you‘re using a Sharp Zaurus SL-5500/SL-5000d # module_raw collie # Uncomment if you‘re using a Sharp Zaurus SL-C700/C750/C760/C860 # module_raw corgi # Uncomment if you‘re using a device with a UCB1200/1300/1400 TS interface # module_raw ucb1x00 # Uncomment if you‘re using an HP iPaq h3600 or similar # module_raw h3600 # Uncomment if you‘re using a Hitachi Webpad # module_raw mk712 # Uncomment if you‘re using an IBM Arctic II # module_raw arctic2 module pthres pmin=1 module variance delta=30 module dejitter delta=100 module linear
标签:
原文地址:http://www.cnblogs.com/duanyongzhen/p/5719084.html