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
5. 在開發板上運行校正程序時出現 No raw modules loaded
解決方法
把 tslib/etc 目錄下的?ts.conf 的 "#module_raw input"的注釋符號"#"去掉。但記住不要在前面留有空格 ,否則還會出現錯誤。
總結
以上是生活随笔為你收集整理的tslib 编译移植步骤的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: Linux下LCD 10分钟自动关屏的问
- 下一篇: qt5.6.3版本移植arm