Build Robomongo (0.8.x 0.9.0 RC9) - Studio3T/robomongo GitHub Wiki
The following instructions are only valid for Robomongo 0.8.x versions. Starting from 0.9.0 build scripts were rewritten from scratch. Please refer to the following documents:
- Qt 5 — cross-platform application and UI framework. We recommend Qt 5.3 and above.
- CMake — cross-platform build system
- SCons — cross-platform software construction tool
- OpenSSL — OpenSSL is an open-source implementation of the SSL and TLS protocols.
- Download and build Robomongo Shell (our fork of MongoDB). Refer to Building Robomongo Shell document.
Check that qmake
, cmake
and scons
are in your PATH
variable. The versions below were used to build the Robomongo 0.8.5 releases.
$ qmake --version
QMake version 3.0
Using Qt version 5.3.2
$ cmake --version
cmake version 3.0.2
$ scons --version
SCons by Steven Knight et al.:
script: v2.3.4, 2014/09/27 12:51:43, by garyo on lubuntu
engine: v2.3.4, 2014/09/27 12:51:43, by garyo on lubuntu
Before building Robomongo, install libssl-dev
(openssl-devel
for RHEL Linux) package on your system.
To build Robomongo, run the following commands:
$ mkdir target
$ cd target
$ cmake ..
$ make
$ make install
We are assuming, that target
folder is inside Robomongo project's root:
/robomongo
/build
/docs
...
/target <-- This folder is ignored in .gitignore
...
But you can specify absolute path to your /robomongo folder:
$ cmake /home/mike/projects/robomongo
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 Robomongo in release mode:
cmake .. \
-DCMAKE_BUILD_TYPE=Release \
-DOS_ARC=64
In target/install
you can find robomongo
executable.
apt-get install qt5-qmake libqt5core5a qtbase5-dev mongodb-dev libmongo-client-dev libboost-dev libpcre3-dev libmozjs-24-dev qtbase5-dev-tools qt5-qmake qt5-default
To build Robomongo, run the following commands:
$ mkdir target
$ cd target
$ cmake ..
$ make
$ make install
Note.
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 Robomongo project's root:
/robomongo
/build
/docs
...
/target <-- This folder is ignored in .gitignore
...
But you can specify absolute path to your /robomongo folder:
$ cmake /home/mike/projects/robomongo
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 Robomongo in release mode:
cmake .. \
-DCMAKE_BUILD_TYPE=Release \
-DOS_ARC=64
In target/install
you can find Robomongo
executable.
- Microsoft Visual Studio 2010 or 2012
- Install Visual C++ 2008 Redistributables (required by OpenSSL): http://www.microsoft.com/en-us/download/details.aspx?id=29
- Install OpenSSL: https://slproweb.com/products/Win32OpenSSL.html
- Python (required by SCons)
- Prerequisites For All Platforms
To build Robomongo, run the following commands:
$ mkdir target
$ cd target
$ cmake ..
$ cmake --build . --target install --config Release
We are assuming, that target
folder is inside Robomongo project's root:
/robomongo
/build
/docs
...
/target <-- This folder is ignored in .gitignore
...
But you can specify absolute path to your /robomongo folder:
$ cmake "d:\Projects\Robomongo"
In target/install
you can find Robomongo
executable.
Note.
For Windows, SCons only comes with scons.bat
, so you must use a shell that supports .bat files.