wiki:BuildingOnWindows

Prerequisites

  • Visual Studio 2022 or Build Tools for Visual Studio
  • git

Build steps

  • Clone openvpn repo
    C:\Temp>git clone https://github.com/OpenVPN/openvpn.git
    
  • Setup vcpkg
    C:\Temp>git clone https://github.com/microsoft/vcpkg.git
    ...
    C:\Temp>cd vcpkg
    C:\Temp\vcpkg>bootstrap-vcpkg.bat
    ...
    C:\Temp\vcpkg>vcpkg integrate install
    
  • Build openvpn

Now you could just open solution file openvpn.sln in Visual Studio and build from there, or build from VS Developer Command Prompt:

c:\Temp\openvpn>msbuild /p:Configuration=Release /p:Platform=x64

Supported platforms are x64, ARM64 and Win32.

Last modified 18 months ago Last modified on 12/23/22 08:26:21