移植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进行校准
本文详细介绍了在尝试移植Tslib时遇到的构建问题及其解决方案,包括安装依赖库(autoconf和libtool),配置Makefile,以及运行测试程序的完整步骤。通过遵循这些步骤,可以成功解决构建过程中的错误并完成Tslib的移植。
4265

被折叠的 条评论
为什么被折叠?



