- Notifications
You must be signed in to change notification settings - Fork 27
Build
- Qt 5 — cross-platform application and UI framework. We recommend Qt 5.2 and above.
- CMake — cross-platform build system
Check that qmake and cmake are in your PATH variable.
$ qmake --version QMake version 3.0 Using Qt version 5.2.1 $ cmake --version cmake version 2.8.10.1 <a name="build-for-linux"></a> ## Build for Linux Before building FastoRedis, install `libssl-dev` package on your system. <a name="linux-simple-build"></a> #### Simple build To build FastoRedis, run the following commands: ```sh $ mkdir target $ cd target $ cmake .. $ make $ make installWe are assuming, that target folder is inside FastoRedis project's root:
/fastoredis /build /docs ... /target <-- This folder is ignored in .gitignore ... But you can specify absolute path to your /fastoredis folder:
$ cmake /home/mike/projects/fastoredis | Argument | Description | Default value |
|---|---|---|
-DCMAKE_BUILD_TYPE | Build type: Release or Debug | Debug |
-DOS_ARC | Architecture: 32 for i386, and 64 for x86_64 (AMD64). | Current CPU architecture will be used. |
-DCMAKE_INSTALL_PREFIX | Install location | CMAKE_OUT/install |
The following command will build 64-bit FastoRedis in release mode:
cmake .. \ -DCMAKE_BUILD_TYPE=Release \ -DOS_ARC=64 In target/install you can find fastoredis executable.
To build FastoRedis, run the following commands:
$ mkdir target $ cd target $ cmake .. $ make $ make installNote.
If using a brew installed QT (or not standard library install) do this before the cmake ..
export CMAKE_PREFIX_PATH=/usr/local/Cellar/qt5/VERSION(5.3.1)/lib/cmake
We are assuming, that target folder is inside FastoRedis project's root:
/fastoredis /build /docs ... /target <-- This folder is ignored in .gitignore ... But you can specify absolute path to your /fastoredis folder:
$ cmake /home/mike/projects/fastoredis | Argument | Description | Default value |
|---|---|---|
-DCMAKE_BUILD_TYPE | Build type: Release or Debug | Debug |
-DOS_ARC | Architecture: 32 for i386, and 64 for x86_64 (AMD64). | Current CPU architecture will be used. |
-DCMAKE_INSTALL_PREFIX | Install location | CMAKE_OUT/install |
The following command will build 64-bit FastoRedis in release mode:
cmake .. \ -DCMAKE_BUILD_TYPE=Release \ -DOS_ARC=64 In target/install you can find FastoRedis executable.
- Mingw: http://sourceforge.net/projects/mingwbuilds/
- Build qt from sources: http://qt-project.org/wiki/Building_Qt_5_from_Git
To build FastoRedis, run the following commands from msys environment:
$ mkdir target $ cd target $ cmake .. $ make $ make installWe are assuming, that target folder is inside FastoRedis project's root:
/fastoredis /build /docs ... /target <-- This folder is ignored in .gitignore ... But you can specify absolute path to your /fastoredis folder:
$ cmake "d:\Projects\FastoRedis" In target/install you can find FastoRedis executable.