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:

  1. Building Robomongo 0.9.x for Mac OS X and Linux
  2. Building Robomongo 0.9.x for Windows

  1. Prerequisites For All Platforms
  2. Build for Linux
    1. Simple build
    2. CMake arguments
    3. Explore output
  3. Build for Mac OS X
    1. Simple build
    2. CMake arguments
    3. Explore output
  4. Build for Windows
    1. Simple build
    2. Explore output

Prerequisites for all platforms (Windows, Linux, Mac OS X)

  1. Qt 5 — cross-platform application and UI framework. We recommend Qt 5.3 and above.
  2. CMake — cross-platform build system
  3. SCons — cross-platform software construction tool
  4. OpenSSL — OpenSSL is an open-source implementation of the SSL and TLS protocols.
  5. 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

Build for Linux

Before building Robomongo, install libssl-dev (openssl-devel for RHEL Linux) package on your system.

Simple build

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

CMake arguments:

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

Explore output

In target/install you can find robomongo executable.

Build on debian

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

Build for Mac OS X

Simple build

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

CMake arguments:

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

Explore output

In target/install you can find Robomongo executable.

Build for Windows

Prerequisites

  1. Microsoft Visual Studio 2010 or 2012
  2. Install Visual C++ 2008 Redistributables (required by OpenSSL): http://www.microsoft.com/en-us/download/details.aspx?id=29
  3. Install OpenSSL: https://slproweb.com/products/Win32OpenSSL.html
  4. Python (required by SCons)
  5. Prerequisites For All Platforms

Simple build

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"

Explore output

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.

⚠️ **GitHub.com Fallback** ⚠️