日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 编程资源 > 编程问答 >内容正文

编程问答

tslib 编译移植步骤

發布時間:2024/9/5 编程问答 33 豆豆
生活随笔 收集整理的這篇文章主要介紹了 tslib 编译移植步骤 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

下載的問題不再記錄。移植版本為1.4.

編譯步驟

# ./autogen.sh
# ./configure --host=arm-linux-gnueabihf --prefix=/qt/tslib-1.4/install --cache-file=arm-none-linux-gnueabi.cache --enable-inputapi=no ac_cv_func_malloc_0_nonnull=yes

# make -j4

# make install

只要環境沒問題,基本直接過。如果出錯,參考下面解決,解決不了的可以百度。

http://blog.csdn.net/lwbeyond/article/details/7694749

1.執行./autogen.sh

提示錯誤:

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

解決方法:

sudo apt-get install autoconf automake libtool?

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

提示錯誤:

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?

解決方法:

在編譯的時候 ./configure 后面的參數沒有設置對,正確設置如下:
./configure --prefix=/usr/local/tslib/ --host=arm-linux ac_cv_func_malloc_0_nonnull=yes?

3. 執行 make 出錯

error: call to ‘__open_missing_mode’ declared with attribute error: open with O_CREAT in second argument needs 3 arguments

解決方法:

修改 cal_fd = open ("/etc/pointercal", O_CREAT | O_RDWR ,0) (據說是交叉編譯器版本問題)

4. 編譯 QT 時報錯找不到 tslib 庫

交叉編譯器是 arm-none-linux-gnu-eabi 4.2.0

The tslib functionality test failed!(已指定了I和L參數), 進入tslib/bin下 file 發現編譯生成的是x86版本,遂將? --host 改為arm-none-linux-gnueabi, 生成了arm版本(此時configure不再報錯)

5. 在開發板上運行校正程序時出現 No raw modules loaded

解決方法

把 tslib/etc 目錄下的?ts.conf 的 "#module_raw input"的注釋符號"#"去掉。但記住不要在前面留有空格 ,否則還會出現錯誤。





與50位技術專家面對面20年技術見證,附贈技術全景圖

總結

以上是生活随笔為你收集整理的tslib 编译移植步骤的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。