当前位置: 技术问答>linux和unix
编译tslib1.4触摸屏库,请高手指点下!
来源: 互联网 发布时间:2017-02-20
本文导语: #cd tslib-1.4 #build.sh 修改该脚本文件为如下: #/bin/sh export CC=arm-linux-gcc ./autogen.sh #./configure --prefix=/mnt/nfs/tslib1.4-install --host=arm-linux echo "ac_cv_func_malloc_0_nonnull=yes" >arm-linux.cache ./configure --host=arm-linux --cache-file=arm-linux....
#cd tslib-1.4
#build.sh
修改该脚本文件为如下:
#/bin/sh
export CC=arm-linux-gcc
./autogen.sh
#./configure --prefix=/mnt/nfs/tslib1.4-install --host=arm-linux
echo "ac_cv_func_malloc_0_nonnull=yes" >arm-linux.cache
./configure --host=arm-linux --cache-file=arm-linux.cache-prefix=$PWD/../tslib1.4-install
make
make install
编译后保存
但是出现错误:
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/sprife/qt4/for_arm/tslib-1.4/tests'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/sprife/qt4/for_arm/tslib-1.4'
make: *** [all] Error 2
Making install in etc
make[1]: Entering directory `/home/sprife/qt4/for_arm/tslib-1.4/etc'
make[2]: Entering directory `/home/sprife/qt4/for_arm/tslib-1.4/etc'
/bin/sh ../mkinstalldirs /usr/local/etc
../mkinstalldirs: ../mkinstalldirs: 没有那个文件或目录
make[2]: *** [install-sysconfDATA] Error 127
make[2]: Leaving directory `/home/sprife/qt4/for_arm/tslib-1.4/etc'
make[1]: *** [install-am] Error 2
make[1]: Leaving directory `/home/sprife/qt4/for_arm/tslib-1.4/etc'
make: *** [install-recursive] Error 1
#build.sh
修改该脚本文件为如下:
#/bin/sh
export CC=arm-linux-gcc
./autogen.sh
#./configure --prefix=/mnt/nfs/tslib1.4-install --host=arm-linux
echo "ac_cv_func_malloc_0_nonnull=yes" >arm-linux.cache
./configure --host=arm-linux --cache-file=arm-linux.cache-prefix=$PWD/../tslib1.4-install
make
make install
编译后保存
但是出现错误:
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/sprife/qt4/for_arm/tslib-1.4/tests'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/sprife/qt4/for_arm/tslib-1.4'
make: *** [all] Error 2
Making install in etc
make[1]: Entering directory `/home/sprife/qt4/for_arm/tslib-1.4/etc'
make[2]: Entering directory `/home/sprife/qt4/for_arm/tslib-1.4/etc'
/bin/sh ../mkinstalldirs /usr/local/etc
../mkinstalldirs: ../mkinstalldirs: 没有那个文件或目录
make[2]: *** [install-sysconfDATA] Error 127
make[2]: Leaving directory `/home/sprife/qt4/for_arm/tslib-1.4/etc'
make[1]: *** [install-am] Error 2
make[1]: Leaving directory `/home/sprife/qt4/for_arm/tslib-1.4/etc'
make: *** [install-recursive] Error 1
|
你的错误没遇见过,我记得编译这个的时候,没什么错误直接就过的,http://blog.csdn.net/qq345160153/article/details/7090748
你看看按我的方法可以吗
你看看按我的方法可以吗