After installing vcpkg and adding -DCMAKE_TOOLCHAIN_FILE:FILEPATH=C:/vcpkg/scripts/buildsystems/vcpkg.cmake, cmake's find_package() works - libcurl is found, but we still get the error in the test:
worker[01] mysql-test-run: WARNING: Process [mysqld.1 - pid: 45092, winpid: 45092] died after mysql-test-run waited 0 seconds for C:/Users/Administrator/Desktop/anel/bld/mysql-test/var/1/run/mysqld.1.pid to be created.
|
connect.rest w1 [ fail ]
|
After checking the linked library we can find:
>> dumpbin /dependents storage\connect\Debug\ha_connect.dll
|
|
File Type: DLL
|
Image has the following dependencies:
|
libcurl-d.dll
|
After testing locally (building the binaries in bld directory) it can found following paths of library .dll
C:\vcpkg\installed\x64-windows\debug\bin
|
C:\vcpkg\packages\curl_x64-windows\debug\bin
|
C:\Users\Administrator\Desktop\anel\bld\storage\connect\Debug
|
C:\Users\Administrator\Desktop\anel\bld\mysql-test\var\plugins
|
After adding the C:\vcpkg\packages\curl_x64-windows\debug\bin to PATH still test didn't work and failed with the same error.
After adding the C:\vcpkg\installed\x64-windows\debug\bin to PATH it worked (very likely because cur has a bunch of dependencies itself).
With this change on Windows test works:
connect.rest w1 [ pass ] 328
|
Connect suite is also tested and it worked.
Completed: All 59 tests were successful.
|
|
15 tests were skipped, 15 by the test itself.
|
Direct link for libcurl for W64 here