OpenVPN / OpenVPN/openvpn-gui

Vcpkg error when building from sources

Open
#660 2 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C
Stars
1.8k
Forks
465
PR merge metrics
No merged PRs in 30d

Description

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

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by running cmake -S . --preset x64 and inspect CMakeLists.txt together with out/build/x64/vcpkg-manifest-install.log. Determine why the vcpkg manifest cannot configure with the reported Visual Studio and vcpkg versions; done means the preset configures successfully and the dependency installation completes.

Written by the indexing model from the issue text.

Assessment

Tech stack
c, cmake
Domain
build-system, tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.