[+/-]
The MySQL Connector/C++ is based on the MySQL Client Library (MySQL C API). MySQL Connector/C++ is linked against the MySQL Client Library. You need the MySQL Client Library installed to compile MySQL 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 MySQL Client Library is installed when the MySQL Server is installed. However, check your operating system documentation for other installation options.
As of MySQL 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
Section 20.5.2.1, “Building MySQL Connector/C++ from Source on Unix, Solaris and Mac OS X” and
Section 20.5.2.2, “Building MySQL Connector/C++ from Source on Windows” for
further details.

User Comments
Add your own comment.