Linux installation tslib-1.4 error and solution

  

First download tslib-1.4.tar.gz

Unzip: tar xzvf tslib-1.4tzr.gz

Enter tslib directory

cd tslib

1. Execute ./autogen.sh

Prompt error one:

./autogen.sh: 4: autoreconf: not found

Solution: sudo apt-get Install autoconf automake libtool

2. Execute ./configure --host=arm-linux --prefix=/usr/local/tslib

Prompt error 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

The default method is that the parameters after the ./configure are not set correctly at compile time. The correct settings are as follows:

./configure --prefix=/usr/local/tslib/--host=arm-linux ac_cv_func_malloc_0_nonnull= Yes

3.Execute make

4. Execute sudo make install
zh-CN"],null,[0.88673145],zh-CN"]]]

Copyright © Windows knowledge All Rights Reserved