savoirfairelinux / opendht

OpenDHT: a C++17 Distributed Hash Table implementation
GNU General Public License v3.0
1.03k stars 172 forks source link

windows build - MSVC Cmake #415

Open pmahend1 opened 5 years ago

pmahend1 commented 5 years ago

Could you please provide installation instructions for Windows either with MSVC or CMake I tried both , they fail.

CMake image

CMake Error at C:/Program Files/CMake/share/cmake-3.15/Modules/FindPackageHandleStandardArgs.cmake:137 (message):
  Could NOT find GnuTLS (missing: GNUTLS_LIBRARY GNUTLS_INCLUDE_DIR)
  (Required is at least version "3.3")
Call Stack (most recent call first):
  C:/Program Files/CMake/share/cmake-3.15/Modules/FindPackageHandleStandardArgs.cmake:378 (_FPHSA_FAILURE_MESSAGE)
  C:/Program Files/CMake/share/cmake-3.15/Modules/FindGnuTLS.cmake:55 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
  CMakeLists.txt:33 (find_package)

MSVC

PS C:\workspace\opendht\MSVC> .\fetch_deps.bat

C:\workspace\opendht\MSVC>call contrib\src\fetch_and_patch.bat
A subdirectory or file C:\workspace\opendht\MSVC\contrib\src\..\build already exists.
SYSTEM_WGETRC = c:/progra~1/wget/etc/wgetrc
syswgetrc = C:\Program Files (x86)\GnuWin32/etc/wgetrc
--2019-08-07 10:57:43--  https://github.com/P-H-C/phc-winner-argon2/archive/1eea0104e7cb2a38c617cf90ffa46ce5db6aceda.tar.gz
Resolving github.com... 192.30.253.112
Connecting to github.com|192.30.253.112|:443... connected.
OpenSSL: error:1407742E:SSL routines:SSL23_GET_SERVER_HELLO:tlsv1 alert protocol version
Unable to establish SSL connection.

7-Zip 19.00 (x64) : Copyright (c) 1999-2018 Igor Pavlov : 2019-02-21

Scanning the drive for archives:

ERROR: The system cannot find the file specified.
1eea0104e7cb2a38c617cf90ffa46ce5db6aceda.tar.gz

System ERROR:
The system cannot find the file specified.
Could Not Find C:\workspace\opendht\MSVC\1eea0104e7cb2a38c617cf90ffa46ce5db6aceda.tar
Could Not Find C:\workspace\opendht\MSVC\1eea0104e7cb2a38c617cf90ffa46ce5db6aceda.tar.gz
Could Not Find C:\workspace\opendht\MSVC\contrib\build\pax_global_header
The system cannot find the file specified.
Checking patch MSVC/contrib/build/argon2/vs2015/Argon2Ref/Argon2Ref.vcxproj...
error: while searching for:
    <CharacterSet>MultiByte</CharacterSet>?
  </PropertyGroup>?
  <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">?
    <ConfigurationType>Application</ConfigurationType>?
    <UseDebugLibraries>false</UseDebugLibraries>?
    <PlatformToolset>v140</PlatformToolset>?
    <WholeProgramOptimization>true</WholeProgramOptimization>?

error: patch failed: MSVC/contrib/build/argon2/vs2015/Argon2Ref/Argon2Ref.vcxproj:59
error: while searching for:
  <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />?
  <ImportGroup Label="ExtensionTargets">?
  </ImportGroup>?
</Project>?

error: patch failed: MSVC/contrib/build/argon2/vs2015/Argon2Ref/Argon2Ref.vcxproj:223
Applying patch MSVC/contrib/build/argon2/vs2015/Argon2Ref/Argon2Ref.vcxproj with 2 rejects...
Rejected hunk #1.
Hunk #2 applied cleanly.
Hunk #3 applied cleanly.
Rejected hunk #4.
A subdirectory or file C:\workspace\opendht\MSVC\contrib\src\..\build already exists.
SYSTEM_WGETRC = c:/progra~1/wget/etc/wgetrc
syswgetrc = C:\Program Files (x86)\GnuWin32/etc/wgetrc
--2019-08-07 10:57:44--  https://github.com/ShiftMediaProject/gmp/archive/3c8f5a0ae0c2ac9ff0ea31b27f71b152979b556d.tar.gz
Resolving github.com... 192.30.253.112
Connecting to github.com|192.30.253.112|:443... connected.
OpenSSL: error:1407742E:SSL routines:SSL23_GET_SERVER_HELLO:tlsv1 alert protocol version
Unable to establish SSL connection.

