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

相关推荐
口嗨农民工26 分钟前
exiftool 分析jpeg图片使用
linux
大明者省33 分钟前
pycharm解释器使用anaconda建立的虚拟环境里面的python,无需系统里面安装python。
linux·python·pycharm
WillWolf_Wang1 小时前
Linux 编译 Android 版 QGroundControl 软件并运行到手机上
android·linux·智能手机
岚天start1 小时前
Shell脚本一键监控平台到期时间并钉钉告警推送指定人
linux·shell·钉钉告警·计划任务·监控到期·平台到期
白鹭2 小时前
MySQL主从复制进阶(GTID复制,半同步复制)
linux·运维·数据库·mysql·集群
叫我Zoe就行2 小时前
MySQL集群——主从复制
linux·数据库·学习·mysql
博语小屋3 小时前
进程控制之进程等待
linux
Dobby_053 小时前
【Linux】网络安全管理:SELinux 和 防火墙联合使用 | Redhat
linux·运维·云原生·防火墙·selinux
davenian3 小时前
< 自用文 OS 有关 > (续)发现正在被攻击 后的自救 Fail2ban + IPset + UFW 工作流程详解
ubuntu·bash·fail2ban·ipset
wheeldown3 小时前
【Linux】Linux进程状态和僵尸进程:一篇看懂“进程在忙啥”
linux·运维·服务器·进程