移植tslib(s3c2440)

来源:互联网 发布:网络借钱不还的后果 编辑:程序博客网 时间:2024/05/18 03:20

解压安装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 也是为了解决这个错误,后来有次发现echo 不起作用,便把参数直接加入了./configure
错误如下:
ts_test.o: In function main':
ts_test.c:(.text+0x1d4): undefined reference to
rpl_malloc’
fbutils.o: In function open_framebuffer':
fbutils.c:(.text+0x9f4): undefined reference to
rpl_malloc’
collect2: ld returned 1 exit status

    ![这里写图片描述](http://img.blog.csdn.net/20170608231810263?watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQvYTExNzE5MzY3Njc=/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70/gravity/SouthEast)
原创粉丝点击