Skip to content

Instantly share code, notes, and snippets.

@nono303
Last active October 10, 2024 06:36
Show Gist options
  • Save nono303/36a5d6c7ef1d9886fa661acd5c0ddc63 to your computer and use it in GitHub Desktop.
Save nono303/36a5d6c7ef1d9886fa661acd5c0ddc63 to your computer and use it in GitHub Desktop.
Compiling httpd + libapr-2 failed on Windows
CMakeLists.txt | 16 +++++++
cmake/FindMySQL.cmake | 113 ++++++++++++++++++++++++++++++++++++++++++++++++++
2 files changed, 129 insertions(+)
diff --git a/CMakeLists.txt b/CMakeLists.txt
index dc2e79bf7..8de28faf2 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -51,6 +51,7 @@ set_property(CACHE APR_XML_BACKEND PROPERTY STRINGS "expat;libxml2;xmllite")
option(APR_INSTALL_PRIVATE_H "Install selected private .h files (for httpd)" OFF)
option(APU_HAVE_SQLITE3 "Build SQLite3 DBD driver" OFF)
+option(APU_HAVE_MYSQL "Build MySQL DBD driver" OFF)
option(APU_HAVE_PGSQL "Build PostgreSQL DBD driver" OFF)
option(APU_HAVE_CRYPTO "Crypto support" OFF)
option(APU_HAVE_ICONV "Xlate support" OFF)
@@ -108,6 +109,10 @@ if(APU_HAVE_SQLITE3)
find_package(SQLite3 REQUIRED)
endif()
+if(APU_HAVE_MYSQL)
+ find_package(MySQL REQUIRED)
+endif()
+
if(APU_HAVE_PGSQL)
find_package(PostgreSQL REQUIRED)
endif()
@@ -532,6 +537,16 @@ if(APU_HAVE_SQLITE3)
)
endif()
+if(APU_HAVE_MYSQL)
+ list(APPEND dbd_drivers mysql)
+
+ ADD_APR_MODULE(
+ apr_dbd_mysql-2 "apr_dbd_mysql-1"
+ "dbd/apr_dbd_mysql.c"
+ "MySQL::MySQL"
+ )
+endif()
+
if(APU_HAVE_PGSQL)
list(APPEND dbd_drivers pgsql)
@@ -769,6 +784,7 @@ message(STATUS " C compiler ...................... : ${CMAKE_C_COMPILER}")
message(STATUS " IPv6 ............................ : ${APR_HAVE_IPV6}")
message(STATUS " DBD ODBC driver ................. : ${APU_HAVE_ODBC}")
message(STATUS " DBD SQLite3 driver .............. : ${APU_HAVE_SQLITE3}")
+message(STATUS " DBD MySQL driver ................ : ${APU_HAVE_MySQL}")
message(STATUS " DBD PostgreSQL .................. : ${APU_HAVE_PGSQL}")
message(STATUS " XML backend ..................... : ${APR_XML_BACKEND}")
message(STATUS " Have Crypto ..................... : ${APU_HAVE_CRYPTO}")
diff --git a/cmake/FindMySQL.cmake b/cmake/FindMySQL.cmake
new file mode 100644
index 000000000..2b458602d
--- /dev/null
+++ b/cmake/FindMySQL.cmake
@@ -0,0 +1,113 @@
+#[==[
+https://github.com/Kitware/VTK/blob/master/CMake/FindMySQL.cmake
+Provides the following variables:
+
+ * `MySQL_INCLUDE_DIRS`: Include directories necessary to use MySQL.
+ * `MySQL_LIBRARIES`: Libraries necessary to use MySQL.
+ * A `MySQL::MySQL` imported target.
+#]==]
+
+# No .pc files are shipped with MySQL on Windows.
+set(_MySQL_use_pkgconfig 0)
+if (NOT WIN32)
+ find_package(PkgConfig)
+ if (PkgConfig_FOUND)
+ set(_MySQL_use_pkgconfig 1)
+ endif ()
+endif ()
+
+if (_MySQL_use_pkgconfig)
+ pkg_check_modules(_libmariadb "libmariadb" QUIET IMPORTED_TARGET)
+ unset(_mysql_target)
+ if (_libmariadb_FOUND)
+ set(_mysql_target "_libmariadb")
+ else ()
+ pkg_check_modules(_mariadb "mariadb" QUIET IMPORTED_TARGET)
+ if (NOT _mariadb_FOUND)
+ pkg_check_modules(_mysql "mysql" QUIET IMPORTED_TARGET)
+ if (_mysql_FOUND)
+ set(_mysql_target "_mysql")
+ endif ()
+ else ()
+ set(_mysql_target "_mariadb")
+ if (_mariadb_VERSION VERSION_LESS 10.4)
+ get_property(_include_dirs
+ TARGET "PkgConfig::_mariadb"
+ PROPERTY "INTERFACE_INCLUDE_DIRECTORIES")
+ # Remove "${prefix}/mariadb/.." from the interface since it breaks other
+ # projects.
+ list(FILTER _include_dirs EXCLUDE REGEX "\\.\\.")
+ set_property(TARGET "PkgConfig::_mariadb"
+ PROPERTY
+ "INTERFACE_INCLUDE_DIRECTORIES" "${_include_dirs}")
+ unset(_include_dirs)
+ endif ()
+ endif ()
+ endif ()
+
+ set(MySQL_FOUND 0)
+ if (_mysql_target)
+ set(MySQL_FOUND 1)
+ set(MySQL_INCLUDE_DIRS ${${_mysql_target}_INCLUDE_DIRS})
+ set(MySQL_LIBRARIES ${${_mysql_target}_LINK_LIBRARIES})
+ if (NOT TARGET MySQL::MySQL)
+ add_library(MySQL::MySQL INTERFACE IMPORTED)
+ target_link_libraries(MySQL::MySQL
+ INTERFACE "PkgConfig::${_mysql_target}")
+ endif ()
+ endif ()
+ unset(_mysql_target)
+else ()
+ set(_MySQL_mariadb_versions 10.2 10.3)
+ set(_MySQL_versions 5.0)
+ set(_MySQL_paths)
+ foreach (_MySQL_version IN LISTS _MySQL_mariadb_versions)
+ list(APPEND _MySQL_paths
+ "[HKEY_LOCAL_MACHINE\\SOFTWARE\\MariaDB ${_MySQL_version};INSTALLDIR]"
+ "[HKEY_LOCAL_MACHINE\\SOFTWARE\\MariaDB ${_MySQL_version} (x64);INSTALLDIR]")
+ endforeach ()
+ foreach (_MySQL_version IN LISTS _MySQL_versions)
+ list(APPEND _MySQL_paths
+ "C:/Program Files/MySQL/MySQL Server ${_MySQL_version}/lib/opt"
+ "[HKEY_LOCAL_MACHINE\\SOFTWARE\\MySQL AB\\MySQL Server ${_MySQL_version};Location]"
+ "[HKEY_LOCAL_MACHINE\\SOFTWARE\\Wow6432Node\\MySQL AB\\MySQL Server ${_MySQL_version};Location]")
+ endforeach ()
+ unset(_MySQL_version)
+ unset(_MySQL_versions)
+ unset(_MySQL_mariadb_versions)
+
+ find_path(MySQL_INCLUDE_DIR
+ NAMES mysql.h
+ PATHS
+ "C:/Program Files/MySQL/include"
+ "C:/MySQL/include"
+ ${_MySQL_paths}
+ PATH_SUFFIXES include include/mysql
+ DOC "Location of mysql.h")
+ mark_as_advanced(MySQL_INCLUDE_DIR)
+ find_library(MySQL_LIBRARY
+ NAMES libmariadb mysql libmysql mysqlclient
+ PATHS
+ "C:/Program Files/MySQL/lib"
+ "C:/MySQL/lib/debug"
+ ${_MySQL_paths}
+ PATH_SUFFIXES lib lib/opt
+ DOC "Location of the mysql library")
+ mark_as_advanced(MySQL_LIBRARY)
+
+ include(FindPackageHandleStandardArgs)
+ find_package_handle_standard_args(MySQL
+ REQUIRED_VARS MySQL_INCLUDE_DIR MySQL_LIBRARY)
+
+ if (MySQL_FOUND)
+ set(MySQL_INCLUDE_DIRS "${MySQL_INCLUDE_DIR}")
+ set(MySQL_LIBRARIES "${MySQL_LIBRARY}")
+ if (NOT TARGET MySQL::MySQL)
+ add_library(MySQL::MySQL UNKNOWN IMPORTED)
+ set_target_properties(MySQL::MySQL PROPERTIES
+ IMPORTED_LOCATION "${MySQL_LIBRARY}"
+ INTERFACE_INCLUDE_DIRECTORIES "${MySQL_INCLUDE_DIR}")
+ endif ()
+ endif ()
+endif ()
+unset(_MySQL_use_pkgconfig)
> C:\sdk\src\apr2
# apr2 git commit:d131b4e1b
HEAD is now at d131b4e1b Follow-up to r1920854: Compile test_proc_args_winbatch() only on Windows.
Removing cmake/
# apply apr2.patch
Checking patch CMakeLists.txt...
Checking patch cmake/FindMySQL.cmake...
Applied patch CMakeLists.txt cleanly.
Applied patch cmake/FindMySQL.cmake cleanly.
-- The C compiler identification is MSVC 19.40.33815.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: C:/sdk/softs/vs22/Community/VC/Tools/MSVC/14.40.33807/bin/Hostx64/x64/cl.exe - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Found OpenSSL: C:/sdk/release/vs17_x64-avx2/_openssl/openssl/lib/libcrypto.lib (found version "3.3.2")
-- Found LibXml2: C:/sdk/release/vs17_x64-avx2/lib/libxml2.lib (found version "2.13.4")
-- Found Iconv: C:/sdk/release/vs17_x64-avx2/lib/libiconv.lib (found version "1.17")
-- Found SQLite3: C:/sdk/release/vs17_x64-avx2/include (found version "3.46.1")
-- Found MySQL: B:/serveur/mysql/include
--
--
-- APR configuration summary:
--
-- Build type ...................... : RelWithDebInfo
-- Install .pdb (if available)...... : ON
-- Install prefix .................. : C:/sdk/release/vs17_x64-avx2
-- Directory for binary files .... : PREFIX/bin
-- Directory for library files ... : PREFIX/lib
-- Directory for include files ... : PREFIX/include/apr-2
-- C compiler ...................... : C:/sdk/softs/vs22/Community/VC/Tools/MSVC/14.40.33807/bin/Hostx64/x64/cl.exe
-- IPv6 ............................ : ON
-- DBD ODBC driver ................. : ON
-- DBD SQLite3 driver .............. : ON
-- DBD MySQL driver ................ :
-- DBD PostgreSQL .................. : OFF
-- XML backend ..................... : libxml2
-- Have Crypto ..................... : ON
-- Have Iconv ...................... : ON
-- Library files for XML ........... : LibXml2::LibXml2
-- DSO build of modular components.. : ON
-- Turn on pools debugging ..........: OFF
-- Build shared libraries .......... : ON
-- Build test suite ................ : OFF
-- Install private .h for httpd .... : OFF
-- Configuring done (0.8s)
-- Generating done (0.1s)
-- Build files have been written to: C:/sdk/build/vs17_x64-avx2/apr2
[1/153] Building C object CMakeFiles\gen_test_char.dir\tools\gen_test_char.c.obj
[2/153] Linking C executable gen_test_char.exe
[3/153] Generating character tables, apr_escape_test_char.h, for current locale
[4/153] Building C object CMakeFiles\libaprapp-2.dir\misc\win32\internal.c.obj
[5/153] Building C object CMakeFiles\libaprapp-2.dir\misc\win32\apr_app.c.obj
[6/153] Building C object CMakeFiles\libapr-2.dir\atomic\win32\apr_atomic64.c.obj
[7/153] Building C object CMakeFiles\libapr-2.dir\buckets\apr_buckets.c.obj
[8/153] Building C object CMakeFiles\libapr-2.dir\buckets\apr_buckets_mmap.c.obj
[9/153] Building C object CMakeFiles\libapr-2.dir\buckets\apr_buckets_flush.c.obj
[10/153] Building C object CMakeFiles\libapr-2.dir\buckets\apr_buckets_eos.c.obj
[11/153] Building C object CMakeFiles\libapr-2.dir\buckets\apr_buckets_pool.c.obj
[12/153] Building C object CMakeFiles\libapr-2.dir\buckets\apr_buckets_simple.c.obj
[13/153] Building C object CMakeFiles\libapr-2.dir\buffer\apr_buffer.c.obj
[14/153] Building C object CMakeFiles\libapr-2.dir\buckets\apr_buckets_file.c.obj
[15/153] Building C object CMakeFiles\libapr-2.dir\buckets\apr_buckets_heap.c.obj
[16/153] Building C object CMakeFiles\libapr-2.dir\atomic\win32\apr_atomic.c.obj
[17/153] Building C object CMakeFiles\libapr-2.dir\buckets\apr_brigade.c.obj
[18/153] Building C object CMakeFiles\libapr-2.dir\buckets\apr_buckets_pipe.c.obj
[19/153] Building C object CMakeFiles\libapr-2.dir\buckets\apr_buckets_refcount.c.obj
[20/153] Building C object CMakeFiles\libapr-2.dir\buckets\apr_buckets_socket.c.obj
[21/153] Building C object CMakeFiles\libapr-2.dir\buckets\apr_buckets_alloc.c.obj
[22/153] Building C object CMakeFiles\libapr-2.dir\crypto\apr_crypto.c.obj
[23/153] Building C object CMakeFiles\libapr-2.dir\crypto\apr_crypto_prng.c.obj
[24/153] Building C object CMakeFiles\libapr-2.dir\crypto\crypt_blowfish.c.obj
[25/153] Building C object CMakeFiles\libapr-2.dir\crypto\apr_sha1.c.obj
[26/153] Building C object CMakeFiles\libapr-2.dir\crypto\apr_siphash.c.obj
[27/153] Building C object CMakeFiles\libapr-2.dir\crypto\apr_md4.c.obj
[28/153] Building C object CMakeFiles\libapr-2.dir\crypto\apr_md5.c.obj
[29/153] Building C object CMakeFiles\libapr-2.dir\crypto\uuid.c.obj
[30/153] Building C object CMakeFiles\libapr-2.dir\crypto\apr_passwd.c.obj
[31/153] Building C object CMakeFiles\libapr-2.dir\dbm\sdbm\sdbm_lock.c.obj
[32/153] Building C object CMakeFiles\libapr-2.dir\dbm\sdbm\sdbm.c.obj
[33/153] Building C object CMakeFiles\libapr-2.dir\crypto\getuuid.c.obj
[34/153] Building C object CMakeFiles\libapr-2.dir\dbm\apr_dbm.c.obj
[35/153] Building C object CMakeFiles\libapr-2.dir\dbm\sdbm\sdbm_hash.c.obj
[36/153] Building C object CMakeFiles\libapr-2.dir\dbm\sdbm\sdbm_pair.c.obj
[37/153] Building C object CMakeFiles\libapr-2.dir\dbd\apr_dbd.c.obj
[38/153] Building C object CMakeFiles\libapr-2.dir\dbm\apr_dbm_sdbm.c.obj
[39/153] Building C object CMakeFiles\libapr-2.dir\encoding\apr_base64.c.obj
[40/153] Building C object CMakeFiles\libapr-2.dir\dso\win32\dso.c.obj
[41/153] Building C object CMakeFiles\libapr-2.dir\encoding\apr_encode.c.obj
[42/153] Building C object CMakeFiles\libapr-2.dir\encoding\apr_escape.c.obj
[43/153] Building C object CMakeFiles\libapr-2.dir\file_io\unix\fullrw.c.obj
[44/153] Building C object CMakeFiles\libapr-2.dir\file_io\unix\filepath_util.c.obj
[45/153] Building C object CMakeFiles\libapr-2.dir\file_io\unix\copy.c.obj
[46/153] Building C object CMakeFiles\libapr-2.dir\file_io\unix\tempdir.c.obj
[47/153] Building C object CMakeFiles\libapr-2.dir\file_io\unix\mktemp.c.obj
[48/153] Building C object CMakeFiles\libapr-2.dir\file_io\win32\filedup.c.obj
[49/153] Building C object CMakeFiles\libapr-2.dir\file_io\win32\buffer.c.obj
[50/153] Building C object CMakeFiles\libapr-2.dir\file_io\unix\fileacc.c.obj
[51/153] Building C object CMakeFiles\libapr-2.dir\file_io\win32\dir.c.obj
[52/153] Building C object CMakeFiles\libapr-2.dir\file_io\win32\flock.c.obj
[53/153] Building C object CMakeFiles\libapr-2.dir\file_io\win32\filestat.c.obj
[54/153] Building C object CMakeFiles\libapr-2.dir\file_io\win32\filepath.c.obj
[55/153] Building C object CMakeFiles\libapr-2.dir\file_io\win32\filesys.c.obj
[56/153] Building C object CMakeFiles\libapr-2.dir\file_io\win32\open.c.obj
[57/153] Building C object CMakeFiles\libapr-2.dir\jose\apr_jose.c.obj
[58/153] Building C object CMakeFiles\libapr-2.dir\file_io\win32\seek.c.obj
[59/153] Building C object CMakeFiles\libapr-2.dir\file_io\win32\pipe.c.obj
[60/153] Building C object CMakeFiles\libapr-2.dir\jose\apr_jose_decode.c.obj
[61/153] Building C object CMakeFiles\libapr-2.dir\file_io\win32\readwrite.c.obj
[62/153] Building C object CMakeFiles\libapr-2.dir\jose\apr_jose_encode.c.obj
[63/153] Building C object CMakeFiles\libapr-2.dir\json\apr_json_encode.c.obj
[64/153] Building C object CMakeFiles\libapr-2.dir\json\apr_json.c.obj
[65/153] Building C object CMakeFiles\libapr-2.dir\json\apr_json_decode.c.obj
[66/153] Building C object CMakeFiles\libapr-2.dir\hooks\apr_hooks.c.obj
[67/153] Building C object CMakeFiles\libapr-2.dir\locks\win32\proc_mutex.c.obj
[68/153] Building C object CMakeFiles\libapr-2.dir\locks\win32\thread_rwlock.c.obj
[69/153] Building C object CMakeFiles\libapr-2.dir\memcache\apr_memcache.c.obj
[70/153] Building C object CMakeFiles\libapr-2.dir\locks\win32\thread_mutex.c.obj
[71/153] Building C object CMakeFiles\libapr-2.dir\locks\win32\thread_cond.c.obj
[72/153] Building C object CMakeFiles\libapr-2.dir\memory\unix\apr_pools.c.obj
[73/153] Building C object CMakeFiles\libapr-2.dir\misc\unix\version.c.obj
[74/153] Building C object CMakeFiles\libapr-2.dir\misc\win32\charset.c.obj
[75/153] Building C object CMakeFiles\libapr-2.dir\misc\unix\errorcodes.c.obj
[76/153] Building C object CMakeFiles\libapr-2.dir\misc\unix\otherchild.c.obj
[77/153] Building C object CMakeFiles\libapr-2.dir\misc\win32\internal.c.obj
[78/153] Building C object CMakeFiles\libapr-2.dir\misc\unix\getopt.c.obj
[79/153] Building C object CMakeFiles\libapr-2.dir\misc\win32\rand.c.obj
[80/153] Building C object CMakeFiles\libapr-2.dir\misc\win32\utf8.c.obj
[81/153] Building C object CMakeFiles\libapr-2.dir\misc\win32\env.c.obj
[82/153] Building C object CMakeFiles\libapr-2.dir\mmap\unix\common.c.obj
[83/153] Building C object CMakeFiles\libapr-2.dir\misc\win32\misc.c.obj
[84/153] Building C object CMakeFiles\libapr-2.dir\misc\win32\start.c.obj
[85/153] Building C object CMakeFiles\libapr-2.dir\network_io\unix\socket_util.c.obj
[86/153] Building C object CMakeFiles\libapr-2.dir\network_io\unix\inet_ntop.c.obj
[87/153] Building C object CMakeFiles\libapr-2.dir\network_io\unix\multicast.c.obj
[88/153] Building C object CMakeFiles\libapr-2.dir\network_io\unix\inet_pton.c.obj
[89/153] Building C object CMakeFiles\libapr-2.dir\mmap\win32\mmap.c.obj
[90/153] Building C object CMakeFiles\libapr-2.dir\network_io\unix\sockaddr.c.obj
[91/153] Building C object CMakeFiles\libapr-2.dir\network_io\win32\socket_pipe.c.obj
[92/153] Building C object CMakeFiles\libapr-2.dir\network_io\win32\sendrecv.c.obj
[93/153] Building C object CMakeFiles\libapr-2.dir\passwd\apr_getpass.c.obj
[94/153] Building C object CMakeFiles\libapr-2.dir\network_io\win32\sockets.c.obj
[95/153] Building C object CMakeFiles\libapr-2.dir\poll\unix\pollcb.c.obj
[96/153] Building C object CMakeFiles\libapr-2.dir\random\unix\apr_random.c.obj
[97/153] Building C object CMakeFiles\libapr-2.dir\network_io\win32\sockopt.c.obj
[98/153] Building C object CMakeFiles\libapr-2.dir\random\unix\sha2.c.obj
[99/153] Building C object CMakeFiles\libapr-2.dir\poll\unix\poll.c.obj
[100/153] Building C object CMakeFiles\libapr-2.dir\poll\unix\select.c.obj
[101/153] Building C object CMakeFiles\libapr-2.dir\poll\unix\pollset.c.obj
[102/153] Building C object CMakeFiles\libapr-2.dir\random\unix\sha2_glue.c.obj
[103/153] Building C object CMakeFiles\libapr-2.dir\strings\apr_cstr.c.obj
[104/153] Building C object CMakeFiles\libapr-2.dir\redis\apr_redis.c.obj
[105/153] Building C object CMakeFiles\libapr-2.dir\strings\apr_cpystrn.c.obj
[106/153] Building C object CMakeFiles\libapr-2.dir\poll\unix\wakeup.c.obj
[107/153] Building C object CMakeFiles\libapr-2.dir\strings\apr_fnmatch.c.obj
[108/153] Building C object CMakeFiles\libapr-2.dir\shmem\win32\shm.c.obj
[109/153] Building C object CMakeFiles\libapr-2.dir\strings\apr_strnatcmp.c.obj
[110/153] Building C object CMakeFiles\libapr-2.dir\strings\apr_snprintf.c.obj
[111/153] Building C object CMakeFiles\libapr-2.dir\strmatch\apr_strmatch.c.obj
[112/153] Building C object CMakeFiles\libapr-2.dir\strings\apr_strtok.c.obj
[113/153] Building C object CMakeFiles\libapr-2.dir\strings\apr_strings.c.obj
[114/153] Building C object CMakeFiles\libapr-2.dir\tables\apr_skiplist.c.obj
[115/153] Building C object CMakeFiles\libapr-2.dir\tables\apr_hash.c.obj
[116/153] Building C object CMakeFiles\libapr-2.dir\tables\apr_tables.c.obj
[117/153] Building C object CMakeFiles\libapr-2.dir\uri\apr_uri.c.obj
[118/153] Building C object CMakeFiles\libapr-2.dir\threadproc\win32\thread.c.obj
[119/153] Building C object CMakeFiles\libapr-2.dir\threadproc\win32\proc.c.obj
[120/153] Building C object CMakeFiles\libapr-2.dir\threadproc\win32\threadpriv.c.obj
[121/153] Building C object CMakeFiles\libapr-2.dir\time\win32\time.c.obj
[122/153] Building C object CMakeFiles\libapr-2.dir\time\win32\timestr.c.obj
[123/153] Building C object CMakeFiles\libapr-2.dir\threadproc\win32\signals.c.obj
[124/153] Building C object CMakeFiles\libapr-2.dir\user\win32\groupinfo.c.obj
[125/153] Building C object CMakeFiles\libapr-2.dir\util-misc\apr_error.c.obj
[126/153] Building C object CMakeFiles\libapr-2.dir\util-misc\apr_date.c.obj
[127/153] Building C object CMakeFiles\libapr-2.dir\user\win32\userinfo.c.obj
[128/153] Building C object CMakeFiles\libapr-2.dir\util-misc\apr_queue.c.obj
[129/153] Building C object CMakeFiles\libapr-2.dir\util-misc\apr_reslist.c.obj
[130/153] Building C object CMakeFiles\libapr-2.dir\util-misc\apr_rmm.c.obj
[131/153] Building C object CMakeFiles\libapr-2.dir\util-misc\apr_thread_pool.c.obj
[132/153] Linking C static library libaprapp-2.lib
[133/153] Building C object CMakeFiles\libapr-2.dir\xml\apr_xml_expat.c.obj
[134/153] Building C object CMakeFiles\libapr-2.dir\util-misc\apu_dso.c.obj
[135/153] Building C object CMakeFiles\libapr-2.dir\xlate\xlate.c.obj
[136/153] Building C object CMakeFiles\libapr-2.dir\xml\apr_xml_xmllite.c.obj
[137/153] Building RC object CMakeFiles\libapr-2.dir\libapr.rc.res
[138/153] Building C object CMakeFiles\libapr-2.dir\xml\apr_xml.c.obj
[139/153] Building RC object CMakeFiles\apr_crypto_openssl-2.dir\libapr.rc.res
[140/153] Building C object CMakeFiles\libapr-2.dir\xml\apr_xml_libxml2.c.obj
[141/153] Building RC object CMakeFiles\apr_dbd_odbc-2.dir\libapr.rc.res
[142/153] Building RC object CMakeFiles\apr_dbd_sqlite3-2.dir\libapr.rc.res
[143/153] Building C object CMakeFiles\apr_dbd_mysql-2.dir\dbd\apr_dbd_mysql.c.obj
[144/153] Building RC object CMakeFiles\apr_dbd_mysql-2.dir\libapr.rc.res
[145/153] Building C object CMakeFiles\apr_dbd_odbc-2.dir\dbd\apr_dbd_odbc.c.obj
[146/153] Building C object CMakeFiles\apr_dbd_sqlite3-2.dir\dbd\apr_dbd_sqlite3.c.obj
[147/153] Building C object CMakeFiles\apr_crypto_openssl-2.dir\crypto\apr_crypto_openssl.c.obj
[148/153] Linking C shared library libapr-2.dll
[149/153] Linking C shared library apr_dbd_mysql-2.dll
[150/153] Linking C shared library apr_dbd_sqlite3-2.dll
[151/153] Linking C shared library apr_crypto_openssl-2.dll
[152/153] Linking C shared library apr_dbd_odbc-2.dll
[152/153] Install the project...
-- Install configuration: "RelWithDebInfo"
-- Installing: C:/sdk/release/vs17_x64-avx2/lib/libapr-2.lib
-- Installing: C:/sdk/release/vs17_x64-avx2/bin/libapr-2.dll
-- Installing: C:/sdk/release/vs17_x64-avx2/lib/libaprapp-2.lib
-- Installing: C:/sdk/release/vs17_x64-avx2/lib/cmake/apr/apr-config.cmake
-- Installing: C:/sdk/release/vs17_x64-avx2/lib/cmake/apr/apr-config-relwithdebinfo.cmake
-- Installing: C:/sdk/release/vs17_x64-avx2/lib/cmake/apr/apr-config-version.cmake
-- Installing: C:/sdk/release/vs17_x64-avx2/bin/apr_crypto_openssl-2.dll
-- Installing: C:/sdk/release/vs17_x64-avx2/bin/apr_dbd_odbc-2.dll
-- Installing: C:/sdk/release/vs17_x64-avx2/bin/apr_dbd_sqlite3-2.dll
-- Installing: C:/sdk/release/vs17_x64-avx2/bin/apr_dbd_mysql-2.dll
-- Installing: C:/sdk/release/vs17_x64-avx2/bin/apr_crypto_openssl-2.pdb
-- Installing: C:/sdk/release/vs17_x64-avx2/bin/apr_dbd_odbc-2.pdb
-- Installing: C:/sdk/release/vs17_x64-avx2/bin/apr_dbd_sqlite3-2.pdb
-- Installing: C:/sdk/release/vs17_x64-avx2/bin/apr_dbd_mysql-2.pdb
-- Installing: C:/sdk/release/vs17_x64-avx2/bin/libapr-2.pdb
-- Installing: C:/sdk/release/vs17_x64-avx2/include/apr-2/apr_allocator.h
-- Installing: C:/sdk/release/vs17_x64-avx2/include/apr-2/apr_anylock.h
-- Installing: C:/sdk/release/vs17_x64-avx2/include/apr-2/apr_atomic.h
-- Installing: C:/sdk/release/vs17_x64-avx2/include/apr-2/apr_base64.h
-- Installing: C:/sdk/release/vs17_x64-avx2/include/apr-2/apr_buckets.h
-- Installing: C:/sdk/release/vs17_x64-avx2/include/apr-2/apr_buffer.h
-- Installing: C:/sdk/release/vs17_x64-avx2/include/apr-2/apr_crypto.h
-- Installing: C:/sdk/release/vs17_x64-avx2/include/apr-2/apr_cstr.h
-- Installing: C:/sdk/release/vs17_x64-avx2/include/apr-2/apr_date.h
-- Installing: C:/sdk/release/vs17_x64-avx2/include/apr-2/apr_dbd.h
-- Installing: C:/sdk/release/vs17_x64-avx2/include/apr-2/apr_dbm.h
-- Installing: C:/sdk/release/vs17_x64-avx2/include/apr-2/apr_dso.h
-- Installing: C:/sdk/release/vs17_x64-avx2/include/apr-2/apr_encode.h
-- Installing: C:/sdk/release/vs17_x64-avx2/include/apr-2/apr_env.h
-- Installing: C:/sdk/release/vs17_x64-avx2/include/apr-2/apr_errno.h
-- Installing: C:/sdk/release/vs17_x64-avx2/include/apr-2/apr_escape.h
-- Installing: C:/sdk/release/vs17_x64-avx2/include/apr-2/apr_file_info.h
-- Installing: C:/sdk/release/vs17_x64-avx2/include/apr-2/apr_file_io.h
-- Installing: C:/sdk/release/vs17_x64-avx2/include/apr-2/apr_fnmatch.h
-- Installing: C:/sdk/release/vs17_x64-avx2/include/apr-2/apr_general.h
-- Installing: C:/sdk/release/vs17_x64-avx2/include/apr-2/apr_getopt.h
-- Installing: C:/sdk/release/vs17_x64-avx2/include/apr-2/apr_global_mutex.h
-- Installing: C:/sdk/release/vs17_x64-avx2/include/apr-2/apr_hash.h
-- Installing: C:/sdk/release/vs17_x64-avx2/include/apr-2/apr_hooks.h
-- Installing: C:/sdk/release/vs17_x64-avx2/include/apr-2/apr_inherit.h
-- Installing: C:/sdk/release/vs17_x64-avx2/include/apr-2/apr_jose.h
-- Installing: C:/sdk/release/vs17_x64-avx2/include/apr-2/apr_json.h
-- Installing: C:/sdk/release/vs17_x64-avx2/include/apr-2/apr_ldap.h
-- Installing: C:/sdk/release/vs17_x64-avx2/include/apr-2/apr_lib.h
-- Installing: C:/sdk/release/vs17_x64-avx2/include/apr-2/apr_md4.h
-- Installing: C:/sdk/release/vs17_x64-avx2/include/apr-2/apr_md5.h
-- Installing: C:/sdk/release/vs17_x64-avx2/include/apr-2/apr_memcache.h
-- Installing: C:/sdk/release/vs17_x64-avx2/include/apr-2/apr_mmap.h
-- Installing: C:/sdk/release/vs17_x64-avx2/include/apr-2/apr_network_io.h
-- Installing: C:/sdk/release/vs17_x64-avx2/include/apr-2/apr_optional.h
-- Installing: C:/sdk/release/vs17_x64-avx2/include/apr-2/apr_optional_hooks.h
-- Installing: C:/sdk/release/vs17_x64-avx2/include/apr-2/apr_perms_set.h
-- Installing: C:/sdk/release/vs17_x64-avx2/include/apr-2/apr_poll.h
-- Installing: C:/sdk/release/vs17_x64-avx2/include/apr-2/apr_pools.h
-- Installing: C:/sdk/release/vs17_x64-avx2/include/apr-2/apr_portable.h
-- Installing: C:/sdk/release/vs17_x64-avx2/include/apr-2/apr_proc_mutex.h
-- Installing: C:/sdk/release/vs17_x64-avx2/include/apr-2/apr_queue.h
-- Installing: C:/sdk/release/vs17_x64-avx2/include/apr-2/apr_random.h
-- Installing: C:/sdk/release/vs17_x64-avx2/include/apr-2/apr_redis.h
-- Installing: C:/sdk/release/vs17_x64-avx2/include/apr-2/apr_reslist.h
-- Installing: C:/sdk/release/vs17_x64-avx2/include/apr-2/apr_ring.h
-- Installing: C:/sdk/release/vs17_x64-avx2/include/apr-2/apr_rmm.h
-- Installing: C:/sdk/release/vs17_x64-avx2/include/apr-2/apr_sdbm.h
-- Installing: C:/sdk/release/vs17_x64-avx2/include/apr-2/apr_sha1.h
-- Installing: C:/sdk/release/vs17_x64-avx2/include/apr-2/apr_shm.h
-- Installing: C:/sdk/release/vs17_x64-avx2/include/apr-2/apr_signal.h
-- Installing: C:/sdk/release/vs17_x64-avx2/include/apr-2/apr_siphash.h
-- Installing: C:/sdk/release/vs17_x64-avx2/include/apr-2/apr_skiplist.h
-- Installing: C:/sdk/release/vs17_x64-avx2/include/apr-2/apr_strings.h
-- Installing: C:/sdk/release/vs17_x64-avx2/include/apr-2/apr_strmatch.h
-- Installing: C:/sdk/release/vs17_x64-avx2/include/apr-2/apr_tables.h
-- Installing: C:/sdk/release/vs17_x64-avx2/include/apr-2/apr_thread_cond.h
-- Installing: C:/sdk/release/vs17_x64-avx2/include/apr-2/apr_thread_mutex.h
-- Installing: C:/sdk/release/vs17_x64-avx2/include/apr-2/apr_thread_pool.h
-- Installing: C:/sdk/release/vs17_x64-avx2/include/apr-2/apr_thread_proc.h
-- Installing: C:/sdk/release/vs17_x64-avx2/include/apr-2/apr_thread_rwlock.h
-- Installing: C:/sdk/release/vs17_x64-avx2/include/apr-2/apr_time.h
-- Installing: C:/sdk/release/vs17_x64-avx2/include/apr-2/apr_uri.h
-- Installing: C:/sdk/release/vs17_x64-avx2/include/apr-2/apr_user.h
-- Installing: C:/sdk/release/vs17_x64-avx2/include/apr-2/apr_uuid.h
-- Installing: C:/sdk/release/vs17_x64-avx2/include/apr-2/apr_version.h
-- Installing: C:/sdk/release/vs17_x64-avx2/include/apr-2/apr_want.h
-- Installing: C:/sdk/release/vs17_x64-avx2/include/apr-2/apr_xlate.h
-- Installing: C:/sdk/release/vs17_x64-avx2/include/apr-2/apr_xml.h
-- Installing: C:/sdk/release/vs17_x64-avx2/include/apr-2/apu.h
-- Installing: C:/sdk/release/vs17_x64-avx2/include/apr-2/apu_errno.h
-- Installing: C:/sdk/release/vs17_x64-avx2/include/apr-2/apu_version.h
-- Installing: C:/sdk/release/vs17_x64-avx2/include/apr-2/apr.h
-- Installing: C:/sdk/release/vs17_x64-avx2/include/apr-2/apu_want.h
[version] '2.0.0' C:\sdk\release\vs17_x64-avx2\bin\libapr-2.dll (C:\sdk\src\apr2\include\apr_version.h)
cmake\n-LAH
-DCMAKE_FIND_DEBUG_MODE=1
-DCMAKE_C_FLAGS_INIT=/std:clatest
-DCMAKE_PREFIX_PATH=C:\sdk\release\vs17_x64-avx2;C:\sdk\release\vs17_x64-avx2\_openssl\openssl;C:\sdk\release\vs17_x64-avx2\_gdal;C:\sdk\release\vs17_x64-avx2\_proj;B:\serveur\mysql
-DCMAKE_FIND_USE_CMAKE_PATH=ON
-DCMAKE_FIND_USE_CMAKE_ENVIRONMENT_PATH=OFF
-DCMAKE_FIND_USE_SYSTEM_ENVIRONMENT_PATH=ON
-DCMAKE_FIND_USE_CMAKE_SYSTEM_PATH=OFF
-DCMAKE_FIND_USE_INSTALL_PREFIX=OFF
-DCMAKE_BUILD_TYPE=RelWithDebInfo
-G "Ninja"
-DCMAKE_INSTALL_PREFIX=C:\sdk\release\vs17_x64-avx2
-DCMAKE_BUILD_TYPE=RelWithDebInfo
-DAPR_BUILD_TESTAPR=OFF
-DAPR_HAVE_IPV6=ON
-DAPR_INSTALL_PRIVATE_H=OFF
-DAPR_MINIMAL_BUILD=OFF
-DAPR_MODULAR_DSO=ON
-DAPR_POOL_DEBUG=OFF
-DAPR_XML_BACKEND=libxml2
-DAPU_HAVE_CRYPTO=ON
-DAPU_HAVE_ICONV=ON
-DAPU_HAVE_ODBC=ON
-DAPU_HAVE_PGSQL=OFF
-DAPU_HAVE_SQLITE3=ON
-DBUILD_SHARED_LIBS=ON
-DINSTALL_PDB=ON
-DOPENSSL_ROOT_DIR=C:\sdk\release\vs17_x64-avx2\_openssl\openssl
-DOPENSSL_INCLUDE_DIR=C:\sdk\release\vs17_x64-avx2\_openssl\openssl/include
-DCMAKE_MODULE_PATH=C:/sdk/src/apr2/cmake/
-DAPU_HAVE_MYSQL=ON
-DMySQL_LIBRARY=B:\serveur\mysql/lib/mysqlclient.lib
-DMySQL_INCLUDE_DIR=B:\serveur\mysql/include C:\sdk\src\apr2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment