OpenVPN / openvpn-gui

OpenVPN GUI is a graphical frontend for OpenVPN running on Windows 7 / 8 / 10. It creates an icon in the notification area from which you can control OpenVPN to start/stop your VPN tunnels, view the log and do other useful things.
Other
1.38k stars 397 forks source link

Vcpkg error when building from sources #660

Open jaybi opened 7 months ago

jaybi commented 7 months ago

Hi,

Config : MVSC 2022 vcpkg 2023-09-15-ac02a9f660977426b8ec6392919fbb1d51b10998 source https://github.com/OpenVPN/openvpn-gui 11.46.0.0 branch:master

I tried to build from sources using this : https://community.openvpn.net/openvpn/wiki/BuildingOpenVPN-GUI But when I tried I got a misconfiguration of vcpkg :

PS C:\Users\xxx\Code\openvpn-gui> cmake -S . --preset x64
Preset CMake variables:

  CMAKE_TOOLCHAIN_FILE:FILEPATH="C:\Program Files\Microsoft Visual Studio\2022\Community\VC\vcpkg/scripts/buildsystems/vcpkg.cmake"

-- Running vcpkg install
erreur : Cette instance de vcpkg n├®cessite un manifeste avec une ligne de base sp├®cifi├®e afin d'interagir avec les ports. Veuillez ajouter 'builtin-baseline' au manifeste ou ajouter un fichier 'vcpkg-configuration.json' qui red├®finit le registre par d├®faut.
-- Running vcpkg install - failed
CMake Error at C:/Program Files/Microsoft Visual Studio/2022/Community/VC/vcpkg/scripts/buildsystems/vcpkg.cmake:899 (message):
  vcpkg install failed.  See logs for more information:
  C:\Users\xxx\Code\openvpn-gui\out\build\x64\vcpkg-manifest-install.log
Call Stack (most recent call first):
  C:/Program Files/CMake/share/cmake-3.28/Modules/CMakeDetermineSystem.cmake:170 (include)
  CMakeLists.txt:5 (project)

-- Configuring incomplete, errors occurred!

In english : This instance of vcpgk needs a manifest with baseline in order to interact with ports. Please add 'builtin-baseline' to manifest or add a file vcpkg-configuration.json to redefine default folder.

Is it possible that I did something wrong or something is missing with my settings ? Thanks

Canwaiting commented 4 months ago

Dude, I've run into the same issue before. Here's how I fixed it:

  1. Check out your vcpkg.json file.
  2. Add the 'builtin-baseline' like this:
{
    "name": "openvpn-gui",
    "version-string": "0.0.1",
    "dependencies": [
        "json-c"
    ],
    "builtin-baseline": "84df5613f71eda8a73ab08dc3041f3af7103a5b2"
}
Canwaiting commented 4 months ago

btw, you can use this command to get your builtin-baseline

vcpkg x-update-baseline