Building CppDB


In order to build CppDB you need following:

Build Options

Following CMake "ON", "OFF" options options provided for better customizability, all turned off by default:

Additionally there is a LIBDIR option that allows to provide an install prefix for libraries on RH systems like:


By default CMake would try to find the libraries and header files and would disable backends that do not have appropriate onces.

If CMake fails to find the library or header you may provide the path explicitly using XXX_LIB and XXX_PATH variables were XXX is one of ODBC, SQLITE, PQ or MYSQL.

By default Release with debug info version is build (unless you are using MSVC which by default builds debug version)

MSVC Projects are not supported use "NMake Makefiles" generator to build CppDB with MSVC.

Build Process

  1. Download latest version of CppDB or fetch one from SVN using subverision:
    $ svn co http://cppcms.svn.sourceforge.net/svnroot/cppcms/cppdb/trunk cppdb-trunk
  2. Go to the created directory and make build directory and go to it.
    $ cd cppdb-trunk
    $ mkdir build
    $ cd build
  3. Run cmake with all options you need and then make, make install
    $ cmake -DCMAKE_INSTALL_PREFIX=/usr ..
    $ make
    # make install
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator