Installing MariaDB Connector/C++ from Source
The MariaDB Connector/C++ is based on the MariaDB Client Library (MySQL C API). MariaDB Connector/C++ is linked against the MariaDB Client Library. You need the MariaDB Client Library installed to compile MariaDB Connector/C++.
You also need the cross-platform build tool CMake 2.4, or newer, and GLib 2.2.3 or newer installed. Check the README
file included with the distribution for platform specific notes on building for Windows and SunOS.
Typically the MariaDB Client Library is installed when the MariaDB Server is installed. However, check your operating system documentation for other installation options.
As of MariaDB Connector/C++ version 1.1.0, it is necessary to have the Boost C++ libraries 1.34.0 or newer installed. Boost is only required to build the connector, it is not required to use the connector. You can obtain Boost and its installation instructions from the official site. Once Boost is installed, tell the make system where the Boost files are, by setting the define -DBOOST_ROOT:STRING=
. This can be done when initially invoking CMake, for example:
shell> CMake . -DBOOST_ROOT:STRING=/usr/local/boost_1_40_0
You might need to change /usr/local/boost_1_40_0/
to match your installation. See the , "Building MariaDB Connector/C++ from Source on Unix, Solaris and Mac OS X" and , "Building MariaDB Connector/C++ from Source on Windows" for further details.