Questions tagged [vcpkg]

Vcpkg helps you manage C and C++ libraries on Windows, Linux and MacOS.

Repository: Github Microsoft/vcpkg

Documentation: vcpkg.readthedocs.io

591 questions
2
votes
0 answers

Given a VcPkg port SHA512 hash, how do I find that commit?

Given the SHA512, of say, boost type_trait: SHA512: 83d585933374420808aaf3743cda48d914bb7d536bf3f19e59bba1b24403a1482ff509e1f804a0b55d3bc434aceedcb0b75f873b9feaa9ba1c1a762a11d4fc94 as seen in the portfile.cmake, here:…
datguyray
  • 131
  • 7
2
votes
1 answer

vcpkg cmake does not find botan

I use vcpkg as my package manager, following the example it was quite easy to build the example with sqlite. Afterwards I successfully installed botan and tried to find the library using find_package(botan REQUIRED) as shown in the example…
c3664698
  • 21
  • 3
2
votes
1 answer

VSCode not using Vcpkg acquired libraries

For some reason, VSCode is not able to see headers inside Vcpkg's installed libraries directory. I am using CMake build system on Ubuntu 17.04. I am getting errors like: [GCC] GL/glew.h: No such file or directory My CMakeLists.txt looks like…
Twarit Waikar
  • 103
  • 2
  • 9
2
votes
0 answers

Error: Building package bzip2:x86-windows failed with: BUILD_FAILED

I'm new to vcpkg and I am trying to install gdal but it seems to fail while trying to install bzip2 when I run .\vcpkg install bzip2 I get the following error message The following packages will be built and installed: …
NotARobot
  • 978
  • 2
  • 14
  • 36
1
vote
1 answer

How to properly configure vcpkg for CLion?

Hello everyone There was a problem with the work of vcpkg and CLion, specifically, I installed the boost library via CLion vcpkg (The one that is downloaded automatically in the IDE), wrote a program, CMake finds the library, the IDE sees it, but…
ShyLock
  • 45
  • 4
1
vote
1 answer

vcpkg install vs docker caching

I am trying to understand how vcpkg can integrate with docker caching mechanism. Here is my first naive attempt: % cat Dockerfile [...] RUN vcpkg.exe install libpng # neat caching to prevent (re)compilation WORKDIR c:/app COPY . . # anything after…
malat
  • 12,152
  • 13
  • 89
  • 158
1
vote
1 answer

Compiling C++ code using libssh library through vcpkg

I installed libssh through vcpkg on my Windows 8.1 machine. vcpkg install libssh Now I am trying to compile my c++ code making use of libssh. #include #include int main() { ssh_session my_ssh_session = ssh_new(); …
1
vote
1 answer

FFmpeg c api create encoder for AV_CODEC_ID_H264 crash on Windows

I'm using ffmpeg (version 5.1.2) to clip a mp4 video per frame so I need to decode and encode it. However, when I'm creating the encoder for its video stream, the program always crashes at the call to avio_open2(), after H264 gives this error…
Guanyuming He
  • 167
  • 10
1
vote
1 answer

can't build visual studio project with vcpkg manifest mode

I'm trying to use Visual studio with vcpkg manifest mode to practice c++, without CMake. This is what I've tried: Install VS2022 with standard c++ support. Install vcpkg, do vcpkg integrate Create the template hello world project. Turn on vcpkg…
MyBug18
  • 2,135
  • 2
  • 11
  • 25
1
vote
1 answer

Visual Studio 2019 and vcpkg not linking to debug dlls

I'm trying to use protobuf in my application as dlls (libprotobuf-lite.dll and libprotobuf.dll). I installed protobuf using vcpkg, and everything works perfectly fine in the Release configuration. However, if I build my solution (using Visual…
LeoE
  • 2,054
  • 1
  • 11
  • 29
1
vote
1 answer

CMake configure succeeded but fails to build target due to header not found

I'm trying to build a C++ project with 3rd-party library managed by vcpkg. CMake is able to correctly find the libraries using find_package during configuration. However, when I build the target, the compilation always fails with "header file not…
xyguo
  • 275
  • 2
  • 6
1
vote
1 answer

List vcpkg packages in manifest mode

In classic mode you can run vcpkg list to see all installed packages. What is the equivalent in manifest mode? vcpkg.json does not specify versions, so I would like to see what versions I actually got.
Zitrax
  • 19,036
  • 20
  • 88
  • 110
1
vote
0 answers

Building libtorch with vcpkg failure

Environment Environment: OS: Windows 10 Python: 3.8 Visual Studio: 2019 What I Tried? clone vcpkg github repo and install vcpkg and then enter command: vcpkg.exe install libtorch:x64-windows Full Error Log G:\VCPKG\vcpkg>vcpkg.exe install…
1
vote
1 answer

vcpkg: code execution cannot proceed because dll was not found

I installed protobuf with vcpkg. This happens when I build/redeploy and no c++ files where changed (i.e. no c++ linking). Changes in Xaml, and hlsl files for example. I can fix this by touching any c++ file and rebuilding, but this is ruining my…
Tom Huntington
  • 2,260
  • 10
  • 20
1
vote
1 answer

scrapper.cpp:3:10: fatal error: 'cpr/cpr.h' file not found #include "cpr/cpr.h"

I'm new to programming. I'm currently working on a web scrapper using C++. I'm using the cpr and gumbo libraries (installed using vcpkg). Whenever I try to run my code I get the error, scrapper.cpp:3:10: fatal error: 'cpr/cpr.h' file not…
Ryan
  • 11
  • 1