Select a version to download on tslib's official github (URL below).
https://github.com/libts/tslib/tags
The version used this time is:tslib-1.22.tar.gz
After the download is complete, decompress it in ubuntu14.04
tar xzvf tslib-1.22.tar.gz
Configure the compilation output path of the cross compiler tool and tslib
./configure --host=arm-hisiv400-linux ac_cv_func_malloc_0_nonnull=yes --cache-file=arm-linux.cache --prefix=./arm-tslib
--host=arm-hisiv400-linux
The name of the cross-compiler tool to use for the configuration
--prefix=./arm-tslib
The path to configure the output of cross-compiled libraries and executables
Then this library is used on Qt and needs to be used together with Qt source code compilation