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
3
votes
2 answers

What is the best way to use vcpkg to share your project with a friend

I have a project which depends on cpprestsdk, tinyxml2. I run this project on another computer which has no internet connection, I installed these libraries with vcpkg, I was wondering should I statically link these libraries to my solution or use…
Rathma
  • 1,196
  • 2
  • 33
  • 65
3
votes
2 answers

GLFW directory not found with CMake and vcpkg

I have been unable to figure out how to get CMake to find and set correct GLFW CMake constants when using CMake in VS2017. Any help will be greatly appreciated :). I downloaded glfw3 through Microsoft's vcpkg tool. I have checked that files do…
2
votes
1 answer

How to exclude a specific lib from being linked static?

I'm linking some libraries with the triplet windows-static: I'm trying to exclude a specific library (openssl) from being linked static, while keeping all others static. While searching around I found this answer: If you want to locally override…
Steel
  • 29
  • 2
2
votes
1 answer

Warning C4275 - Apparent conflict between fmt\format.h library and stdexcept runtime_error

I am getting build warning C4275 across my various classes. The code referenced in these warnings is not my code, but library code. I am using vcpkg manifest mode in Visual Studio 17.6.2 with following libraries requested: fmt, jsoncpp, spdlog,…
2
votes
1 answer

Crypto Exception: Failed to load OpenSSL legacy provider when initializing SSL

I am stucked with the following issue, when I try to initialize the SSL functionality using Poco's Crypto Poco::Crypto::initializeCrypto();. The issue is that in the machine where I perform the build, it works fine, but in other machines, a…
2
votes
0 answers

How to disable manifest mode in vcpkg?

Vcpkg has a manifest mode where one specifies a vcpkg.json file with all the packages required for a project. I would like to temporarily disable this feature and instead use vcpkg install mypackage directly. However, if a vcpkg.json file is present…
2
votes
0 answers

how to use imgui+glfw+opengl with vcpkg+clion+cmake on win11

I use vcpkg manifest to isntall packages, vcpkg.json: { "name": "vcpkgtest", "version": "1.0.0", "description": "learn vkpg & glfw & imgui & cmake", "dependencies": [ "glfw3", { "name": "imgui", "features":…
Zihan Zhao
  • 21
  • 2
2
votes
1 answer

What is the use of vcpkg manifest version?

I am using VS2022 with vcpkg integration in manifest mode for a CMake project. I already have defined a version in the CMakeLists.txt that gets configured into a header and resource file: cmake_minimum_required(VERSION 3.23) project(clcto-lib…
clcto
  • 9,530
  • 20
  • 42
2
votes
1 answer

How to import library in CMAKE download by vcpkg?

I am trying to import a library that i installed using vcpkg (vcpkg install azure-storage-blobs-cpp) In my c++ file I am trying to import azure/storage/blobs.hpp In my vcpkg directory, i have the following…
Kevin
  • 75
  • 6
2
votes
0 answers

How to integrate vcpkg package manager with CMake project on Linux?

I having trouble integrating vcpkg package manager with CMake project on Linux. I want to use the doctest library in my project but the same problem exists with other packages too. I performed the following steps. $ vcpkg install doctest Computing…
bobeff
  • 3,543
  • 3
  • 34
  • 62
2
votes
0 answers

uWebSockets static library installed via vcpkg but dll are still needed for executable on Windows

I have a Visual Studio C++ project that is making use of uWebSockets. The Visual Studio project file is configured to output a .dll that is used during runtime of a host executable. I need some of uWebSockets' functionality for my .dll. I want…
ariestav
  • 2,799
  • 4
  • 28
  • 56
2
votes
2 answers

C++ VSCode says it cannot open source file when it really can

I can run and compile with no problem, but VSCode Intellisense is saying that it cannot open source file boost/asio.hpp (even tho it obviously can) and is marking it as an error all the time, I want to know why its doing it and how to fix it I have…
igorgsouza
  • 21
  • 1
  • 4
2
votes
1 answer

Can I use vcpkg without Visual Studio?

I just downloaded and configured vcpkg. But when I tried to install a package, I got this error message: error: in triplet x64-windows: Unable to find a valid Visual Studio instance Could not locate a complete Visual Studio instance Does it mean it…
zclll
  • 77
  • 7
2
votes
2 answers

vcpkg how to edit package file when compilation fails when installing package?

I'm installing dependencies for some project which downloads dependencies with vcpkg (the project is Hyperledger Iroha, but it does not matter). Unfortunately when compiling dependencies with my compiler (g++ 12.1.0) one of packages (abseil) is not…
baziorek
  • 2,502
  • 2
  • 29
  • 43
2
votes
1 answer

Unable to find Boost libraries with CMake and vcpkg

I have installed boost-variant2 library using the vcpkg command: vcpkg install boost-variant2:x64-windows When vcpkg finished the installation, it prompted this: The package boost is compatible with built-in CMake targets: find_package(Boost…
mathripper
  • 299
  • 1
  • 12