[+/-]
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 to have the MySQL Client Library installed in order to compile MySQL Connector/C++.
You also need to have 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 in order to use the
connector. You can obtain Boost from
the official site and
installation instructions can be obtained from the same site. Once
Boost has been installed you will need to tell the make system
where the Boost files are. This is done 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 may need to change
/usr/local/boost_1_40_0/
to match your
installation. See the
Section 21.5.2.1, “Building source on Unix, Solaris and Mac OS X” and
Section 21.5.2.2, “Building source on Windows” for
further details.
User Comments
Add your own comment.