编译tslib1.4的错误和解决方法

错误1

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

 

解决方法在ubuntu下安装lobtool.deb

错误2

 

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 status

make[2]: *** [ts_test] Error 1

make[2]: Leaving directory `/home/gfpeak/Desktop/tslib/tests'

make[1]: *** [all-recursive] Error 1

make[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=yes

 

错误3

在开发板上运行校正程序时出现No raw modules loaded

 

解决方法是把  tslib/etc目录下的ts.conf "#module_raw input"的注释符号去掉。但记住不要在前面留有 空格 ,否则会出现错误4

 

错误4

 在开发板上运行校正程序时出现Segmentation fault

 

解决方法是看错误3

 

你可能感兴趣的:(function,ubuntu,File,input,token,reference)