This page provides a few details for helping if you choose to develop RocksDB via an IDE (Integrated Development Environment). It should be treated as advice.
RocksDB ships with two build systems
Make
andCMake
, some environments will work best with one or the other. TheMake
build system is more fully developed than that of theCMake
build system, however theCMake
system does offer the advantage that it can generate configuration files for working with several different IDEs.RocksJava has two aspects, the C++ JNI code which links with RocksDB’s C++ code, and its Java code. The RocksJava C++ JNI code can be developed with the same IDE that you use for working with RocksDB’s C++ code. The Java code of RocksJava can be worked with via any IDE that support Apache Maven. A template
pom.xml
for RocksJava is provided injava/target/pom.xml.template
, apom.xml
can be generated from this and used as an IDE project file by simply runningmake rocksdbjavageneratepom
.
XCode
You can generate an XCode project for RocksDB using CMake:
cd rocksdb
mkdir build
cd build
cmake -G Xcode ..
You can then open the build/
folder as an existing project in XCode.
Microsoft Visual Studio
NOTE: These instructions are for the full Studio product and NOT for Visual Studio Code
.
You can generate a Visual Studio project for RocksDB using CMake:
cd rocksdb
mkdir build
cd build
cmake -G "Visual Studio 14 Win64" ..
However, for more details on available project options and targets for Visual Studio, see Building on Windows.