标签:qt qt-embedded
使用触摸屏,首先安装触摸屏矫正程序。
下载并解压tslib-1.4,进入主目录,执行:
1 [root@localhost ~]#./autogen.sh 2 [root@localhost ~]#echo "ac_cv_func_malloc_0_nonnull=yes" >arm-none-linux-gnueabi.cache 3 [root@localhost ~]#./configure --host=arm-linux --cache-file=arm-linux.cache --prefix=/安装目录 4 [root@localhost ~]#make 5 [root@localhost ~]#make install暂且搁置一边。现在开始编译安装qt-embedded-linux-opensource-src-4.5.3
解压后进入目录,首先使用configure配置并生成makefile文件,开始我是在挂载到ntfs分区中执行到,但是不成功,也有可能是目录中有中文到原因,后来直接拷贝到Centos家目录,执行成功
[root@localhost ~]#./configure -prefix (想要将qte安装到哪)-embedded arm -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 -nomake tools -nomake examples -nomake docs -nomake demo -no-nis -no-cups -no-iconv -no-dbus -no-openssl -xplatform qws/linux-arm-g++ -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 -qt-mouse-tslib -qt-gfx-qvfb -qt-kbd-qvfb -qt-mouse-qvfb -qt-mouse-linuxtp -I/(tslib的安装目录) /tslib/include -L/(tslib的安装目录)/tslib/lib
export QTLIB=/usr/lib export TSLIB_ROOT=/usr/local/tslib export TSLIB_TSDEVICE=/dev/event0 export TSLIB_CONFFILE=/usr/local/tslib/etc/ts.conf export TSLIB_PLUGINDIR=/usr/local/tslib/lib/ts export TSLIB_CALIBFILE=/etc/pointercal export TSLIB_CONSOLEDEVICE=none export TSLIB_FBDEVICE=/dev/fb0 export TSLIB_TSEVENTTYPE=H3600 export LD_LIBRARY_PATH=$QTLIB:/usr/local/lib:$LD_LIBRARY_PATH export QWS_SIZE=480*272 export QWS_MOUSE_PROTO=TSLIB:/dev/event0 export QWS_DISPLAY="LinuxFb;mmWidth35;mmHeight45:0" if [ -f "$TSLIB_CALIBFILE" ];then wiggly -qws& else ts_calibrate wiggly -qws& fi
TQ2440实现触摸屏和qt图形 解决segmentation fault,布布扣,bubuko.com
TQ2440实现触摸屏和qt图形 解决segmentation fault
标签:qt qt-embedded
原文地址:http://blog.csdn.net/hanglinux/article/details/25402163