tslib 1 4 移植編譯總結

2021-09-07 03:55:13 字數 1717 閱讀 5835

在linux下面解壓,建立make.sh 指令碼 

export path=/hom/bbb/gcc-linaro-arm-linux-gnueabihf-4.8-2014.03_linux/bin:$path

export cross_compile=arm-linux-gnueabihf-

make clean

執行  ./autogen.sh  如報錯下面資訊,需要安裝autoconf, automake,libtool工具

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

解決方法:

apt-get install autoconf

apt-get install automake

apt-get install libtool

echo  "ac_cv_func_malloc_0_nonnull=yes" >arm-linux.cache

./configure --host=arm-linux --cache-file=arm-linux.cache --prefix=/home/yangkun/yh/tslib/01test

make

報錯ts_test.c:(.text+0x208): undefined reference to `rpl_malloc'

fbutils.o: in function `open_framebuffer':

fbutils.c:(.text+0x598): undefined reference to `rpl_malloc'

collect2: ld returned 1 exit status

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

如出現上面rpl_malloc報錯

遮蔽掉 config.h.in  裡面的#undef malloc

再次 make && make install

在目標目錄下面會生成 檔案 bin  etc  include  lib

把檔案拷貝到板子的/usr/local 目錄下面

tslib 檔案配置

1,/etc/ts.conf  檔案 module_raw input 注釋去掉

2,/bin/ts_calibrate 檔案拷貝到usr/bin 可直接執行,

3,tslib配置檔案 etc/profile.d/tslib.sh  修改

export ld_library_path=/usr/local/lib:$ld_library_path

export tslib_tsdevice=/dev/input/event0   /*觸控螢幕裝置檔名*/

export tslib_conffile=/usr/local/etc/ts.conf /*tslib配置檔案*/

export tslib_plugindir=/usr/local/lib/ts /*tslib需要載入模組所在目錄*/

export tslib_calibfile=/etc/pointercal  /*觸控螢幕校準資訊儲存檔案*/

export tslib_consoledevice=none   /*裝置臺裝置檔名none*/

export tslib_fbdevice=/dev/fb0      /*framebuffer 裝置檔名*/

至此 tslib 配置完全.

移植qt之交叉編譯tslib 1 4

export prefix path to your tslib 1.4 dir export cc path to your cross compiler bin dir autogen.sh is an important sh file,it produce configure file ac...

tslib1 4移植與使用

一.首先在ubuntu中安裝以下工具包 sudo apt get install autoconf sudo apt get install automake sudo apt get install libtool 二.編譯 tar xzf tslib 1.4.tar.gz cd tslib ex...

tslib 1 4的安裝與移植

一 移植環境 cpu s3c2440 sdram hy57v561620ftp h nor flash sst 39vf1601 2m nand flash k9f1g08u0b 128m 網絡卡晶元 dm9000ep 二 部落格位址 如有錯誤,歡迎指正。三 具體方法 之前把u boot的移植做完之...