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
5
votes
1 answer

C++ VSCode CMake VCPKG: manifests are not enabled

I'm trying to build the Supertux-C++-Project like in this Video. I installed the VS Code extensions for C++ and CMake, and I'm using the GCC compiler. I cloned the VCPKG-Repository and executed the bootstrap-vcpkg.bat. After that, I ran ./vcpkg…
R3t
  • 53
  • 1
  • 4
5
votes
1 answer

Rebuild vcpkg without installing again

I have installed a vcpkg package with vcpkg install shogun:x64-windows. The build fails and I need to change a file to fix it.How can I rebuild the package without the install option, that overwrites my changes?I cannot find any VC project in the…
Stefano Piovesan
  • 1,185
  • 3
  • 19
  • 37
5
votes
1 answer

How to install packages when cloning project that uses vcpkg

I am trying out vcpkg package manager but I am running in some issues. I have a c++ project that uses cmake and vcpkg and have used vcpkg to install the cache2 package. Now everything works but as soon as I push the project and clone it I can't find…
Rick Nijhuis
  • 444
  • 4
  • 19
4
votes
0 answers

How to manage vcpkg across many projects?

I would love to use vcpkg to manage our dependencies with third party libraries, but I'm not sure how this is would work in our environment. We have hundreds of projects in our solution, and release new versions of our software over time. This is a…
Jeffrey Faust
  • 547
  • 3
  • 12
4
votes
0 answers

find_package failed when using vcpkg with emscripten

CMakeLists.txt: cmake_minimum_required(VERSION 3.14) include(FetchContent) FetchContent_Declare(vcpkg GIT_REPOSITORY https://github.com/microsoft/vcpkg/ GIT_TAG 2022.09.27) FetchContent_MakeAvailable(vcpkg) set(CMAKE_TOOLCHAIN_FILE…
kiv_apple
  • 491
  • 3
  • 13
4
votes
1 answer

Why is vcpkg recommended as a git submodule?

Currently the README.md for vcpkg says "First, download and bootstrap vcpkg itself; it can be installed anywhere, but generally we recommend using vcpkg as a submodule for CMake projects, and installing it globally for Visual Studio projects." Why…
jpr42
  • 718
  • 3
  • 14
4
votes
0 answers

How do I use doxygen with vcpkg/cmake?

I want to use doxygen with my project to generate documentation. All "normal" dependencies of my project are managed by vcpkg and I was hoping that I can use doxygen this way as well, although it is not a lib that I link against, but a tool that I…
CygnusX1
  • 20,968
  • 5
  • 65
  • 109
4
votes
1 answer

VCPKG Difference between windows, windows-static and other

What is the difference when I use vcpkg install :x64-windows x64-windows-static x64-windows-static-md?
Nightloewe
  • 918
  • 1
  • 14
  • 24
4
votes
1 answer

What's the idiomatic way to configure a CMake project with `vcpkg`?

I'm modifying a project which uses CMake to include a library which is managed by vcpkg. It looks like in order for vcpkg's packages to be found, CMAKE_TOOLCHAIN_FILE has to be defined... somewhere. I'm confused because everything suggests that the…
trbabb
  • 1,894
  • 18
  • 35
4
votes
0 answers

setting toolchain file in visual studio code and cmake tool for vsc doesn't work

I am using visual studio code on Ubuntu 20.04 and cmake tools for visual studio code. I am trying to use opencv in a project. I used vcpkg to build OpenCV and it is installed: The cmakeList.txt is as follow: cmake_minimum_required(VERSION…
mans
  • 17,104
  • 45
  • 172
  • 321
4
votes
2 answers

CMake with Emscripten and vcpkg can't bind two TOOLCHAIN_FILES

Both vcpkg and Emscripten require to set CMAKE_TOOLCHAIN_FILE to vcpkg/scripts/buildsystems/vcpkg.cmake and emsdk/upstream/emscripten/cmake/Modules/Platform/Emscripten.cmake respectively. How do i do that? or what is the best way to get them both…
Alejandro Camba
  • 978
  • 10
  • 25
4
votes
1 answer

Unable to link the grpc libraries in Windows

I have installed grpc:x64 using vcpkg in windows and I am trying to compile the basic greeter server program. But it is giving me linking errors. Even though the find_package command is able to find the grpc package, I suspect that the library paths…
sanoj subran
  • 401
  • 4
  • 11
4
votes
1 answer

Unable to install user-wide terminal integration with vcpkg on macOS

I'm trying to get Vcpkg user-wide bash integration following the official instructions. here are the steps I took: git clone https://github.com/Microsoft/vcpkg.git cd vcpkg ./bootstrap-vcpkg.sh ./vcpkg integrate install Applied user-wide…
Foad S. Farimani
  • 12,396
  • 15
  • 78
  • 193
4
votes
1 answer

Is there a way to avoid error C2039: "value": Is not a member of "boost::proto"?

I'm using boost::network::uri::encoded() to encode my request URL. But when I'm building the project, I see the error: error C2039: "value": Is not a member of "boost::proto" There are four of them, and they're reported…
4
votes
0 answers

vcpkg seemingly builds Boost with wrong compiler

I am trying to use vcpkg to build and use Boost. This might not be the best practice but I modified the triplet x64-windows directly and added these set(VCPKG_VISUAL_STUDIO_PATH "C:\\Program Files (x86)\\Microsoft Visual…
meguli
  • 1,426
  • 1
  • 18
  • 35
1 2
3
39 40