Supported Platforms

The driver is known to work on CentOS/RHEL 6/7, Mac OS X 10.8/10.9/10.10/10.11 (Moutain Lion, Mavericks, Yosemite, and El Capitan), Ubuntu 12.04/14.04 LTS, and Windows 7 SP1 and above.

It has been built using GCC 4.1.2+, Clang 3.4+, and MSVC 2010/2012/2013/2015.



NOTE: Utilizing the default package manager configuration to install dependencies on *nix based operating systems may result in older versions of dependencies being installed.


In addition to the dependencies required by the core driver the DSE driver also requires Kerberos. Kerberos can be obtains by using these packages:

  • Ubuntu requires the package libkrb5-dev
  • RHEL (CentOS) requires the package krb5-devel
  • Windows requires Kerberos for Windows to be installed

Test Dependencies

Linux/OS X

The driver has been built using both Clang (Ubuntu 12.04/14.04 and OS X) and GCC (Linux).

Obtaining Dependencies


Dependencies and libuv Installation
sudo yum install automake cmake gcc-c++ git krb5-devel libtool openssl-devel wget
pushd /tmp
tar xzf libuv-v1.11.0.tar.gz
pushd libuv-v1.11.0
sudo make install


The driver has been built and tested using the Clang compiler provided by XCode 5.1+. The dependencies were obtained using Homebrew.

brew install libuv cmake

NOTE: The driver utilizes the OpenSSL library included with XCode unless running XCode 7+.

Additional Requirements for 10.11+ (El Capitan) and XCode 7+

OpenSSL has been officially removed from the OS X SDK 10.11+ and requires additional configuration before building the driver.

brew install openssl
brew link --force openssl


Additional Requirements for Ubuntu 12.04

Ubuntu 12.04 does not contain libuv in its repositories; however the LinuxJedi PPA has a backport from Ubuntu 14.04 which can be found here.

sudo apt-add-repository ppa:linuxjedi/ppa
sudo apt-get update
sudo apt-get install g++ make cmake libuv-dev libkrb5-dev libssl-dev
sudo apt-get install clang make cmake libuv-dev libkrb5-dev libssl-dev

Building the Driver

git clone
mkdir cpp-driver-dse/build
cd cpp-driver-dse/build
cmake ..

Test Dependencies and Building the Tests (NOT REQUIRED)

Obtaining Test Dependencies

sudo yum install libssh2-devel
brew install libssh2
sudo apt-get install libssh2-1-dev

Building the Driver with the Tests

git clone
mkdir cpp-driver-dse/build
cd cpp-driver-dse/build


The driver has been built and tested using Microsoft Visual Studio 2010, 2012, 2013 and 2015 (using the “Express” and Professional versions) and Windows SDK v7.1, 8.0, 8.1, and 10.0 on Windows 7 SP1 and above. The library dependencies will automatically download and build; however the following build dependencies will need to be installed.

Obtaining Build Dependencies

  • Download and install CMake.
    • Make sure to select the option “Add CMake to the system PATH for all users” or “Add CMake to the system PATH for current user”.
  • Download and install Git
    • Make sure to select the option “Use Git from Windows Command Prompt” or manually add the git executable to the system PATH.
  • Download and install ActiveState Perl
    • Make sure to select the option “Add Perl to PATH environment variable”.
    • NOTE: This build dependency is required if building with OpenSSL support
  • Download and install Python v2.7.x
    • Make sure to select/install the feature “Add python.exe to Path”
  • Download and install Kerberos for Windows v4.0.1

Building the Driver

A batch script has been created to detect installed versions of Visual Studio (and/or Windows SDK installations) to simplify the build process on Windows. If you have more than one version of Visual Studio (and/or Windows SDK) installed you will be prompted to select which version to use when compiling the driver.

First you will need to open a “Command Prompt” (or Windows SDK Command Prompt) to execute the batch script.


    --DEBUG                           Enable debug build
    --RELEASE                         Enable release build (default)
    --DISABLE-CLEAN                   Disable clean build
    --DEPENDENCIES-ONLY               Build dependencies only
    --OPENSSL-VERSION                 OpenSSL version 1.0, 1.1 (default: 1.0)
    --TARGET-COMPILER [version]       140, 120, 110, 100, or WINSDK
    --ENABLE-EXAMPLES                 Enable example builds
    --ENABLE-PACKAGES [version]       Enable package generation (*)
    --ENABLE-ZLIB                     Enable zlib
    --GENERATE-SOLUTION               Generate Visual Studio solution (**)
    --INSTALL-DIR [install-dir]       Override installation directory
    --SHARED                          Build shared library (default)
    --STATIC                          Build static library
    --X86                             Target 32-bit build (***)
    --X64                             Target 64-bit build (***)
    --USE-BOOST-ATOMIC                Use Boost atomic

    Testing Arguments

    --ENABLE-INTEGRATION-TESTS        Enable integration tests build
    --ENABLE-UNIT-TESTS               Enable unit tests build
    --ENABLE-TESTS                    Enable integration and unit tests builds
    --ENABLE-LIBSSH2                  Enable libssh2 (remote server testing)

    --HELP                            Display this message

*   Packages are only generated using detected installations of Visual Studio
    NOTE: OpenSSL v1.0.x is used for all package builds
**  Dependencies are built before generation of Visual Studio solution
*** Default target architecture is determined based on system architecture

To build 32-bit shared library:


To build 64-bit shared library:


To build using Boost atomic implementation:


To build static library:


To build examples:


To generate Visual Studio solution file:


To use vc_build.bat for easy inclusion into a project:

VC_BUILD.BAT --TARGET-COMPILER 120 --INSTALL-DIR C:\myproject\dependencies\libs\cpp-driver-dse

NOTE: When overriding installation directory using --INSTALL-DIR, the driver dependencies will also be copied (e.g. C:\myproject\dependencies\libs)

Building the Driver with the Tests

Integration Tests

To build integration tests with static linking:


To build unit tests with static linking:

Unit Tests