移植Tslib
1 下载源码https://github.com/kergoth/tslib
tslib-master.zip
2 解压,cd tslib-master
unzip tslib-master.zip
3 生成configure
./autogen.sh
出错:
./autogen.sh: 3: autoreconf: not found
解决:
apt-get install autoconf
./autogen.sh
出错:
Can't exec "libtoolize": No such file or directory at /usr/bin/autoreconf line 196.
Use of uninitialized value in pattern match (m//) at /usr/bin/autoreconf line 196.
configure.ac:24: error: possibly undefined macro: AC_DISABLE_STATIC
If this token and others are legitimate, please use m4_pattern_allow.
See the Autoconf documentation.
configure.ac:25: error: possibly undefined macro: AC_ENABLE_SHARED
configure.ac:26: error: possibly undefined macro: AC_LIBTOOL_DLOPEN
configure.ac:27: error: possibly undefined macro: AC_PROG_LIBTOOL
autoreconf: /usr/bin/autoconf failed with exit status: 1
解决:
apt-get install libtool
./autogen.sh
4 配置,生成Makefile
./configure --host=arm-linux --prefix=`pwd`/install --enable-debug=no
5 编译
make
6 安装
make install
在指定的安装目录下生成/bin /etc /lib /include文件夹,并放入相应的文件。如果
相应的文件夹已经在,则把相应的文件放入对应的文件夹。
7 运行测试程序,需要配置如下参数
export TSLIB_TSDEVICE=/dev/event1
export TSLIB_CONFFILE=/etc/ts.conf
export TSLIB_PLUGINDIR=/lib/ts
export TSLIB_CALIBFILE=/etc/pointercal
8 运行ts_calibrate出错No raw modules loaded.
修改etc\ts.conf第一句# module_raw input去掉屏蔽
9 运行ts_test前要先运行ts_calibrate进行校准
1 下载源码https://github.com/kergoth/tslib
tslib-master.zip
2 解压,cd tslib-master
unzip tslib-master.zip
3 生成configure
./autogen.sh
出错:
./autogen.sh: 3: autoreconf: not found
解决:
apt-get install autoconf
./autogen.sh
出错:
Can't exec "libtoolize": No such file or directory at /usr/bin/autoreconf line 196.
Use of uninitialized value in pattern match (m//) at /usr/bin/autoreconf line 196.
configure.ac:24: error: possibly undefined macro: AC_DISABLE_STATIC
If this token and others are legitimate, please use m4_pattern_allow.
See the Autoconf documentation.
configure.ac:25: error: possibly undefined macro: AC_ENABLE_SHARED
configure.ac:26: error: possibly undefined macro: AC_LIBTOOL_DLOPEN
configure.ac:27: error: possibly undefined macro: AC_PROG_LIBTOOL
autoreconf: /usr/bin/autoconf failed with exit status: 1
解决:
apt-get install libtool
./autogen.sh
4 配置,生成Makefile
./configure --host=arm-linux --prefix=`pwd`/install --enable-debug=no
5 编译
make
6 安装
make install
在指定的安装目录下生成/bin /etc /lib /include文件夹,并放入相应的文件。如果
相应的文件夹已经在,则把相应的文件放入对应的文件夹。
7 运行测试程序,需要配置如下参数
export TSLIB_TSDEVICE=/dev/event1
export TSLIB_CONFFILE=/etc/ts.conf
export TSLIB_PLUGINDIR=/lib/ts
export TSLIB_CALIBFILE=/etc/pointercal
8 运行ts_calibrate出错No raw modules loaded.
修改etc\ts.conf第一句# module_raw input去掉屏蔽
9 运行ts_test前要先运行ts_calibrate进行校准