Skip to content

BuildingMysqlclientlibOnWindows

INADA Naoki edited this page Sep 11, 2016 · 1 revision

This is personal memo. It isn't a proper step.

  1. Download MySQL source
  2. unzip it
  3. Install cmake
> cmake -DBUILD_CONFIG=mysql_release -DCMAKE_INSTALL_PREFIX=c:\mysql  -DWITH_BOOST=boost -G "Visual Studio 14 2015 Win64"
> "c:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\devenv.com" MySQL.sln /build RelWithDebInfo
> cmake.exe -DCMAKE_INSTALL_PREFIX=C:\mysql -P include\cmake_install.cmake
> copy COPYING c:\mysql
> mkdir c:\mysql\lib
> copy libmysql\Release\mysqlclient.lib c:\mysql\lib

This build step builds all binaries including MySQL server. It took long time. I'll build only clientlib in next time.

Clone this wiki locally