mirror of
https://github.com/PyMySQL/mysqlclient.git
synced 2025-08-14 18:12:35 +08:00
memo
17
BuildingMysqlclientlibOnWindows.md
Normal file
17
BuildingMysqlclientlibOnWindows.md
Normal file
@ -0,0 +1,17 @@
|
||||
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.
|
Reference in New Issue
Block a user