mirror of
https://github.com/PyMySQL/mysqlclient.git
synced 2025-08-06 17:28:45 +08:00
1
BuildingMysqlclientlibOnWindows
INADA Naoki edited this page 2016-09-11 13:27:51 +09:00
This is personal memo. It isn't a proper step.
- Download MySQL source
- unzip it
- 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.