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

How to import package in cmake from vcpkg?

When I vcpkg install simdjson , it returns : The package simdjson:x64-linux provides CMake targets: find_package(simdjson CONFIG REQUIRED) target_link_libraries(main PRIVATE simdjson::simdjson simdjson::simdjson-flags…
DachuanZhao
  • 1,181
  • 3
  • 15
  • 34
1
vote
0 answers

Is there a way to make Visual Studio ignore a specific vcpkg library?

I have a VS solution that contains two projects: A.dll and B.lib. A.dll depends on B.lib and also C.lib which is provided by my vcpkg repository. The problem is that my vcpkg repository also contains a version of B.lib and the linker will include…
adrem42
  • 11
  • 1
  • 2
1
vote
1 answer

I can't seem to link g++ to my installed libcurl

I am new to programming in c++. I am trying to compile a code using curl in it. My visual studio code is able to find the file (as it autocompletes as well), but when I run "build task g++" it says the…
matzzz
  • 11
  • 1
1
vote
0 answers

Problem compiling SFML with CMake on Apple

I am having a very frustrating time trying to develop in C++ on the Apple laptop I got from work. If anyone can rescue me, I would be very grateful. First, clang is present: C02DF21YMD6T:~ xxx$ clang -v Apple clang version 12.0.0…
Theo
  • 21
  • 3
1
vote
1 answer

Rebuilding a wxWidgets installation with vcpkg and a modified setup.h configuration file

The version of setup.h that vcpkg uses to build wxWidgets (x64-windows) has some values I want to change. I want to make these changes and have the library rebuilt using my values. I can't find a way to get vcpkg to rebuild the package. I can only…
1
vote
0 answers

uwebsockets compile error Visual Studio 2019

I currently trying to setup the development environment in Visual studio for an extended kalman filter. I have installed all the required header files and libraries through vcpkg and also linked them in the properties in my solution in Visual studio…
Adarsh Raj
  • 11
  • 1
1
vote
1 answer

VCPKG_FORCE_SYSTEM_BINARIES Errors when Running vcpkg on raspberry pi

I installed the latest version of cmake and was following some instructions i made to integrate a project that used vcpkg with grpc. After installing vcpkg I try to install package with ./vcpkg install grpc which resulted in the error bellow. The…
Potion
  • 785
  • 1
  • 14
  • 36
1
vote
2 answers

LNK2019 error when using a library installed with vcpkg

I have installed libraries with vcpkg using the correct triplet : C:\Users\***>vcpkg list libnoise libnoise:x64-windows 1.0.0 A general-purpose library that generates three-d... Then I have executed the following command…
Xobtah
  • 464
  • 7
  • 20
1
vote
1 answer

How to develop Linux + Windows application with WSL2 and Visual Studio C++ 2019 using the same vcpkg dir?

recently I started to use WSL & vcpkg, but it has some problems when mixing windows + linux development. It seems like that installing Linux packages or Windows packages with vcpkg, mutually damage the vcpkg configuration and then vcpkg roughly…
guy
  • 177
  • 2
  • 14
1
vote
1 answer

vcpkg port of Boost.Test fails to link

We've just switched from our own Boost compilation to vcpkg's one (1.73.0), with the automatic vcpkg integration with Visual Studio. We are not using CMake. Everything was compiling fine but some projects using Boost.Test, more specifically with…
cbuchart
  • 10,847
  • 9
  • 53
  • 93
1
vote
0 answers

Azure pipeline vcpkg install outputs "Error getting canonicalization"

I'm trying to make the vcpkg to install a package using azure pipeline(azure-pipelines.yml) - script: git submodule update --init vcpkg displayName: Checkout vcpkg submodule - script: .\vcpkg\bootstrap-vcpkg.bat displayName: Bootstrap vcpkg -…
yonutix
  • 1,964
  • 1
  • 22
  • 51
1
vote
1 answer

Installed curl library in vcpkg not detect with visual studio code

I want to use curl library with my c++ project in visual studio code and for that i successfully installed vcpkg library manager for c++ on my linux(ubuntu) system. and installed curl library with vcpkg but installed curl library i can't use include…
Kamlesh
  • 21
  • 4
1
vote
0 answers

CMake and VCPKG. Triplet flag is not used

I would like to use CMake to build my own libraries executables. I have installed both dynamic and static x64 versions of 3rd party libraries like boost. When I compile my own projects with cmake I can't get it to use the static versions. Here is my…
Niklas
  • 11
  • 2
1
vote
1 answer

Set "VCPKG_TARGET_TRIPLET" variable inside CMakeLists.txt

I need to be able set VCPKG_TARGET_TRIPLET inside my CMakeLists.txt due to my setup (see my post here: Setting "-D" variables inside CMake) but I cannot get it working. It works if I pass "x64-mingw-static" as a -D argument, but not if I set it…
Gary Allen
  • 1,218
  • 1
  • 13
  • 28
1
vote
1 answer

Setting "-D" variables inside CMake

I am using vcpkg and I would like to set the variable VCPKG_TARGET_TRIPLET to my specific triplet. The help here https://vcpkg.readthedocs.io/en/latest/users/integration/#using-an-environment-variable-instead-of-a-command-line-option (bottom of the…
Gary Allen
  • 1,218
  • 1
  • 13
  • 28