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

Use vcpkg on WSL 1 with Visual Studio

I'm adventuring myself into compiling a CMake project using Visual Studio, targeting WSL 1. Following Microsoft's tutorial to setup a CMake project in Visual Studio and debugging on WSL works fine. Things break when I try to install and use packages…
3
votes
2 answers

How to export an x64 only package in vcpkg?

I have create a prebuilt package using vcpkg create command and then installed it on my system. I then tried to export this package so I can use it on other systems using the following command : vcpkg export my-lib-static --zip but this complains…
Hossein
  • 24,202
  • 35
  • 119
  • 224
3
votes
0 answers

How to properly configure vcpkg C++ includePath on macOS VS Code?

I installed vcpkg with Homebrew. I followed to instructions on official vcpkg docs. I used this command: vcpkg integrate project and got the following message: Applied user-wide integration for this vcpkg root. CMake projects should use:…
Specyk
  • 143
  • 1
  • 1
  • 8
3
votes
0 answers

Can't tell cmake to use vcpkg for library link

I'm using a Cmake for a cross-platform project that use glibmm. Under Linux, the project build successfully without any problem (and works fine when executed). But with Windows 10, Visual Studio 2019 (pro), I can't find how to build the project. I…
3
votes
1 answer

Compile gRPC C++ Examples with vcpkg

I am trying to build and run the grpc examples with grpc that was installed with vcpkg manager. I installed vcpkg manager by cloning and finding grpc like so: sudo apt-get install -y unzip build-essential git clone…
Potion
  • 785
  • 1
  • 14
  • 36
3
votes
1 answer

Error LNK2001: unresolved external symbol web::websockets::client::websocket_callback_client

I'm attempting to use cpprestsdk, to establish a simple websocket connection: #include using namespace web; using namespace web::websockets::client; int main(int argc, char* argv[]) { websocket_callback_client client; …
George Barlow
  • 155
  • 1
  • 5
3
votes
1 answer

Can I manage QuantLib (nicely) with CMake and vcpkg?

I would like to use vcpkg to manage my packages. I would also like to use CMake to manage my builds. Is it possible to include quantlib library without resorting to hard coded links? Something like find_package(quantlib)? EDIT: Things I've tried to…
Steven
  • 253
  • 3
  • 11
3
votes
1 answer

CMAKE with both a toolchain file and cmake_policy

I have a chicken-and-egg situation. I am using vcpkg, which requires me to set a cmake toolchain file from the command line. But I also have some cmake_policy statements which need to be set in CMakeLists.txt prior to the toolchain file. Here is…
Stéphane
  • 19,459
  • 24
  • 95
  • 136
3
votes
2 answers

Cmake question: How do I use vcpkg to install dependencies automatically?

I'm working on c++ project on a linux machine and it uses several boost libraries. I've installed them on my system using vcpkg and build it using the toolchain provided by vcpkg. My question is: How do I define the dependencies so that they…
aks
  • 51
  • 1
  • 4
3
votes
0 answers

Building generated C++ gRPC client into a DLL causes a crash when making requests

I am trying to generate a gRPC client in C++, and have the generated client code built inside a Visual Studio 2015 DLL project. For some reason when building the generated gRPC client in a DLL a crash occrus when making a gRPC request, however…
Kakalokia
  • 3,191
  • 3
  • 24
  • 42
3
votes
1 answer

vcpkg is not able to find cmake.cmd when installing a package

I tried to install vcpkg on Windows 10. I followed the steps of the Quick Start section, but I get an error, when I try to run this command: .\vcpkg install sdl2 curl Error: error checking existence of file "C:\msys64\usr\bin\cmake.cmd" The…
Iter Ator
  • 8,226
  • 20
  • 73
  • 164
3
votes
0 answers

vcpkg: how to install packages per project (not user-wide)?

Having watched the vcpkg tutorial, reviewed the instructions (and integration instructions), I couldn't find a way to: Privately install a package, meaning only for use of current project, rather than user-wide Derived from previous bullet - a way…
Tar
  • 8,529
  • 9
  • 56
  • 127
3
votes
1 answer

Cannot build a cmake project in Visual Studio and vcpkg (fatal error C1083)

I installed vcpkg today, enabled integration with Visual Studio, ie .\vcpkg integrate install, and started installing libraries. I basically installed cpprestsdk and that trigger installation of boost libraries. Then I opened the project in the…
cateof
  • 6,608
  • 25
  • 79
  • 153
3
votes
1 answer

Intel TBB - 'InitializeCriticalSectionEx': identifier not found compiler error

I have a VS (C++) project that relies on OpenCV and TBB, so I created property sheets for each library and included them in the project. Everything worked fine and the code compiled. Yesterday, I have started using vcpkg package manager. I installed…
Timo
  • 9,269
  • 2
  • 28
  • 58
3
votes
1 answer

how to use static build of cpprest-sdk generated by vcpkg?

I want to use cpprestsdk as static library for my project, I used the vcpkg tool to get the static library by entering the command: vcpkg install cpprestsdk:x86-windows-static, I have the following lib files under my installed directory in vcpkg…
Rathma
  • 1,196
  • 2
  • 33
  • 65