tslib1.4在ubuntu9.10上完美编译过程笔记

1.首先下载tslib-1.4.tar.gz,下载地址:
http://blog.chinaunix.net/u2/75270/showart_1793535.html里面自己找
2.解压文件后
记得现安装三个东西
#sudo apt-get install autoconf
#sudo apt-get install automake
#sudo apt-get install libtool
确认已经安装并设置好arm-linux-gcc
然后进行编译

#cd tslib/
#export CC=/usr/local/arm/3.4.1/bin/arm-linux-gcc
#export CXX=/usr/local/arm/3.4.1/bin/arm-linux-g++
运行
#./autogen.sh
#echo "ac_cv_func_malloc_0_nonnull=yes" >arm-linux.cache
配置安装参数
#./configure --host=arm-linux --cache-file=arm-linux.cache --enable-inputapi=no PLUGIN_DIR=/usr/local/arm/tslib/plugins -prefix=/usr/local/arm/tslib/build -host=arm-linux --cache-file=arm-linux.cache 2>&1 | tee conf_log
编译
#make 2>&1 | tee make_log
#make install
编译后会出现bulid文件夹
#cd build/etc
#gedit ts.conf
去掉module_raw input前面的#号和空格移植到开发板
把build 文件夹拷贝到开发板相应的地方。我的就是拷贝到/home/tslib下
环境变量

export T_ROOT=/home/tslib/build
export LD_LIBRARY_PATH=$T_ROOT/lib
export TSLIB_CONSOLEDEVICE=none
export TSLIB_FBDEVICE=/dev/fb0
export TSLIB_TSDEVICE=/dev/event0
export TSLIB_PLUGINDIR=$T_ROOT/lib/ts
export TSLIB_CONFFILE=$T_ROOT/etc/ts.conf
export TSLIB_CALIBFILE=/home/tslib/build/etc/pointercal
移植QT4后的我的环境变量:
export QTDIR=/home/qt44arm
export TS_ROOT=/home/tslib/build
export PATH=$QTDIR/bin:$PATH
export QWS_DISPLAY=LinuxFb:mmWidth100:mmHeight130:0
export QWS_SIZE=640x480
export QT_QWS_FONTDIR=/home/qt44arm/lib/fonts 
export PONTERCAL_FILE=$TS_ROOT/etc/pointercal
export TSLIB_TSEVENTTYPE=H3600
export TSLIB_CONSOLEDEVICE=none
export TSLIB_FBDEVICE=/dev/fb0
export TSLIB_TSDEVICE=/dev/event0
export TSLIB_CONFFILE=$TS_ROOT/etc/ts.conf
export TSLIB_PLUGINDIR=$TS_ROOT/lib/ts
export TSLIB_CALIBFILE=$TS_ROOT/etc/pointercal
export QWS_MOUSE_PROTO="Tslib:/dev/event0" 
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$TS_ROOT/lib
export LD_LIBRARY_PATH=$QTDIR/lib:/lib:/usr/lib:$LD_LIBRARY_PATH

kenter原创,转载记得注明kenter1643.iteye.com出版

你可能感兴趣的:(linux,cache,gcc,qt,出版)