Macbook编译Redis Desktop Manager源码步骤及问题解决
本文过程 基于 MacosX 10.14版, xcode是10.1 提前安装了homebrew,在homebrew里安装了ssl和cmake
详细步骤在 官网docs 已经有说明了。 注意,步骤Get Source也很重要,要git clone –recursive 因为项目有引用其他开源库。
Get source
- Install git
- Get source code:
git clone --recursive https://github.com/uglide/RedisDesktopManager.git -b 0.9.8 rdm && cd ./rdm
0.9.9以后不再支持 SSH Tunneling 如果要练远程服务器的话,选择 0.9.8
Build on OS X
- Install XCode with Xcode build tools
- Install Homebrew
- Copy
cd ./src && cp ./resources/Info.plist.sample ./resources/Info.plist
- Building RDM dependencies require i.a. openssl and cmake. Install them:
brew install openssl cmake
- Build RDM dependencies
./configure
- Install Qt 5.9. Add Qt Creator and under Qt 5.9.x add Qt Charts module.
- Open ./src/rdm.pro in Qt Creator
- Run build
主要说一下 问题
- Homebrew很慢
建议使用清华大学的镜像进行加速
homebrew- 运行 ./configure 的时候编译失败,报错误“earlier than macOS 10.6 is no longer supported”
这个问题在这里有解决方法issues 4284
具体就是用xcode打开rdm/3rdparty/gbreakpad/src/client/mac/Breakpad.xcodeproj 在里面搜索到.xib文件,把build for里的版本设置一下
打开xib文件的时候会提醒是否升级,要选upgrade- 我用的是qt6 也成功了 Qt Charts 别忘了装
[…] Macbook编译Redis Desktop Manager源码步骤及问题解决 […]