首页 / 操作系统 / Linux / Linux下交叉编译安装tslib-1.4出错及解决方法
首先下载tslib-1.4.tar.gz解压:tar xzvf tslib-1.4tzr.gz进入tslib目录cd tslib1.执行./autogen.sh提示错误一:./autogen.sh: 4: autoreconf: not found解决方法:sudo apt-get install autoconf automake libtool2.执行./configure --host=arm-linux --prefix=/usr/local/tslib提示错误二:ts_test.o(.text+0x218): In function `main":: undefined reference to `rpl_malloc"fbutils.o(.text+0x234): In function `open_framebuffer":: undefined reference to `rpl_malloc"collect2: ld returned 1 exit statusmake[2]: *** [ts_test] Error 1make[2]: Leaving directory `/home/gfpeak/Desktop/tslib/tests"make[1]: *** [all-recursive] Error 1make[1]: Leaving directory `/home/gfpeak/Desktop/tslib"make: *** [all] Error 2解决方法是在编译的时候 ./configure 后面的参数没有设置对,正确设置如下:./configure --prefix=/usr/local/tslib/ --host=arm-linux ac_cv_func_malloc_0_nonnull=yes3.执行make4.执行sudo make install