摘要:
网上找的2段代码: char * Gb2312_utf8(std::string strutf8, char* str) { //头文件QTextCodec QTextCodec* utf8Codec = QTextCodec::codecForName("utf-8"); QTextCodec* 阅读全文
2024年1月5日 #
2023年9月8日 #
摘要:
gcc 版本是7.2 apt-get install gcc-11提示找不到 解决办法: 输入以下命令添加ppa到库。 sudo add-apt-repository ppa:ubuntu-toolchain-r/test sudo apt-get update 然后:apt-get install 阅读全文
2023年7月21日 #
摘要:
内核不是开源的,只能选择.ko文件加载驱动 主板:么么厂家的rk3288,非瑞芯微官方板子 瑞芯微官网下载SDK,编译后的内核写进板子,板子无法启动,显然厂家在瑞芯微的基础上改硬件了 最简单的方法是修改按键驱动,修改成模块,然后insmod加载,提示 log: version magic '4.4. 阅读全文
2023年6月27日 #
摘要:
./configure --host=arm-none-linux-gnueabi 错误提示:configure: error: udev support requested but libudev header not installed 解决办法 --disable-udev 取消对libude 阅读全文
2022年11月10日 #
摘要:
1、运行以下命令在apache2目录下创建ssl目录。 mkdir/etc/apache2/ssl 2、运行以下命令将下载的阿里云证书文件复制到ssl目录中。 cp-rYourDomainName_public.crt/etc/apache2/ssl cp-rYourDomainName_chain 阅读全文
2022年2月15日 #
摘要:
function TypedArrays(Type,Bin,begin,Num) { switch(Type) { case 0: return new Int8Array(Bin, begin ,Num)[0]; case 1: return new Uint8Array(Bin, begin , 阅读全文
2021年11月9日 #
摘要:
因为ubuntu18已经没有用rc.local,因为日常用的习惯所以我们下面进行创建 1.创建rc.local软链接(因为system只会读取/etc/systemd/system下的文件) ln -fs /lib/systemd/system/rc-local.service /etc/syste 阅读全文
2021年8月10日 #
摘要:
apt-get install php5-sqlite 之后重启apache就行啦 sudo /etc/init.d/apache2 restart 修改配置 sudo gedit /etc/php5/apache2/php.ini 阅读全文
2021年3月16日 #
摘要:
安卓下的代码在MinGW下调试会从出错 .pro文件后面添加contains(ANDROID_TARGET_ARCH,armeabi-v7a) { QT += androidextras }cpp文件中添加 #ifdef Q_OS_ANDROID #include<QtAndroid> #endif 阅读全文
2021年1月18日 #
摘要:
Qt Creator版本:4.8.0 Enterprise 不知道什么原因QTCreator无法打开了,双击无反应。 找到AppData\Roaming\QtProject,删除或重命名目录下QtCreator.ini文件(这会重置QtCreator的默认设置),再打开QtCreator时会自动生成 阅读全文