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

error: this vcpkg instance requires a manifest with a specified baseline in order to interact with ports. #258

Closed
AmiramSella opened this issue Feb 5, 2024 · 3 comments
Assignees

Comments

@AmiramSella
Copy link

Hi
I did the instructions , but I got an error:
error: this vcpkg instance requires a manifest with a specified baseline in order to interact with ports. Please add 'builtin-baseline' to the manifest or add a 'vcpkg-configuration.json' that redefines the default registry.


Document Details

Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.

@vicroms
Copy link
Member

vicroms commented Feb 7, 2024

Hi @AmiramSella

Thanks for the report, I need a bit of information. I suspect that this happened with the vcpkg version that is bundled with Visual Studio. Can you confirm whether that's the case? Or did this happen with a standalone vcpkg install (git clone + bootstrap)?

The fix would be to specify in the tutorial that this method is intended to work with vcpkg' standalone version. And to add an entry with this error message to the "Troubleshoot package failures" article with instructions to fix the issue.

Related #251

@vicroms vicroms self-assigned this Feb 27, 2024
@ras0219-msft ras0219-msft changed the title Did not work error: this vcpkg instance requires a manifest with a specified baseline in order to interact with ports. Mar 20, 2024
@ignotus87
Copy link

I am using a fresh Ubuntu WSL (Windows Subsystem for Linux), I just installed VCPKG following the instructions found here.

After that, I tried to install mapnik based on the instructions here.

Then I got the same error message.

@vicroms
Copy link
Member

vicroms commented Apr 12, 2024

Hi @ignotus87

Short answer:

You need to create a manifest file (a file named vcpkg.json) and declare your dependencies in that file. See our tutorial to install dependencies from a manifest file.

my-project/vcpkg.json

{
  "dependencies": [ "mapnik" ]
}

Long answer:

The instructions you followed, are intended for users who want to try the experimental artifacts feature. The artifacts feature enables vcpkg to acquire and install build tools by specifying them in your vcpkg-configuration.json file, see lines 14 to 20 on their example vcpkg-configuration.json file.

The vcpkg-init.cmd script installs a read-only version of vcpkg, this means that commands that modify the vcpkg root folder are not allowed, for example, vcpkg install <package> in classic mode. Instead, you need to install packages in manifest mode by creating a vcpkg.json file for your project (see our tutorial on using manifest mode)

If you're looking to use vcpkg for general development, we recommend that you install a standalone version of vcpkg using the steps in our Get Started tutorial.

I'll add this error message as part of our troubleshooting guide in #307

@vicroms vicroms closed this as completed Apr 12, 2024
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

3 participants