File tree 2 files changed +26
-13
lines changed
2 files changed +26
-13
lines changed Original file line number Diff line number Diff line change @@ -19,9 +19,7 @@ Directories
19
19
OpenVPN using mingw_w64 (e.g. Linux -> Windows).
20
20
21
21
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.
25
23
26
24
The "windows-nsis" subdir contains scripts to
27
25
cross-compile and package OpenVPN for Windows.
Original file line number Diff line number Diff line change 5
5
This subdirectory contains scripts for building OpenVPN
6
6
and all it's dependencies using Microsoft Visual C.
7
7
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.
15
10
16
11
Usage
17
12
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
20
35
21
- <https://community. openvpn.net/openvpn>
36
+ or change "Working Directory" to openvpn-build\msvc\image\bin.
You can’t perform that action at this time.
0 commit comments