ramlife

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理
上一页 1 ··· 10 11 12 13 14 15 16 17 18 ··· 27 下一页

2020年7月28日

摘要: #0. buildroot 网址 https://git.buildroot.net/buildroot/?h=2020.02.x #1. buildroot 可以使用默认编译的工具链,也可以使用他人编译好的工具链。 参考: https://www.cnblogs.com/ranson7zop/p/ 阅读全文
posted @ 2020-07-28 10:17 ramlife 阅读(933) 评论(0) 推荐(0)

2020年7月20日

摘要: #1. stdlib.h not found,原因是头文件位置没有设置。 Tools --> options --> kits --> compile 选择相应的编译器,然后下面的 Header paths 点击 后面的 details,填写头文件地址,比如: /home/book/100ask_i 阅读全文
posted @ 2020-07-20 11:29 ramlife 阅读(1860) 评论(0) 推荐(0)

2020年7月15日

摘要: c89,不能在 for 循环定义变量,很麻烦,所以决定用 c99。在 Makefile 里面的写法如下: ccflags-y := -std=gnu99 -Wno-declaration-after-statement 参考:https://blog.csdn.net/yangkunhenry/ar 阅读全文
posted @ 2020-07-15 14:15 ramlife 阅读(459) 评论(0) 推荐(0)

2020年7月14日

摘要: 当在 source insight 中想要搜索特定的符号,比如说 "struct file {",需要在搜索的时候,把 search method 中的选择,改为 simple string,这样虽然慢一点,但是确实能搜索出来。 参考: https://zhidao.baidu.com/questi 阅读全文
posted @ 2020-07-14 10:33 ramlife 阅读(687) 评论(0) 推荐(0)

2020年7月7日

摘要: 使用 韦东山 的 imx6ul 的开发板,按照手册上面的 nfs rootfs 的说明进行操作,结果开发板加载的时候,打印 VFS: Unable to mount root fs via NFS, trying floppy.然后直接卡住不动了。 经过仔细分析,原来是因为我 虚拟机使用的是 桥接网 阅读全文
posted @ 2020-07-07 17:33 ramlife 阅读(1867) 评论(0) 推荐(0)

2020年6月27日

摘要: git 仓库迁移两步就够了。 从原仓库把整个仓库拉下来。 git clone --bare git://192.168.10.XX/git_repo/project_name.git 把仓库推到新的仓库里面去。 cd project_name.git git push --mirror git@19 阅读全文
posted @ 2020-06-27 18:31 ramlife 阅读(195) 评论(0) 推荐(0)

2020年6月5日

摘要: c++ json 处理可以选择 cjsonobject。 这个可以直接把源码发到工程文件里面。很方便。 可以参考: https://www.cnblogs.com/bwar/p/11294452.html https://my.oschina.net/cqcbw/blog/1844575 阅读全文
posted @ 2020-06-05 17:22 ramlife 阅读(108) 评论(0) 推荐(0)

摘要: 需要删除最后3个字符: std::string projectName; foreach (std::string s, sampleNameVector) { projectName += s + " + "; } projectName.erase(projectName.end() - 3, 阅读全文
posted @ 2020-06-05 11:01 ramlife 阅读(822) 评论(0) 推荐(0)

摘要: 参考: https://www.cnblogs.com/sgdd123/p/7778599.html http://www.cnblogs.com/zery/p/3438845.html http://www.runoob.com/regexp/regexp-syntax.html 阅读全文
posted @ 2020-06-05 10:36 ramlife 阅读(128) 评论(0) 推荐(0)

2020年6月4日

摘要: 今天使用 qt 的写入文件,发现中文乱码,经过一番查找,解决问题。 QTextStream txt(&file); txt.setCodec(QTextCodec::codecForName("utf-8")); txt << QString::fromStdString(json.toFormat 阅读全文
posted @ 2020-06-04 18:40 ramlife 阅读(3067) 评论(0) 推荐(0)

上一页 1 ··· 10 11 12 13 14 15 16 17 18 ··· 27 下一页