1 下载源码tslib-1.4.tar.gz
2 解压,cd tslib
3 生成configure
./autogen.sh
4 配置,生成Makefile
./configure --host=arm-linux(平台) --prefix=/(安装目录)
--enable-debug=no
5 编译
make
6 安装
make install
在指定的安装目录下生成/bin /etc /lib /include四个文件夹,并放入相应的文件。如果 相应的文件夹已经在,则把相应的文件放入对应的文件夹。 可能会出现的错误: 1.autoconf no found 解决:安装sudo apt-get install autoconf 2../autogen.sh错误提示: Can't exec "libtoolize": No such file or directory at /usr/bin/autoreconf line 190. Use of uninitialized value $libtoolize in pattern match (m//) at /usr/bin/autoreconf line 190. configure.ac:25: 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:26: error: possibly undefined macro: AC_ENABLE_SHARED configure.ac:27: error: possibly undefined macro: AC_LIBTOOL_DLOPEN configure.ac:28: error: possibly undefined macro: AC_PROG_LIBTOOL autoreconf: /usr/bin/autoconf failed with exit status: 1 解决方法:sudo apt-get install libtool 目前暂时发现这两个! |
|