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

相关推荐
RisunJan38 分钟前
Linux命令-modprobe(自动处理可载入模块)
linux·运维
何朴尧1 小时前
OpenClaw Linux 完整安装指南
linux
木木em哈哈1 小时前
记一次在线编辑器的探索
linux·服务器·网络
章鱼丸-1 小时前
DAY41简单 CNN
人工智能·深度学习·cnn
我要成为嵌入式大佬2 小时前
正点原子MP157--问题详解--二(NFS挂载根文件系统双网卡设置)
linux·服务器·网络
一个有温度的技术博主2 小时前
网安实验系列七:域名收集
linux·运维·服务器
我爱学习好爱好爱2 小时前
Ansible 环境搭建
linux·运维·ansible
阿钱真强道2 小时前
02 从 MLP 到 LeNet:数据、标签和任务:机器学习到底在解决什么问题?
人工智能·深度学习·机器学习·cnn·分类算法·lenet
人工智能训练3 小时前
从 1.1.3 到 1.13.2!Ubuntu 24.04 上 Dify 升级保姆级教程(零数据丢失 + 一键迁移)
linux·运维·人工智能·windows·ubuntu·dify
我要成为嵌入式大佬3 小时前
正点原子MP157--问题详解--四(关于根文件系统驱动模块指令的注意事项)
linux·运维·服务器