2021年3月12日
摘要:
这个经常用到 保存一下 #include <stdio.h> #include <string.h> #include <sys/types.h> #include <dirent.h> #include <sys/stat.h> #include <string> #include <map> u
阅读全文
posted @ 2021-03-12 11:33
弘道者
阅读(1431)
推荐(0)
2021年3月11日
摘要:
使用脚本遍历文件夹下面的文件 #!/bin/bash function read_dir(){ for file in `ls $1` #注意此处这是两个反引号,表示运行系统命令 do if [ -d $1"/"$file ] #注意此处之间一定要加上空格,否则会报错 then read_dir $
阅读全文
posted @ 2021-03-11 17:30
弘道者
阅读(1474)
推荐(0)
2021年2月4日
摘要:
在centos7下面使用android-ndk-r21d编译openssl-1.1.1h 基本都是最新版本了,centos7需要安装一下perl,python yum -y install perl python 接下来把android-ndk-r21d放到根目录 /android-ndk-r21d
阅读全文
posted @ 2021-02-04 15:28
弘道者
阅读(993)
推荐(0)
2021年2月3日
摘要:
今天编译pkg-config-0.29出现的 实际上是内置的glib出的问题 第一步先找到这个文件 然后加入如下语句 #pragma GCC diagnostic ignored "-Wformat-nonliteral" 就在包含头文件的地方加就行了
阅读全文
posted @ 2021-02-03 09:46
弘道者
阅读(3269)
推荐(0)
2021年1月27日
摘要:
在centos下编译gcc10,前天是自己先安装好gcc现在的版本 #!/bin/bash dir=$(pwd) yum -y install m4yum -y install bzip2 wget ftp://gcc.gnu.org/pub/gcc/infrastructure/gmp-6.1.0
阅读全文
posted @ 2021-01-27 10:33
弘道者
阅读(382)
推荐(0)
2021年1月20日
摘要:
最近在编译libtorrent还没有成功 环境: gcc要支持c++17我选的gcc9 boost用的boost_1_68_0 openssl用的openssl-1.1.1d 第一步要编译完boost 我这里放到/boost_1_68_0编译的 第二部编译openssl我安装到/openssl-li
阅读全文
posted @ 2021-01-20 10:22
弘道者
阅读(374)
推荐(0)
2020年12月26日
摘要:
是这样的编译完libtorrent就手动编译make_torrent.cpp 结果报错 g++ -o test make_torrent.cpp -ltorrent-rasterbar -lboost_system -lpthread 报错如下: /tmp/ccwZnN4Y.o: In functi
阅读全文
posted @ 2020-12-26 11:58
弘道者
阅读(329)
推荐(0)
2020年12月25日
摘要:
现在Linux虚拟机端执行 #!/bin/bash dd if=/dev/zero of=/empty ls -lh /empty rm -f /empty shutdown -h now 注销会自动关机 关机后再执行 "C:\Program Files\Oracle\VirtualBox\VBox
阅读全文
posted @ 2020-12-25 15:00
弘道者
阅读(204)
推荐(0)
2020年12月23日
摘要:
国内阿里云和163的都失效了 之前找的file.kangle.odata.cc也失效了,在github上找了一个 做了一个小脚本。 在网上找到一个 记录一下 免得搞忘 #!/bin/bash rm -f yum.zip wget https://files.cnblogs.com/files/yua
阅读全文
posted @ 2020-12-23 10:51
弘道者
阅读(5329)
推荐(1)
2020年12月18日
摘要:
第一个问题ifconfig只有lo网卡 其实是有其他的网卡的只是没有配置 可以用ifconfig -a来查看 我这里是 enp0s17 第二部配置这个网卡 编辑/etc/netplan/50-cloud-init.yaml 把里面的网卡改成enp0s17 重启虚拟机就OK了
阅读全文
posted @ 2020-12-18 11:40
弘道者
阅读(264)
推荐(0)