随笔 - 170
文章 - 0
评论 - 16
阅读 -
35387
08 2023 档案
glibc-2.28编译错误,编译方法
摘要:1、 cd glibc-2.28 2、 mkdir build 3、 ../configure --prefix=/opt/glibc-2.28 CPPFLAGS=-O 4、 make CC=gcc-8 CPPFLAGS=-O 银河麒麟ARM版上 最终也没编译成功
阅读全文
提醒"libc.so.6: version `GLIBC_2.14' not found"系统的glibc版本太低
摘要:1.查看系统glibc支持的版本: strings /lib64/libc.so.6 | grep GLIBC_ GLIBC_2.2.5 GLIBC_2.2.6 GLIBC_2.3 GLIBC_2.3.2 GLIBC_2.3.3 GLIBC_2.3.4 GLIBC_2.4 GLIBC_2.5 GLI
阅读全文
vim逗号替换为换行符
摘要:%s/,/\r/g %:表示在整个文件中进行操作。 s/:表示替换的开始。 ,:表示要被替换的目标字符串,即逗号。 /:分隔符,用于分隔目标字符串和替换字符串。 \r:替换字符串,即回车符。 /g:表示全局替换,即替换所有匹配到的逗号。
阅读全文
arm平台上hyperscan编译报错,需要下载特殊的arm版hyperscan
摘要:下载 wget https://github.com/kunpengcompute/hyperscan/archive/v5.2.1.aarch64.tar.gz 说明地址 : https://github.com/intel/hyperscan/issues/283
阅读全文
windows下C++获取其它窗口中组件的信息
摘要:抄自:https://pythonjishu.com/xfqbhrlejawmdfh/ C++获得其他程序窗体控件中信息是一个比较常见的需求,例如在自动化测试、窗口助手等场景下都有可能用到。下面我们就介绍一下C++获得其他程序窗体控件中信息的方法。 安装Visual Studio 获得其他程序窗体控
阅读全文
获取Windows窗口
摘要:抄自: https://blog.csdn.net/freedom2211/article/details/131288406 windowIterator.h class CWindowIterator{ private: static char* wchar2char(const wchar_t
阅读全文
把make的错误输出到文件的方法 make 2>/tmp/make.txt
摘要:make 2>/tmp/make.txt
阅读全文
gbk字符集转为utf8字符集
摘要:#include <stdio.h>#include <stdlib.h>#include <iconv.h>#include <sys/types.h>#include <sys/stat.h>#include <unistd.h>#include <string.h> int encoding_
阅读全文
Linux应用程序加载过程,内核加载一个应用程序到内存中的入口
摘要:../kernel/umh.c 618: int call_usermodehelper(const char *path, char **argv, char **envp, int wait) ../kernel/umh.c 379: struct subprocess_info *call_u
阅读全文
c++获取U盘序列号
摘要:int getUDiskSerial(std::vector<std::string>& vUsbSerial){ std::string cmd = "lsblk -o \"SERIAL,TRAN\" | grep usb "; FILE *fp; int len = 0; int idx = 0
阅读全文
c++时间、日期、秒相互转换
摘要:1、日期时间转秒函数 用法: unsigned long long startTime = date2Second("2021-10-1 15:00:00"); time_t date2Second(std::string timeStr){ struct tm timeinfo; strptime
阅读全文
一个QTModule view的最简单例子
摘要:来自: https://qt.0voice.com/?id=420 #include <QtWidgets> int main(int argc, char *argv[]) { QApplication app(argc, argv); // 创建标准项目模型 QStandardItemModel
阅读全文
sqlite3强制写磁盘的方法
摘要:1、 VACUUM 2、 设置 synchronous 为 FULL 。
阅读全文