7-Zip 19.00 (x64) : Copyright (c) 1999-2018 Igor Pavlov : 2019-02-21

Scanning the drive for archives:

ERROR: The system cannot find the file specified.
3c8f5a0ae0c2ac9ff0ea31b27f71b152979b556d.tar.gz

System ERROR:
The system cannot find the file specified.
Could Not Find C:\workspace\opendht\MSVC\contrib\src\3c8f5a0ae0c2ac9ff0ea31b27f71b152979b556d.tar
Could Not Find C:\workspace\opendht\MSVC\contrib\src\3c8f5a0ae0c2ac9ff0ea31b27f71b152979b556d.tar.gz
Could Not Find C:\workspace\opendht\MSVC\contrib\build\pax_global_header
The system cannot find the file specified.
The system cannot find the path specified.
Checking patch MSVC/contrib/src/SMP/libgmp.vcxproj...
error: MSVC/contrib/src/SMP/libgmp.vcxproj: No such file or directory
Checking patch MSVC/contrib/src/SMP/config.h...
error: MSVC/contrib/src/SMP/config.h: No such file or directory
A subdirectory or file C:\workspace\opendht\MSVC\contrib\src\..\build already exists.
SYSTEM_WGETRC = c:/progra~1/wget/etc/wgetrc
syswgetrc = C:\Program Files (x86)\GnuWin32/etc/wgetrc
--2019-08-07 10:57:44--  https://github.com/ShiftMediaProject/gnutls/archive/f2d0ade53ff644da55244aed79d05eca78d11a2f.tar.gz
Resolving github.com... 192.30.253.112
Connecting to github.com|192.30.253.112|:443... connected.
OpenSSL: error:1407742E:SSL routines:SSL23_GET_SERVER_HELLO:tlsv1 alert protocol version
Unable to establish SSL connection.

7-Zip 19.00 (x64) : Copyright (c) 1999-2018 Igor Pavlov : 2019-02-21

Scanning the drive for archives:

ERROR: The system cannot find the file specified.
f2d0ade53ff644da55244aed79d05eca78d11a2f.tar.gz

