Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Vcpkg error when building from sources #660

Open
jaybi opened this issue Nov 20, 2023 · 2 comments
Open

Vcpkg error when building from sources #660

jaybi opened this issue Nov 20, 2023 · 2 comments

Comments

@jaybi
Copy link

jaybi commented Nov 20, 2023

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
Copy link

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
Copy link

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

vcpkg x-update-baseline

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants