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

VCPKG: list available versions of a package

For example, how can I list available GDAL library versions ? They are not listed on VCPKG packages website neither by vcpkg search gdalcommand.
Kiruahxh
  • 1,276
  • 13
  • 30
7
votes
2 answers

How to install a static library version using vpckg manifest files?

I'm trying to figure out how to configure my manifest file to compile a static version of my library using vcpkg's new manifest feature. My current manifest file is: { "name": "myProject", "version-string": "v0.1", ], "dependencies": [ …
nathan lachenmyer
  • 5,298
  • 8
  • 36
  • 57
7
votes
1 answer

vcpkg with MinGW?

I love the idea of vcpkg, but I think I'd prefer to stick to MinGW as my compiler. I can't find any resources on whether or not I can set up (or how to setup) vcpkg so that it compiles packages for MinGW instead of MSVC. Could someone point me in…
Gary Allen
  • 1,218
  • 1
  • 13
  • 28
7
votes
1 answer

How to use vcpkg installed packages in Visual Studio in reality?

It is written here In Visual Studio, you can create a New Project (or open an existing one). All installed libraries are immediately ready to be #include'd and used in your project without additional configuration. Which is not true in…
Dims
  • 47,675
  • 117
  • 331
  • 600
7
votes
1 answer

How to fix 'Vcpkg/CMake Is Unable to determine target architecture' (Windows10,vcpkg,clion,cmake)

I want to use this library see: https://github.com/jtv/libpqxx I decided to install this library manager vcpkg see: https://github.com/microsoft/vcpkg I set the CMake Option to "CMake projects should use:…
Ojav
  • 678
  • 6
  • 22
7
votes
2 answers

Install older version of protobuf via vcpkg

I installed protobuf via vcpkg vcpkg install protobuf:x64-windows. Apparently it installs the latest version (3.6.1). For the project I need version<=3.5.1. Is there any way to install it using vcpkg? For now I just built 3.5.1 using cmake but…
Edwin Paco
  • 121
  • 2
  • 7
6
votes
0 answers

Set dll paths in VC++ and vcpkg

I'm using vcpkg as library manager for my Visual C++ projects. Sometimes I link libraries dynamically and vcpkg provides dll's in \vcpkg\installed\x64-windows\bin folder. When I run project in Debug or Release mode I have error related to missing…
vico
  • 17,051
  • 45
  • 159
  • 315
6
votes
3 answers

How to update vcpkg itself?

I have installed vcpkg, a package manager for C++. Now after some time, I'd like to update it. How can I do that? Do I need to uninstall and reinstall?
Song Yang
  • 407
  • 5
  • 14
6
votes
2 answers

VS auto-linking against SDL2 libraries installed with vcpkg on Windows

To the best of my knowledge, this isn't a duplicate of an existing question. This question is specifically about Visual Studio's auto-linking SDL2 libraries. I've installed SDL2 (x64-windows variant) with vcpkg: vcpkg install sdl2 --triplet…
François Beaune
  • 4,270
  • 7
  • 41
  • 65
6
votes
2 answers

How to use vcpkg packages with different triplets?

I have a project using 2 different packages, pkgA with triplet x86-windows-static, and pkgB, with triplet x86-windows. When I try to compile my project, everything works fine for pkgA, since $(VcpkgRoot) is…
AndreiM
  • 815
  • 9
  • 17
6
votes
1 answer

Theme and Icons Problem with GTK3 Installed with vcpkg

I am using Visual Studio 2019 on Windows 10 and am trying to use GTK in C++ and installed it using vcpkg. I've installed GTK using vcpkg according to the guide from GTK. I'm using Visual Studio 2019 and it is able to compile and run the example…
ufoxDan
  • 609
  • 4
  • 13
6
votes
1 answer

How to integrate vcpkg in linux with cross build toolchain, as well as sysroot?

My question is, how to integrate vcpkg in linux with cross build toolchain, as well as sysroot? example: build machine is fedora30 cross build toolchain is x86_64-centos7-gnu from https://github.com/microsoft/vcpkg quickstart says: > git clone…
Michaelzh
  • 441
  • 5
  • 14
6
votes
1 answer

getting vcpkg to build only release version

I'm trying to build only the release version of packages because creating debug versions takes too long / too much space. Vcpkg docs state that: Adding set(VCPKG_BUILD_TYPE release) in a triplet: will cause most ports to only build release In…
Carl
  • 705
  • 8
  • 22
6
votes
2 answers

Using Cmake-gui and vcpkg

I am testing vcpkg for my project and I came across a problem with cmake-gui I have installed vcpkg, with the help of vcpkg Boost libraries were installed. When I compile via command line, everything works as it should. I use command cmake ..…
JoeFromVienna
  • 71
  • 1
  • 3
5
votes
1 answer

How to set vcpkg static for every platform?

Lets say I'm using vcpkg and I want to install a package as static no matter the platform I know I can do it with a triple like wxwidgets:x86-windows-static however, how can I say "make it static for every platform"?
user16932694
1
2
3
39 40