Changes between Version 8 and Version 9 of BuildingOpenVPN-GUI


Ignore:
Timestamp:
06/17/22 14:02:48 (6 months ago)
Author:
stipa
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • BuildingOpenVPN-GUI

    v8 v9  
    1 = Introduction =
     1= Building the OpenVPN-GUI on Windows =
    22
    3 OpenVPN Windows releases include a Windows GUI, which is not part of the core project. OpenVPN versions 2.2.x and earlier include the [http://openvpn.se old Windows GUI], whereas 2.3 and later include the [https://github.com/OpenVPN/openvpn-gui/blob/master/README.rst new Windows GUI]. These instruction cover building the new GUI, although instruction for the old one are probably very similar.
     3This is the recommended way of building openvpn-gui on Windows, which is also used when doing OpenVPN Windows releases.
    44
    5 = Building the OpenVPN installer bundle =
     5== Prerequisites ==
    66
    7 Currently the easiest way to build OpenVPN-GUI is to build the entire OpenVPN Windows installer bundle and extract the produced OpenVPN-GUI binary. Thorough instructions are available [https://community.openvpn.net/openvpn/wiki/BuildingUsingGenericBuildsystem here].
     7 - Visual Studio 2019 (build tools should be enough, also 2022 will likely work)
     8 - CMake
     9 - vcpkg (add the environment variable ``VCPKG_ROOT`` which points to vcpkg installation)
    810
    9 = Building OpenVPN-GUI =
     11== Build steps ==
     12
     13Run inside MSVC command prompt:
     14
     15
     16{{{
     17    c:\Temp\openvpn-gui>cmake -S . --preset x64-release-ossl3
     18    c:\Temp\openvpn-gui>cmake --build --preset x64-release-ossl3
     19}}}
     20
     21
     22To see all presets, run:
     23
     24
     25{{{
     26  C:\Users\lev\Projects\openvpn-gui>cmake -S c:\Users\lev\Projects\openvpn-gui --list-presets
     27  Available configure presets:
     28  "x64-debug-ossl3"
     29  "x64-debug-ossl1.1.1"
     30  "arm64-debug-ossl3"
     31  "arm64-debug-ossl1.1.1"
     32  "x86-debug-ossl3"
     33  "x86-debug-ossl1.1.1"
     34  "x64-release-ossl3"
     35  "x64-release-ossl1.1.1"
     36  "arm64-release-ossl3"
     37  "arm64-release-ossl1.1.1"
     38  "x86-release-ossl3"
     39  "x86-release-ossl1.1.1"
     40}}}
     41
     42
     43You could also open CMake project from MSVC IDE and build from there.
     44
     45= Building OpenVPN-GUI on Linux =
    1046
    1147This information is adapted from [http://thread.gmane.org/gmane.network.openvpn.devel/10516/focus=10531 Selva's] and [http://thread.gmane.org/gmane.network.openvpn.devel/10516/focus=10531 David's] emails to openvpn-devel mailing list.