Skip to content

Commit 59f42fc

Browse files
committed
README: document Visual Studio build system
Signed-off-by: Lev Stipakov <lev@openvpn.net>
1 parent ec3efd8 commit 59f42fc

File tree

2 files changed

+26
-13
lines changed

2 files changed

+26
-13
lines changed

README

+1-3
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,7 @@ Directories
1919
OpenVPN using mingw_w64 (e.g. Linux -> Windows).
2020

2121
The "msvc" subdir is used to compile OpenVPN on Windows
22-
for Windows using Microsoft Visual Studio tools. Please
23-
note that the "msvc" buildsystem is not actively
24-
maintained anymore.
22+
for Windows using Microsoft Visual Studio 2017.
2523

2624
The "windows-nsis" subdir contains scripts to
2725
cross-compile and package OpenVPN for Windows.

msvc/README

+25-10
Original file line numberDiff line numberDiff line change
@@ -5,17 +5,32 @@ About
55
This subdirectory contains scripts for building OpenVPN
66
and all it's dependencies using Microsoft Visual C.
77

8-
Note that this buildsystem is not actively maintained
9-
anymore, and people are strongly encouraged to use the
10-
cross-compile (mingw_w64) buildsystem instead. For
11-
details look here:
12-
13-
../generic/README
14-
../windows-nsis/README
8+
You need to install Visual Studio 2017 (Community or Professional)
9+
and ActiveState Perl.
1510

1611
Usage
1712

18-
If you're sure you _need_ to build using MSVC, please
19-
refer to instructions in the OpenVPN wiki:
13+
Just run build.bat - this downloads and build dependencies and openvpn.
14+
15+
You can override build options either with build-dev-local.bat or by setting
16+
enviromental variables in console. For example if you want to build from
17+
another GitHub fork or branch:
18+
19+
c:\Temp\openvpn-build\msvc>set GITHUB_USER=lstipakov&& set OPENVPN_VERSION=vs2017&& build.bat
20+
21+
After command-line build you can use Visual Studio IDE - just open
22+
23+
openvpn-build\msvc\build.tmp\openvpn-<branch>\openvpn.sln
24+
25+
Note that by default build.bat builds dependencies for x64 architecture, so don't
26+
forget to set "Solution Platforms" to "x64".
27+
28+
When running openvpn from IDE, you either need to copy dependencies (libeay32.dll etc) from
29+
30+
openvpn-build\msvc\image\bin
31+
32+
to
33+
34+
openvpn-build\msvc\build.tmp\openvpn-vs2017\x64-Output\Debug
2035

21-
<https://community.openvpn.net/openvpn>
36+
or change "Working Directory" to openvpn-build\msvc\image\bin.

0 commit comments

Comments
 (0)