mirror of
https://github.com/ntop/n2n.git
synced 2024-09-19 00:21:11 +02:00
Add Windows compilation instructions
This commit is contained in:
parent
d7b3b2c06b
commit
5742ef978f
|
@ -20,6 +20,11 @@ $ N2N_KEY=encryptme sudo ./edge -d n2n0 -c mynetwork -u 99 -g 99 -m 3C:A0:12:34:
|
|||
|
||||
By defaul the edge will run in background but you can use the `-f` option to keep it in foreground.
|
||||
|
||||
Windows
|
||||
-------
|
||||
|
||||
Check out doc/windows for compilation and run istuctions.
|
||||
|
||||
Note that `-d`, `-u`, `-g` and `-f` options are not available for Windows.
|
||||
|
||||
Supernode
|
||||
|
|
39
doc/windows
Normal file
39
doc/windows
Normal file
|
@ -0,0 +1,39 @@
|
|||
# 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 .
|
||||
The full version is required (not the "Light" version).
|
||||
|
||||
IMPORTANT: 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)
|
||||
|
||||
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
|
||||
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
|
||||
```
|
||||
|
||||
The compiled exe files should now be available under the Release directory.
|
Loading…
Reference in New Issue
Block a user