天天看點

海思Hi3559av100交叉編譯移植tslib

部分來自網絡,并整理驗證。

确認已安裝以下元件

apt-get install autoconf automake libtool      

1、下載下傳源碼:

​​https://github.com/libts/tslib​​

選擇zip下載下傳

2、編譯

進入解壓後的目錄

./autogen.sh
./configure --prefix=/opt/tslib_hi3559av100 --host=arm-linux CC=aarch64-himix100-linux-gcc
make
make install      

編譯生成的庫位于/opt/tslib_hi3559av100

将tslib_hi3559av100通過SD卡或nfs挂載到嵌入式裝置中

3、設定環境變量

export TSLIB_ROOT=/nfsroot/tslib_hi3559av100
export TSLIB_TSDEVICE=/dev/input/event0
export TSLIB_TSEVENTTYPE=input
export TSLIB_CONFFILE=/nfsroot/tslib_hi3559av100/etc/ts.conf
export TSLIB_PLUGINDIR=/nfsroot/tslib_hi3559av100/lib/ts
export TSLIB_CONSOLEDEVICE=none               
export TSLIB_FBDEVICE=/dev/fb1
export LD_LIBRARY_PATH=/lib:/usr/lib:/usr/local/lib:$QT_ROOT/lib:$TSLIB_ROOT/lib:$TSLIB_ROOT/lib/ts      

/dev/input/event0和/dev/fb1根據實際情況選擇

4、運作海思hifb

繼續閱讀