码迷,mamicode.com
首页 > 系统相关 > 详细

mac 10.13 build 一个 redis desktop manager

时间:2018-05-12 15:10:42      阅读:440      评论:0      收藏:0      [点我收藏+]

标签:xcode   library   tor   clone   方法   win   png   qt 5   amp   

build 的东西比较多,性能差的电脑编译会很久。

 

下载地址:https://redisdesktop.com/download

本来想下载一个,但是发现只有 windows 是免费的,不过官网提供了 build from source 的指引,那就直接 build 一个吧。

技术分享图片

 

首先是获取源码

git clone --recursive https://github.com/uglide/RedisDesktopManager.git -b 0.9 rdm && cd ./rdm

  

build 步骤:

1、Install XCode with xcode build tools
2、Install Homebrew
3、Build RDM dependencies cd ./src && ./configure
4、Install Qt 5.9
5、Open ./src/rdm.pro in Qt Creator
6、Run build

 

qt 配置:

1、下面的目录需要手动创建

技术分享图片

2、配置qt version

这里需要安装 qt,brew install qt5,下面才会有相关的 qmake 可选

技术分享图片

技术分享图片

技术分享图片

技术分享图片

 

3、配置 kit

技术分享图片

上面的编译器一定要选 clang

 

上面的配置完之后就可以点击 build 进行 build 了。

build 的结果在上面git clone 的 rdm 目录下的:

技术分享图片

直接运行上面的 rdm 就可以了:

技术分享图片

 

其中可能会报错的地方:

1、xcode-select: error: tool ‘xcodebuild‘ requires Xcode, but active developer directory ‘/Library/Developer/CommandLineTools‘ is a command line tools instance

解决方法:

安装 Xcode
运行命令 sudo xcode-select -s /Applications/Xcode.app/Contents/Developer

 

2、... setcreate file ... Info.plist (build的时候报的错)

解决方法:

在 rdm/src/resources 下创建一个空文件,文件名为 Info.plist

 

mac 10.13 build 一个 redis desktop manager

标签:xcode   library   tor   clone   方法   win   png   qt 5   amp   

原文地址:https://www.cnblogs.com/eleven24/p/9028621.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!