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

相关推荐
烤鱼骑不快3 小时前
linux 软Raid
linux
hhwyqwqhhwy4 小时前
Linux file->private
linux·运维·服务器
WongKyunban4 小时前
在Linux下制作软件安装包
linux·运维·服务器
IT 乔峰4 小时前
Centos7中部署DNS服务器
linux
hweiyu004 小时前
Linux 命令:parted
linux·运维·服务器
搞全栈小苏4 小时前
Linux下 cmake所有版本适用/下载编译使用教程 附cmake3.26安装包
linux·运维·ubuntu
偶像你挑的噻5 小时前
16-Linux驱动开发-多核通信中的并发控制
linux·驱动开发·stm32·嵌入式硬件
liweiweili1266 小时前
Linux 中查询指定目录下查找包含特定文本的文件
linux·运维·chrome
YFLICKERH6 小时前
【Linux系统】安装包 deb | rpm
linux·运维·安装包
CodeByV6 小时前
【Linux】线程从内核到实战:本质、控制逻辑与封装指南
linux