您的位置:首页 > 其它

NCNN移植ARM爬坑日志-protobuf安装 四

2018-01-16 14:32 337 查看
>1 首先进入https://pypi.python.org/pypi/protobuf/2.6.0,下载protobuf2.6.0

2>解压文件

>3 进入解压目录,在terminal中输入./autogen.sh,因为里面有下载项,国内需要翻墙,所以最好自己先想办法下载好,放入此目录下,

出现问题1:

+ autoreconf -f -i-Wall,no-obsolete
m4: unrecognized option '--gnu'
Try `m4 --help' for more information.
autom4te: m4 failed with exit status: 1
aclocal: error: echo failed with exit status: 1
autoreconf: aclocal failed with exit status: 1

问题分析及解决方法:
主要是因为automake和autoconf没有安装,因为是在arm板上面安装,所以采用源码安装

安装autoconf

wget http://mirrors.kernel.org/gnu/autoconf/autoconf-2.65.tar.gz \

&& tar -xzvf autoconf-2.65.tar.gz \

&& cd autoconf-2.65 \

&& ./configure –prefix=/usr/local

make && make install

安装automake

wget http://mirrors.kernel.org/gnu/automake/automake-1.11.tar.gz \

&& tar xzvf automake-1.11.tar.gz \

&& cd automake-1.11 \

&& ./configure –prefix=/usr/local

make && make install

把上面两个工具安装好了之后,此问题可以通过

>4 运行./configure

>5 make
>6 make install
最终通过,真的快哭出来了,困扰了好久
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息