上一页 1 ··· 8 9 10 11 12 13 14 15 16 ··· 19 下一页
摘要: 1、本地回退 git reset --hard commit_id 2、下载branch code git clone -b branch_name URL 3、查看已经暂存起来的变化 git diff --cached 4、stash当前修改 git stash 5、重新应用缓存的stash gi 阅读全文
posted @ 2019-02-20 14:08 Malphite 阅读(138) 评论(0) 推荐(0) 编辑
摘要: static void console_log(const char *format, ...) { static FILE *fpConsole; if (fpConsole == NULL) { fpConsole = fopen("/dev/console", "w"); } if (fpConsole != NULL) { char aMsg[3584... 阅读全文
posted @ 2019-02-20 11:31 Malphite 阅读(873) 评论(0) 推荐(0) 编辑
摘要: getLine(char *line, const char *cmd) { FILE *pf = popen(cmd, "r"); if (pf == NULL) { return -1; } fgets(line, 25, pf); if (strlen(line) > 0) { if (line[strlen(line) - 1] == '\n') ... 阅读全文
posted @ 2019-02-20 11:26 Malphite 阅读(486) 评论(0) 推荐(0) 编辑
摘要: -rpath和-rpath-link 假设有3个文件,在同一目录下,有这样的依赖关系 test->liba.so->libd.so 如果编译test的时候这样写 gcc test.c –la warning:libd.so, needed by liba.so not found 解决办法有3个 方 阅读全文
posted @ 2019-02-20 11:21 Malphite 阅读(6453) 评论(0) 推荐(0) 编辑
摘要: 一. bash [ ] 单双括号 一. bash [ ] 单双括号 基本要素: Ø [ ] 两个符号左右都要有空格分隔 Ø 内部操作符与操作变量之间要有空格:如 [ “a” = “b” ] Ø 字符串比较中,> < 需要写成\> \< 进行转义 Ø [ ] 中字符串或者${}变量尽量使用"" 双引号 阅读全文
posted @ 2019-02-12 09:39 Malphite 阅读(1747) 评论(0) 推荐(0) 编辑
摘要: https://blog.csdn.net/zqixiao_09/ https://home.cnblogs.com/u/lifexy/ https://blog.csdn.net/chenliang0224 阅读全文
posted @ 2019-02-01 10:30 Malphite 阅读(142) 评论(0) 推荐(0) 编辑
摘要: meson 中有时需要调用其他脚本语言,加之对meson build system接口和原理不熟悉,无奈只有静心学习meson 官方文档,终于皇天不负有心人让我找到了; run_command() 只需将自己要执行的脚本放入run_command()中即可。用法如下 run_command('com 阅读全文
posted @ 2019-01-29 09:33 Malphite 阅读(1307) 评论(0) 推荐(0) 编辑
摘要: 1、EXPORT EXPORT 依赖库 export LD_LIBRARY_PATH=/opt/export LD_LIBRARY_PATH=/usrlib/ 2、查看分区 cat /proc/mtd cat /proc/partitions 3、iperf iperf 测试网速=ipcam: ip 阅读全文
posted @ 2019-01-24 11:13 Malphite 阅读(178) 评论(0) 推荐(0) 编辑
摘要: 使用方法: 1、1234替换为ssh account 2、abcd替换为ssh passwd 示例:./scp.sh r ~/MOUNT 192.168.1.110/home/123.cpp 阅读全文
posted @ 2019-01-24 11:04 Malphite 阅读(984) 评论(0) 推荐(0) 编辑
摘要: (1)ifeq的用法 ifeq ($(变量名), 变量值 ) ........ else ifeq ($(..), ..) ......... else ......... endif (2)最近在学习makefile的过程中遇到需要用ifeq进行逻辑与判断,但是ifeq并没有像其他编程语言那样有 阅读全文
posted @ 2019-01-22 10:27 Malphite 阅读(15217) 评论(0) 推荐(0) 编辑
上一页 1 ··· 8 9 10 11 12 13 14 15 16 ··· 19 下一页