ubuntu环境编译ncnn框架

【欢迎关注编码小哥,学习更多实用的编程方法】

需要下载ncnn源码,需要明确ping www.baidu.com 通不通,如果不通,则

修改/etc/resolv.conf

Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)

DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN

#nameserver 192.168.93.2

#nameserver 127.0.1.1

#search localdomain

nameserver 8.8.8.8

nameserver 114.114.114.114

重启网络

/etc/init.d/networking restart

/sbin/dhclient

此时,网络已经通了,但是git clone https://github.com/Tencent/ncnn.git时,出现:

fatal: unable to access 'https://github.com/Tencent/ncnn.git/': Operation timed out after 0 milliseconds with 0 out of 0 bytes received

则取消代理:

git config --global --unset http.proxy

git config --global --unset https.proxy

git clone https://github.com/Tencent/ncnn.git

root@ubuntu-virtual-machine:/home/ncnn# mkdir build

root@ubuntu-virtual-machine:/home/ncnn# cd build

root@ubuntu-virtual-machine:/home/ncnn/build# cmake -DNCNN_VULKAN=OFF ..

编译ncnn情况如下图所示:

make install安装ncnn

相关推荐
大聪明-PLUS3 小时前
面向开发者的实用 GNU/Linux 命令(第二部分)
linux·嵌入式·arm·smarc
sorry#7 小时前
top简单使用
linux·运维
半壶清水8 小时前
开源免费的在线考试系统online-exam-system部署方法
运维·ubuntu·docker·开源
QQ__17646198248 小时前
Ubuntu系统创建新用户与删除用户
linux·运维·服务器
渣渣盟9 小时前
Linux邮件服务器快速搭建指南
linux·服务器·开发语言
6极地诈唬9 小时前
【PG漫步】DELETE不会改变本地文件的大小,VACUUM也不会
linux·服务器·数据库
ArrebolJiuZhou9 小时前
00 arm开发环境的搭建
linux·arm开发·单片机·嵌入式硬件
谷雨不太卷9 小时前
Linux_文件权限
linux·运维·服务器
无泪无花月隐星沉10 小时前
uos server 1070e lvm格式磁盘扩容分区
linux·运维·uos
食咗未10 小时前
Linux USB HOST EXTERNAL STORAGE
linux·驱动开发