Oracle 5.0 Reference Manual page 2148

Table of Contents

Advertisement

3. Build the project:
shell>
make
4. As root, install the MySQL Connector/C headers, libraries, and utilities:
root-shell>
20.4.5.2. Building MySQL Connector/C from Source on Microsoft Windows
MySQL Connector/C can be built on several versions of Microsoft Windows, listed in
"MySQL Connector/C Supported
Microsoft Visual Studio 8 or 9 is recommended. The Express Edition of Visual Studio and other
compilers might work, but are untested.
You also need
To build and install the source distribution, use the following procedure:
1. Set the environment variables for the Visual Studio toolchain. Visual Studio includes a batch file to
set these for you, and installs a shortcut in the Start menu to open a command prompt with these
variables set.
2. Change location to the top-level directory of the source distribution.
3. Generate the
shell>
cmake -G "Visual Studio 9 2008"
For other
The result of the
with Visual Studio. Alternatively, build from the command line with either of these commands:
shell>
devenv.com libmysql.sln /build Release
shell>
devenv.com libmysql.sln /build RelWithDebInfo
For other versions of Visual Studio or for an nmake-based build, use the following command to
check which generators can be specified with the
shell>
cmake --help
To compile a Debug build, you must set the
versions are used, then compile using the
shell>
cmake -G "Visual Studio 9 2008" -DCMAKE_BUILD_TYPE=Debug
shell>
devenv.com libmysql.sln /build Debug
A normal build builds the C API libraries for the
debug libraries for the
clients built using the debug C runtime.
4. Use the install operation provided by your development environment to install the MySQL
Connector/C headers, libraries, and utilities. You can also use this
shell>
cmake --build . --target INSTALL --config RelWithDebInfo
20.4.5.3. Other Build Options
The following table shows other options that can be used when building MySQL Connector/C from
source.
Installing MySQL Connector/C from Source
make install
Platforms".
2.6 or newer, which is available from cmake.org.
CMake
by entering the following command in a command-prompt window:
Makefile
options that you might find useful, see
CMake
command is a project (solution) file, libmysql.sln, that you can open
cmake
lib/debug
Section 20.4.5.3, "Other Build
option:
-G
build type so the correct external library
CMake
solution configuration:
Debug
directory. A Debug build additionally builds
lib
directory. You must use the debug libraries when compiling
2128
Section 20.4.1,
Options".
command:
CMake

Advertisement

Table of Contents
loading

This manual is also suitable for:

Mysql 5.0

Table of Contents