From 7e5fd863a8b9be0f686638a90252208b5326e5d7 Mon Sep 17 00:00:00 2001 From: emanuele-f Date: Sun, 3 Mar 2019 04:15:38 +0100 Subject: [PATCH] Improve Windows compilation instructions --- doc/windows | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/doc/windows b/doc/windows index 7c40272..19bc0f2 100644 --- a/doc/windows +++ b/doc/windows @@ -8,19 +8,21 @@ In order to build on Windows the following tools should be installed: - Cmake - (optional) The OpenSSL library. Prebuild binaries can be downloaded from https://slproweb.com/products/Win32OpenSSL.html . - The full version is required (not the "Light" version). + The full version is required (not the "Light" version). The Win32 version of it is usually required for a standard build. - IMPORTANT: in order to skip OpenSSL compilation, edit CMakeLists.txt and replace + NOTE: in order to skip OpenSSL compilation, edit CMakeLists.txt and replace OPTION(N2N_OPTION_AES "USE AES" ON) with OPTION(N2N_OPTION_AES "USE AES" OFF) + NOTE: to static link OpenSSL, add the `-DOPENSSL_USE_STATIC_LIBS=true` option to the cmake command + In order to run n2n: - The TAP drivers should be installed into the system. They can be installed from http://build.openvpn.net/downloads/releases (search for "tap-windows") - - If OpenSSL has been compiled, the corresponding .dll file should be available + - If OpenSSL has been linked dynamically, the corresponding .dll file should be available into the target computer # Build (CLI) @@ -36,4 +38,7 @@ MSBuild edge.vcxproj /t:Build /p:Configuration=Release MSBuild supernode.vcxproj /t:Build /p:Configuration=Release ``` +NOTE: if cmake has problems finding the installed OpenSSL library, try to download the official cmake and invoke it with: + "C:\Program Files\CMake\bin\cmake" + The compiled exe files should now be available under the Release directory.