1、安裝前的準備工作:
確保下面軟體已經安裝:
# apt-get install autoconf
# apt-get install automake
# apt-get install libtool
3、配置
# ./autogen-clean.sh
# ./autogen.sh
# echo "ac_cv_func_malloc_0_nonnull=yes">arm-linux.cache
# ./configure --host=arm-none-linux-gnueabi --cache-file=arm-none-linux-gnueabi.cache --enable-inputapi=no --prefix=/home/wu/devil/tslib1.4
其中prefix下面配置的是你的安裝路徑
4、編譯
在終端裡以root使用者的身份進入tslib目錄裡面,執行make
5、安裝
make install
編譯生成的庫,標頭檔案等都拷貝至prefix制定的路徑中。
如下圖所示:
6、修改con內容
開啟安裝路徑下的/etc/ts.conf檔案,修改其內容。
# vi /home/wu/devil/tslib1.4/etc/ts.conf
搜尋定位至#module_raw input,
把行首的注釋符去掉,但要注意行首不要留有空格,即文字是頂格的,不然之後會出現段錯誤 (segmentational fault)。如下圖所示:
8、 設定開發板環境變數
通過超級終端, 開啟環境變數檔案/etc/profile
# vi /etc/profile
新增如下內容:
export tslib_root=/usr/local/tslib
export tslib_tsdevice=/dev/input/event1
export qws_mouse_proto=tslib:/dev/input/event1
export tslib_calibfile=/etc/pointercal
export tslib_conffile=$tslib_root/etc/ts.conf
export tslib_plugindir=$tslib_root/lib/ts
export tslib_fbdevice=/dev/fb0
export tslib_consoledevice=none
export ld_library_path=$ld_library_path:$tslib_root/lib
其中,tslib_root更換為自己實際存放的路徑;
另外,tslib_tsdevice 和qws_mouse_proto這兩項需要檢視自己的板子的觸控螢幕裝置對應/dev/input/下那個檔案
9、測試
重啟開發板(使系統讀取profile環境變數),進入tslib/bin目錄,執行觸控螢幕校準程式
# ./ts_calibrate
如果出現tslib的觸控螢幕五點校準畫面,至此,tslib的安裝移植成功完成。
也可執行此目錄下其他的程式來體驗觸控螢幕!
tslib安裝以及使用
2.然後在ubuntu編譯 tar xzf tslib 1.4.tar.gz cd tslib autogen.sh mkdir tmp 建立安裝目錄 echo ac cv func malloc 0 nonnull yes arm linux.cache 設定引數 configure host a...
tslib編譯和安裝
系統 ubuntu 10.4 編譯工具 arm linux gcc 4.5.1 ctng 1.8.1 fa 編譯目標 tslib 1 安裝 arm linux gcc 4.5.1,這個不講了 3 進入kergoth tslib f6c499a目錄kergoth tslib f6c499a 4 安裝庫...
ubuntu下IE的安裝
系統ubuntu6.06,欲讀取某些格式的檔案,需win下程式的支援,於是安裝wine,再裝easywine。跑起來剛裝好的ie很慢,於是做了下面的修改 在 usr share x11 fonts 100dpi fonts.dir usr share x11 fonts 75dpi fonts.di...