mirror of https://github.com/ntop/n2n.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
45 lines
1.6 KiB
45 lines
1.6 KiB
6 years ago
|
# Requirements
|
||
|
|
||
|
In order to build on Windows the following tools should be installed:
|
||
|
|
||
|
- Visual Studio. For a minimal install, the command line only build tools can be
|
||
|
downloaded and installed from https://visualstudio.microsoft.com/downloads/#build-tools-for-visual-studio-2017
|
||
|
|
||
|
- Cmake
|
||
|
|
||
|
- (optional) The OpenSSL library. Prebuild binaries can be downloaded from https://slproweb.com/products/Win32OpenSSL.html .
|
||
6 years ago
|
The full version is required (not the "Light" version). The Win32 version of it is usually required for a standard build.
|
||
6 years ago
|
|
||
6 years ago
|
NOTE: in order to skip OpenSSL compilation, edit CMakeLists.txt and replace
|
||
6 years ago
|
OPTION(N2N_OPTION_AES "USE AES" ON)
|
||
|
with
|
||
|
OPTION(N2N_OPTION_AES "USE AES" OFF)
|
||
|
|
||
6 years ago
|
NOTE: to static link OpenSSL, add the `-DOPENSSL_USE_STATIC_LIBS=true` option to the cmake command
|
||
|
|
||
6 years ago
|
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")
|
||
|
|
||
6 years ago
|
- If OpenSSL has been linked dynamically, the corresponding .dll file should be available
|
||
6 years ago
|
into the target computer
|
||
|
|
||
|
# Build (CLI)
|
||
|
|
||
|
In order to build from the command line, open a terminal window and run the following commands:
|
||
|
|
||
|
```
|
||
|
md build
|
||
|
cd build
|
||
|
cmake ..
|
||
|
|
||
|
MSBuild edge.vcxproj /t:Build /p:Configuration=Release
|
||
|
MSBuild supernode.vcxproj /t:Build /p:Configuration=Release
|
||
|
```
|
||
|
|
||
6 years ago
|
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"
|
||
|
|
||
6 years ago
|
The compiled exe files should now be available under the Release directory.
|