坎巴拉KSP krpc C++ 服务器客户端部署
推荐高颜值网易云播放器yesplaymusic,编译过程过于无聊
python一行完成安装
C++需要n天
本教程需要熟悉KSP cmake vscode或任意IDE编辑器(WSL2 可选)
如不熟悉就直接拿轮子去配置IDE或编辑器环境
轮子:
mingw编译
https://github.com/jyf-111/krpc-mingw
vs编译
https://github.com/LRLVEC/krpc-cpp-bin
服务器部署通过 ckan 或者 手动安装 (参考其他视频,网上有很多)
C++客户端部署
linux部署(WSL2)
参考官方 https://krpc.github.io/krpc/cpp/client.html
- sudo apt install libasio-dev
- sudo apt install libprotobuf-dev protobuf-compiler (不用像官方教程一样拉源码编译)
- 拉krpc-cpp-4.8.0源码,官网提供3种方式configure cmake 和手动安装(前两种安装成功,第三种没试过)
- 写main.cpp测试 g++ main.cpp -std