-
Notifications
You must be signed in to change notification settings - Fork 436
Windows v1.4.0
Inada Naoki edited this page Jan 18, 2019
·
2 revisions
- Python 3.7.2 (amd64)
- Visual Studio Community (C++, CMake, Git for Windows)
-
Download sourse zip of MariDB Connector/C.
-
Unzip it under
c:\mariadb-connector
. -
Fix some issues of it:
- https://github.com/MariaDB/mariadb-connector-c/pull/98
- https://github.com/MariaDB/mariadb-connector-c/pull/99
- Comment out
STRING(REPLACE "/MD" "/MT" COMPILER_FLAGS ${COMPILER_FLAGS})
inCMakeLists.txt
(here)
-
Start "Developer Commad Prompt for Visual Studio 2017" from Start menu.
> cd c:\mariadb-connector
c:\mariadb-connector> ren mariadb-connector-c-3.0.8-src src
c:\mariadb-connector> mkdir build
c:\mariadb-connector> cd build
c:\mariadb-connector\build>cmake -A x64 ..\src -DCMAKE_BUILD_TYPE=Release -DCLIENT_PLUGIN_DIALOG=static -DCLIENT_PLUGIN_SHA256_PASSWORD=static -DCLIENT_PLUGIN_CACHING_SHA2_PASSWORD=static
-- Building for: Visual Studio 15 2017
-- The C compiler identification is MSVC 19.16.27026.1
-- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2017/Community/VC/Tools/MSVC/14.16.27023/bin/Hostx86/x64/cl.exe
-- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2017/Community/VC/Tools/MSVC/14.16.27023/bin/Hostx86/x64/cl.exe -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- CMAKE_C_FLAGS_DEBUG= /MDd /Z7 /Ob0 /Od /RTC1
-- CMAKE_C_FLAGS_RELEASE= /MD /O2 /Ob2 /DNDEBUG
-- CMAKE_C_FLAGS_RELWITHDEBINFO= /MD /Z7 /O2 /Ob1 /DNDEBUG
-- Found Git: C:/Program Files/Git/cmd/git.exe (found version "2.17.1.windows.2")
-- Looking for include file signal.h
-- Looking for include file signal.h - found
-- Looking for include file ucontext.h
-- Looking for include file ucontext.h - not found
-- Looking for gmtime_r
-- Looking for gmtime_r - not found
-- Looking for localtime_r
-- Looking for localtime_r - not found
-- Looking for snprintf
-- Looking for snprintf - not found
-- Check size of u_int32_t
-- Check size of u_int32_t - failed
-- TLS library/version: Schannel 10.0.17763
-- SYSTEM_LIBS ws2_32;advapi32;kernel32;shlwapi;crypt32;secur32
-- Could NOT find CURL (missing: CURL_LIBRARY CURL_INCLUDE_DIR)
-- Dynamic column API support: ON
-- SYSTEM processor: AMD64
-- MariaDB Connector/c configuration:
-- Static PLUGINS mysql_native_password;dialog;caching_sha2_password;sha256_password;mysql_old_password;pvio_socket
-- Dynamic PLUGINS auth_gssapi_client;mysql_clear_password;pvio_npipe;pvio_shmem
-- CPack generation: ZIP
-- SSL support: SCHANNEL Libs: secur32
-- Zlib support: yes (using bundled zlib)
-- Installation layout: DEFAULT
-- Include files will be installed in include/mariadb
-- Libraries will be installed in lib/mariadb
-- Binaries will be installed in bin
-- Documentation included from
-- Required:
-- Configuring done
-- Generating done
-- Build files have been written to: C:/mariadb-connector/build
c:\mariadb-connector\build>cmake --build . -j 8 --config Release
Microsoft (R) Build Engine version 15.9.21+g9802d43bc3 for .NET Framework
Copyright (C) Microsoft Corporation. All rights reserved.
Build started 1/18/2019 11:33:14 AM.
1>Project "C:\mariadb-connector\build\ALL_BUILD.vcxproj" on node 1 (default targets).
1>Project "C:\mariadb-connector\build\ALL_BUILD.vcxproj" (1) is building "C:\mariadb-connector\build\ZERO_CHECK.vcxproj" (2) on node 1 (default targets).
...
1>Done Building Project "C:\mariadb-connector\build\ALL_BUILD.vcxproj" (default targets).
Build succeeded.
0 Warning(s)
0 Error(s)
Time Elapsed 00:00:27.77
c:\mariadb-connector\build>cmake -DCMAKE_INSTALL_PREFIX=c:\mariadb-connector -DCMAKE_INSTALL_COMPONENT=Development -DCMAKE_BUILD_TYPE=Release -P cmake_install.cmake
-- Install configuration: "Release"
-- Installing: c:\mariadb-connector/include/mariadb/mariadb_com.h
-- Installing: c:\mariadb-connector/include/mariadb/mysql.h
-- Installing: c:\mariadb-connector/include/mariadb/mariadb_stmt.h
-- Installing: c:\mariadb-connector/include/mariadb/ma_pvio.h
-- Installing: c:\mariadb-connector/include/mariadb/ma_tls.h
-- Installing: c:\mariadb-connector/include/mariadb/mariadb_version.h
-- Installing: c:\mariadb-connector/include/mariadb/ma_list.h
-- Installing: c:\mariadb-connector/include/mariadb/errmsg.h
-- Installing: c:\mariadb-connector/include/mariadb/mariadb_dyncol.h
-- Installing: c:\mariadb-connector/include/mariadb/mariadb_ctype.h
-- Installing: c:\mariadb-connector/include/mariadb/mysqld_error.h
-- Installing: c:\mariadb-connector/include/mariadb/mysql/client_plugin.h
-- Installing: c:\mariadb-connector/include/mariadb/mysql/plugin_auth_common.h
-- Installing: c:\mariadb-connector/include/mariadb/mysql/plugin_auth.h
-- Installing: c:\mariadb-connector/include/mariadb/mariadb/ma_io.h
-- Installing: c:\mariadb-connector/lib/mariadb/mariadbclient.lib