上一页 1 2 3 4 5 6 7 ··· 39 下一页
摘要: 本地仓库分支:origin 远端仓库分支:upstream 切到非 master 分支上,比如 dev # 本地操作 git branch -D master git fetch upstream master::master git checkout master # 这步是拉取远端 stable 阅读全文
posted @ 2024-10-11 12:25 strive-sun 阅读(66) 评论(0) 推荐(0)
摘要: 前提:因要给鸿蒙手机提供打包好的 C++ 库,鸿蒙系统的应用层是 js 写的,底层是 C++ 写的,故为提高鸿蒙开发效率,需要将其他端的 C++ 库通过 napi 打包成 能 node.js 下运行的动态库 但是平时多用 Windows 开发,所以要在 Windows 本地调试 js 代码,查看接口 阅读全文
posted @ 2024-09-26 20:25 strive-sun 阅读(385) 评论(0) 推荐(0)
摘要: 问题:某个分支上修改了二进制文件,导致 changes 一直存在,切换到主分支也仍然存在,点击 Discard 也没用 使用 git reset --hard 还原到初始状态,也不行,不过输出结果会给出错误信息 Encountered 7 file(s) that should have been 阅读全文
posted @ 2024-09-26 19:03 strive-sun 阅读(164) 评论(0) 推荐(0)
摘要: MINGW 中使用 clang 突然显示命令找不到,重装了好几遍 clang 还是不行,最后使用下面的命令解决了 pacman -S make python mingw-w64-x86_64-cmake mingw-w64-x86_64-clang mingw-w64-x86_64-ccache m 阅读全文
posted @ 2024-09-26 16:51 strive-sun 阅读(42) 评论(0) 推荐(0)
摘要: 安装 cmake 安装 vscode =>终端在屏幕左上角的菜单栏中选择 terminal 安装 brew /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" 阅读全文
posted @ 2024-09-24 16:00 strive-sun 阅读(12) 评论(0) 推荐(0)
摘要: https://zhuanlan.zhihu.com/p/194198073 (防链接失效) 程序使用并发的原因有两种: 为了关注点分离(程序中不同的功能,使用不同的线程去执行),当为了分离关注点而使用多线程时,设计线程的数量的依据,不再是依赖于 CPU 中的可用内核的数量,而是依据概念上的设计(依 阅读全文
posted @ 2024-09-20 19:06 strive-sun 阅读(63) 评论(0) 推荐(0)
摘要: 公司提供的网络准入小助手在输入服务器地址和端口号后,初始化过程一直提示失败 在排除外部因素(服务器是正常的),这种问题一般出在用户电脑上,首先检查是否启动了代理服务器,发现没有启动 关闭了防火墙和防御软件,依然初始化小助手失败 最终发现是系统环境变量加了 HTTP_PROXY 和 HTTPS_PRO 阅读全文
posted @ 2024-08-27 16:11 strive-sun 阅读(37) 评论(0) 推荐(0)
摘要: 有相关的官方文档: https://developer.huawei.com/consumer/cn/doc/harmonyos-faqs-V5/faqs-app-debugging-26-V5 实操: 将编译好的三方库文件和符号文件整理好 在工程中添加对库文件的使用,一般是将库文件放到 libs/ 阅读全文
posted @ 2024-08-21 12:07 strive-sun 阅读(240) 评论(0) 推荐(0)
摘要: wolfssl github: https://github.com/wolfSSL/wolfssl 编译 .lib 或者 .dll wolfssl 很好的提供了 win32 的工程=》sln 文件 这样就不用折腾 CMakeLists 文件了,使用 Visual Studio 打开 sln 文件后 阅读全文
posted @ 2024-08-20 17:54 strive-sun 阅读(435) 评论(0) 推荐(0)
摘要: onigmo github: https://github.com/k-takata/Onigmo 测试环境:Windows 我编译库时习惯于在 vs code 下 git clone 文件后,再执行相应的编译操作 而 vs code 提供的终端一般是 git bash 和 powershell 在 阅读全文
posted @ 2024-08-20 16:31 strive-sun 阅读(18) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 7 ··· 39 下一页