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

Errors setting up CMake and vcpkg on windows `Can't open include file`

I've been trying to follow the vcpkg setup guide but I've been unable to solve the build error I get on the final step: fatal error C1083: Cannot open include file: 'sqlite3.h': No such file or directory My vcpkg setup process is as follows: >…
Ryan Nel
  • 464
  • 2
  • 6
  • 18
4
votes
2 answers

How to find GTK installed by vcpkg in CMake

I install the GTK packages with: vcpkg install gtk:x64-windows I also set the environment variable CMAKE_TOOLCHAIN_FILE to C:\vcpkg\scripts\buildsystems\vcpkg.cmake, but find_package can't find GTK. How do I find GTK in CMake?
Glavo
  • 448
  • 3
  • 13
4
votes
1 answer

How to specify the Visual Studio platform toolset during install

I'm using Visual Studio 2019 and I need to install several libraries using a specific platform toolset. Right now I have three platform toolsets intalled: Visual Studio 2015 (v140), Visual Studio 2017 (v141) and Visual Studio 2019 (v142). Is there a…
Jabberwocky
  • 48,281
  • 17
  • 65
  • 115
4
votes
2 answers

CMake is not able to link to vcpkg library

I installed a new library in vcpkg, i.e, ITK and now I am trying to compile a very first code example available in its guide, I installed it via vcpkg so I skipped the installation part(provided in that guide) and immediately created a new cmake…
Mohit
  • 1,225
  • 11
  • 28
4
votes
1 answer

How to build flann in windows 10 from source?

I was trying to build flann from source in Windows-10 using cmake. During the installation process it says it cannot find liblz4. I tried two method : 1) So I downloaded the prebuild lz4 from here (https://github.com/lz4/lz4/releases) and placed…
mato
  • 503
  • 8
  • 18
4
votes
1 answer

How to specify CMake version used by vcpkg

Short Version: vcpkg is failing to build a package with the following error: Unable to determine appropriate CMake MSBuild generator for: Windows-x64-v142 This is because CMake 3.12.4 does not currently have a 'Visual Studio 16 2019'…
lavinrp
  • 43
  • 1
  • 7
4
votes
2 answers

Tesseract install using vcpkg in Windows 10

My setup: Currently I'm working with c++ in visual studio 2017 on Windows 10. The objective: To start using tesseract ocr in my basic c++ application. First, to make sure I'm able to #include the tesseract library and compile and execute a very…
Mrcitrusboots
  • 317
  • 3
  • 14
3
votes
3 answers

'builtin-baseline' in vcpkg for installing Franka Matlab?

I want to install the Matlab Extension from LibFranka according to After installing Visual Studio, they state i should install vcpkg, add it to the PATH and run vcpkg install eigen3:x64-windows However, the error message error: this vcpkg instance…
3
votes
1 answer

How to use vcpkg with clang on linux?

vcpkg uses the GCC installation package by default on Linux. I see that the official document mentions the custom triplet method, but does not mention the clang tool chain. How can I specify clang and libc++as the default tool chain of vcpkg?
endingly
  • 41
  • 1
3
votes
0 answers

What is the canonical way of copying vcpkg library .pdb files into your build folders when using cmake

I am converting some projects to CMake and vcpkg. However when I use Debug or RelWithDebInfo build types the build only copies the .dll files and not the .pdb files from vcpkg. Here is an example CMakeLists.txt: cmake_minimum_required(VERSION…
wozname
  • 213
  • 3
  • 10
3
votes
1 answer

mkDerivation use cmake in buildPhase

I'm trying to create a derivation using nix files, and I'm a little stuck. A package I'm trying to install has a sh file in its repo to build it, and this sh file is running CMake with some arguments. More specifically, this package is vcpkg. Here's…
Guillaume Racicot
  • 39,621
  • 9
  • 77
  • 141
3
votes
1 answer

Using vcpkg with Visual Studio 2022 produces a bogus unresolved external symbol linker error

I have an MFC C++ project, which builds and runs just fine with Visual Studio 2022 on Windows 10. The project doesn't use Qt at all. After I installed Qt 6.2.1 with vcpkg, project stopped building with this linker…
Paul Jurczak
  • 7,008
  • 3
  • 47
  • 72
3
votes
1 answer

Failed to install POCO C++ through vcpkg

I am trying to install POCO libraries for C++ through vcpkg, through this command in Windows PowerShell : .\vcpkg install poco:x64-windows And I am getting this error : Error: Building package pcre:x64-windows failed with: BUILD_FAILED What should I…
X Y
  • 233
  • 1
  • 8
3
votes
1 answer

vcpkg install in VS code

I am a python dev who is learning C++. I have a question: I would like to install an external library libxlsxwriter. In VS Code terminal I do: a) I create and empty folder C:\dev. I install there vcpkg using: `cd C:\dev` `git clone…
vojtam
  • 1,157
  • 9
  • 34
3
votes
0 answers

Can't install libraries on Visual Studio code

I downloaded vcpkg, i managed to run the commands but whenever i try to install a library, the following error comes up :Error: while loading iostream: The port directory (D:\New folder (2)\DEV\vcpkg\ports\iostream) does not exist Error: failed to…