Permalink
Browse files

initial import

  • Loading branch information...
0 parents commit 8c8364da2417d2709ffde03bcf32524d956472cb Peter Drahos committed Aug 3, 2011
Showing 1,026 changed files with 345,254 additions and 0 deletions.
@@ -0,0 +1,89 @@
+MySQL Connector/C - Build on Unix platforms
+
+INTRODUCTION
+---------------------------------------------------------------
+
+In this document we provide a general explaination of how to
+build Connector/C library on UNIX platforms. We will be as brief
+as possible.
+
+NOTE: This information is fairly generic. You may find other
+ README files with more detailed information for
+ building for specific flavours of UNIX.
+
+WHAT YOU NEED
+---------------------------------------------------------------
+
+UNIX
+----
+
+UNIX or some UNIX-like operating system such as;
+
+- Solaris
+- Linux
+- HP-UX
+- AIX
+- OSX
+
+Compiler Tools
+--------------
+
+We try to build using the native compiler tool set for the
+target platform. This is SunStudio for Solaris and aCC for
+HP-UX for example. But a common compiler across all platforms
+is the GNU tool-chain.
+
+You also need CMake 2.6 or newer, available at
+
+ http://www.cmake.org
+
+Source Code
+-----------
+
+The source code is the main thing. You can get it from the bzr
+source repository if you want the 'bleeding edge' code but most
+people will simply download the zip or tar-ball of the source.
+
+ You will find the source repository on lauchpad
+
+ http://launchpad.net/libmysql
+
+
+BUILD
+---------------------------------------------------------------
+
+GNU AutoTools
+-------------
+
+cd to the Connector/C source directory and do the following.
+
+To generate the makefile do
+
+ $ cmake -G "Unix Makefiles"
+
+or for a Debug build
+
+ $ cmake -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=Debug
+
+Then do
+
+ $ make
+
+
+INSTALL
+---------------------------------------------------------------
+
+
+By default make install will install the Connector/C files in
+/usr/local directory. You can change this behaviour by specifying
+another directory when generating the makefile:
+
+ $cmake -G "Unix Makefiles" -DCMAKE_INSTALL_PREFIX=/mypath
+
+You probably want to be root user to do install as extra
+privileges will likely be required. Now do the following to
+install the Connector/C libraries and tools.
+
+# make install
+
+At this point all of the Connector/C files should be in place.
@@ -0,0 +1,91 @@
+MySQL Connector/C - Build on Microsoft Windows
+
+WHAT YOU NEED
+---------------------------------------------------------------
+
+Microsoft Windows - supported versions:
+ We don't support older versions of Microsoft windows.
+ Supported versions are Windows 2000, Windows XP, Windows Vista,
+ Windows Server 2003, or Windows Server 2008.
+
+
+Compiler Tools
+
+ We regularly build using Microsoft Visual Studio 8 and 9.
+ Express edition of Visual Studio and other compilers may work,
+ but are untested.
+
+ You also need CMake 2.6 or newer, available at
+
+ http://www.cmake.org
+
+Source Code
+
+ The source code is the main thing. You can get it from the
+ source repository if you want the 'bleeding edge' code but most
+ people will simply download the zip of the source.
+
+ You will find the source repository on lauchpad
+
+ http://launchpad.net/libmysql
+
+
+BUILD
+---------------------------------------------------------------
+
+You need to have the environment variables set for the Visual Studio
+toolchain. Visual Studio includes a batch file to set these for you,
+and installs a shortcut into the Start menu to open a command prompt
+with these variables set.
+
+Build Connector/C using the "cmake" command-line tool by doing the
+following from the source root directory (in a command prompt window);
+
+ cmake -G "Visual Studio 9 2008"
+
+This produces a project file that you can open with Visual Studio or
+build from the command line with either of:
+
+ devenv.com libmysql.sln /build Release
+ devenv.com libmysql.sln /build RelWithDebInfo
+
+For other versions of Visual Studio or nmake based build call
+
+ cmake --help
+
+to check the supported generators.
+
+To compile the "Debug" build, you must run set the cmake build type so
+the correct version of external libraries are used:
+
+ cmake -G "Visual Studio 8 2005" -DCMAKE_BUILD_TYPE=Debug
+ devenv.com libmysql.sln /build Debug
+
+
+Installation
+---------------------------------------------------------------
+
+To create a install package you can choose between two variants:
+ - creating a zip package
+ - creating a msi install package
+
+
+Zip package
+ To create a zip package, just run the cpack command from the root of
+ your Connector/C source directory.
+
+MSI Install package
+ Required tools:
+
+ - Windows XML Installer toolset (WIX), available at
+
+ http://sourceforge.net/projects/wix/
+
+ To create the msi install package change to the subdirectory win
+ and generate the makefile
+
+ cmake -G "NMake Makefiles"
+
+ Create the msi install package by calling nmake
+
+ nmake
Binary file not shown.
Binary file not shown.
Oops, something went wrong.

0 comments on commit 8c8364d

Please sign in to comment.