mirai
mirai copied to clipboard
enhance(ECDH): reconstruct ECDH
reopen #2123
没有包含 BCryptEcdh
实现(严格的 Windows 系统版本要求意味着需要有某种动态加载机制才有价值)
其他部分的修改应该已经出于 可合并 状态
有在各平台测试过登录吗?
测试:
- [x] JVM
- [ ] Android
- [x] macOS
- [x] Windows
- [ ] Linux
windows: 编译链接成功但运行错误了
Caused by: java.lang.IllegalStateException: command 'D:\Projects\mirai\mirai-core\build\bin\mingwX64\debugTest\test.exe' exited with errors (exit code: -1073741515)
有意思的是我用 dev 也一样错误
> command 'D:\Projects\mirai\mirai-core\build\bin\mingwX64\debugTest\test.exe' exited with errors (exit code: -1073741515)
-1073741515(0xC0000135): The program can't start because %hs is missing from your computer
这似乎是系统加载 exe 导入表时发现缺少相关库文件的报错,麻烦检查一下 libcurl.dll
libcrypto-3-x64.dll
等文件是否拷贝到 test.exe
同目录 或 添加到 Path
环境变量之中
https://github.com/mamoe/mirai/blob/e00f592b84b4e4e3698569b891a9761de24bcd0c/.github/workflows/build.yml#L350
Windows 下链接器没有 rpath 机制,而 vcpkg 安装的包通常也并不会拷贝到 System32 目录下,因此需要手动处理 DLL 文件的定位问题
(Rebased on the latest dev branch)
I believe it okey on Windows.