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

相关推荐
深思慎考21 分钟前
微服务即时通讯系统(服务端)——用户子服务实现逻辑全解析(4)
linux·c++·微服务·云原生·架构·通讯系统·大学生项目
请叫我阿杰1 小时前
Ubuntu系统安装.NET SDK 7.0
数据库·ubuntu·.net
Red丶哞2 小时前
Docker 安装部署Prometheus
linux·云原生·容器·kubernetes
emiya_saber3 小时前
Linux 文件系统基本管理
linux·运维·服务器
夜月yeyue3 小时前
Linux 内核驱动加载机制
linux·服务器·stm32·嵌入式硬件
牢七4 小时前
Linux新
linux
C.咖.4 小时前
Linux环境下——Git 与 GitHub
linux·git·github·远程仓库
Empty_7776 小时前
Ansible进行Nginx编译安装的详细步骤
linux·nginx·ansible
猪在黑魔纹里6 小时前
docker run hello-world失败、报错
linux·docker·容器
算法与编程之美6 小时前
探究pytorch中多个卷积层和全连接层的输出方法
人工智能·pytorch·深度学习·神经网络·cnn