System ERROR:
The system cannot find the file specified.
Could Not Find C:\workspace\opendht\MSVC\contrib\src\f2d0ade53ff644da55244aed79d05eca78d11a2f.tar
Could Not Find C:\workspace\opendht\MSVC\contrib\src\f2d0ade53ff644da55244aed79d05eca78d11a2f.tar.gz
Could Not Find C:\workspace\opendht\MSVC\contrib\build\pax_global_header
The system cannot find the file specified.
The system cannot find the path specified.
Skipped patch 'lib/nettle/Makefile.am'.
Skipped patch 'lib/nettle/Makefile.in'.
Skipped patch 'lib/nettle/rnd-common.c'.
Checking patch MSVC/contrib/src/gl/read-file.c...
error: MSVC/contrib/src/gl/read-file.c: No such file or directory
Checking patch MSVC/contrib/src/SMP/libgnutls.vcxproj...
error: MSVC/contrib/src/SMP/libgnutls.vcxproj: No such file or directory
Checking patch MSVC/contrib/src/lib/nettle/rnd-common.c...
error: MSVC/contrib/src/lib/nettle/rnd-common.c: No such file or directory
Checking patch MSVC/contrib/src/lib/opencdk/misc.c...
error: MSVC/contrib/src/lib/opencdk/misc.c: No such file or directory
Checking patch MSVC/contrib/src/lib/system-keys-win.c...
error: MSVC/contrib/src/lib/system-keys-win.c: No such file or directory
Checking patch MSVC/contrib/src/lib/system-keys-win.c...
error: MSVC/contrib/src/lib/system-keys-win.c: No such file or directory
Checking patch MSVC/contrib/src/lib/system.c...
error: MSVC/contrib/src/lib/system.c: No such file or directory
Checking patch MSVC/contrib/src/lib/accelerated/x86/x86-common.c...
error: MSVC/contrib/src/lib/accelerated/x86/x86-common.c: No such file or directory
Checking patch MSVC/contrib/src/lib/gnutls_global.c...
error: MSVC/contrib/src/lib/gnutls_global.c: No such file or directory
Checking patch MSVC/contrib/src/lib/gnutls_kx.c...
error: MSVC/contrib/src/lib/gnutls_kx.c: No such file or directory
Checking patch MSVC/contrib/src/lib/system.c...
error: MSVC/contrib/src/lib/system.c: No such file or directory
A subdirectory or file C:\workspace\opendht\MSVC\contrib\src\..\build already exists.
SYSTEM_WGETRC = c:/progra~1/wget/etc/wgetrc
syswgetrc = C:\Program Files (x86)\GnuWin32/etc/wgetrc
--2019-08-07 10:57:45--  https://github.com/ShiftMediaProject/libiconv/archive/65ab92f7a1699ecc39e37fb81f66e5a42aaa35c4.tar.gz
Resolving github.com... 192.30.253.112
Connecting to github.com|192.30.253.112|:443... connected.
OpenSSL: error:1407742E:SSL routines:SSL23_GET_SERVER_HELLO:tlsv1 alert protocol version
Unable to establish SSL connection.

7-Zip 19.00 (x64) : Copyright (c) 1999-2018 Igor Pavlov : 2019-02-21

Scanning the drive for archives:

ERROR: The system cannot find the file specified.
65ab92f7a1699ecc39e37fb81f66e5a42aaa35c4.tar.gz

System ERROR:
The system cannot find the file specified.
Could Not Find C:\workspace\opendht\MSVC\contrib\src\65ab92f7a1699ecc39e37fb81f66e5a42aaa35c4.tar
Could Not Find C:\workspace\opendht\MSVC\contrib\src\65ab92f7a1699ecc39e37fb81f66e5a42aaa35c4.tar.gz
Could Not Find C:\workspace\opendht\MSVC\contrib\build\pax_global_header
The system cannot find the file specified.
The system cannot find the path specified.
Checking patch MSVC/contrib/src/SMP/libiconv.vcxproj...
error: MSVC/contrib/src/SMP/libiconv.vcxproj: No such file or directory
A subdirectory or file C:\workspace\opendht\MSVC\contrib\src\..\build already exists.
SYSTEM_WGETRC = c:/progra~1/wget/etc/wgetrc
syswgetrc = C:\Program Files (x86)\GnuWin32/etc/wgetrc
--2019-08-07 10:57:46--  https://github.com/msgpack/msgpack-c/archive/1df97bc37b363a340c5ad06c5cbcc53310aaff80.tar.gz
Resolving github.com... 192.30.253.112
Connecting to github.com|192.30.253.112|:443... connected.
OpenSSL: error:1407742E:SSL routines:SSL23_GET_SERVER_HELLO:tlsv1 alert protocol version
Unable to establish SSL connection.

7-Zip 19.00 (x64) : Copyright (c) 1999-2018 Igor Pavlov : 2019-02-21

Scanning the drive for archives:

ERROR: The system cannot find the file specified.
1df97bc37b363a340c5ad06c5cbcc53310aaff80.tar.gz

