移植tslib(s3c2440)
解壓安裝tslib
# tar -zxvf tslib-1.4.tar.gz
# cd tslib
# ./autogen.sh
#echo “ac_cv_func_malloc_0 _nonnull=yes”>arm-linux.cache
# ./configure –host=arm-linux –cache-file=arm-linux.cache -prefix=/usr/local/tslib ac_cv_func_malloc_0_nonnull=yes
# make
# make install
這里需要注意的是ac_cv_func_malloc_0_nonnull=yes ,不加這句的話會出現編譯錯誤,echo “ac_cv_func_malloc_0 _nonnull=yes”>arm-linux.cache 也是為了解決這個錯誤,后來有次發(fā)現echo 不起作用,便把參數直接加入了./configure
錯誤如下:
ts_test.o: In function main':
ts_test.c:(.text+0x1d4): undefined reference torpl_malloc’
fbutils.o: In function open_framebuffer':
fbutils.c:(.text+0x9f4): undefined reference torpl_malloc’
collect2: ld returned 1 exit status
總結
以上是生活随笔為你收集整理的移植tslib(s3c2440)的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 移植Linux3.4.2版本内核到min
- 下一篇: 异步返回参数封装