System ERROR:
The system cannot find the file specified.
Could Not Find C:\workspace\opendht\MSVC\contrib\src\1df97bc37b363a340c5ad06c5cbcc53310aaff80.tar
Could Not Find C:\workspace\opendht\MSVC\contrib\src\1df97bc37b363a340c5ad06c5cbcc53310aaff80.tar.gz
Could Not Find C:\workspace\opendht\MSVC\contrib\build\pax_global_header
The system cannot find the file specified.
The system cannot find the path specified.
Checking patch MSVC/contrib/src/msgpack_vc8.vcxproj...
error: MSVC/contrib/src/msgpack_vc8.vcxproj: already exists in working directory
A subdirectory or file C:\workspace\opendht\MSVC\contrib\src\..\build already exists.
SYSTEM_WGETRC = c:/progra~1/wget/etc/wgetrc
syswgetrc = C:\Program Files (x86)\GnuWin32/etc/wgetrc
--2019-08-07 10:57:46--  https://github.com/ShiftMediaProject/nettle/archive/4e0b2723b76d4163fa37b2b456d41534154ec97c.tar.gz
Resolving github.com... 192.30.253.112
Connecting to github.com|192.30.253.112|:443... connected.
OpenSSL: error:1407742E:SSL routines:SSL23_GET_SERVER_HELLO:tlsv1 alert protocol version
Unable to establish SSL connection.

7-Zip 19.00 (x64) : Copyright (c) 1999-2018 Igor Pavlov : 2019-02-21

Scanning the drive for archives:

ERROR: The system cannot find the file specified.
4e0b2723b76d4163fa37b2b456d41534154ec97c.tar.gz

System ERROR:
The system cannot find the file specified.
Could Not Find C:\workspace\opendht\MSVC\contrib\src\4e0b2723b76d4163fa37b2b456d41534154ec97c.tar
Could Not Find C:\workspace\opendht\MSVC\contrib\src\4e0b2723b76d4163fa37b2b456d41534154ec97c.tar.gz
Could Not Find C:\workspace\opendht\MSVC\contrib\build\pax_global_header
The system cannot find the file specified.
The system cannot find the path specified.
Checking patch MSVC/contrib/src/SMP/libhogweed.vcxproj...
error: MSVC/contrib/src/SMP/libhogweed.vcxproj: No such file or directory
Checking patch MSVC/contrib/src/SMP/libnettle.vcxproj...
error: MSVC/contrib/src/SMP/libnettle.vcxproj: No such file or directory
The system cannot find the path specified.
A subdirectory or file C:\workspace\opendht\MSVC\contrib\src\..\build already exists.
SYSTEM_WGETRC = c:/progra~1/wget/etc/wgetrc
syswgetrc = C:\Program Files (x86)\GnuWin32/etc/wgetrc
--2019-08-07 10:57:47--  https://github.com/ShiftMediaProject/zlib/archive/3a062eb61d0c3d4aa30851cd1a6597b977b56597.tar.gz
Resolving github.com... 192.30.253.112
Connecting to github.com|192.30.253.112|:443... connected.
OpenSSL: error:1407742E:SSL routines:SSL23_GET_SERVER_HELLO:tlsv1 alert protocol version
Unable to establish SSL connection.

7-Zip 19.00 (x64) : Copyright (c) 1999-2018 Igor Pavlov : 2019-02-21

Scanning the drive for archives:

ERROR: The system cannot find the file specified.
3a062eb61d0c3d4aa30851cd1a6597b977b56597.tar.gz

System ERROR:
The system cannot find the file specified.
Could Not Find C:\workspace\opendht\MSVC\contrib\src\3a062eb61d0c3d4aa30851cd1a6597b977b56597.tar
Could Not Find C:\workspace\opendht\MSVC\contrib\src\3a062eb61d0c3d4aa30851cd1a6597b977b56597.tar.gz
Could Not Find C:\workspace\opendht\MSVC\contrib\build\pax_global_header
The system cannot find the file specified.
The system cannot find the path specified.
Checking patch MSVC/contrib/src/SMP/libzlib.vcxproj...
error: MSVC/contrib/src/SMP/libzlib.vcxproj: No such file or directory
PS C:\workspace\opendht\MSVC>
ghenry commented 2 years ago

Still a issue?

Thanks.

pmahend1 commented 2 years ago

I havent used opendht in years. Feel free to close the ticket if other users dont have the issue anymore.

ghenry commented 2 years ago

Thanks @pmahend1 We'll await another report if it is. Have a good weekend!