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

How to skip dependency with vcpkg?

I am trying to install cgal with vcpkg and getting an error that mpfr dependency can't be installed, because it's site is unavailable. Can I skip this dependency? Additional packages (*) will be modified to complete this operation. Starting package…
Dims
  • 47,675
  • 117
  • 331
  • 600
0
votes
1 answer

Installed OpenCV and OpenCV DNN with vcpkg, still getting linking errors

I installed opencv[dnn] for windows 64-bit using vcpkg. Here's what ./vcpkg list returns jsoncpp:x64-windows 1.9.1 jsoncpp is an implementation of a JSON reader an... libjpeg-turbo:x64-windows …
Hint33
  • 15
  • 2
  • 8
0
votes
1 answer

CMake vs vcpkg triplet selection

I would like to select triplet for vcpgk from cmake scripts. However, I've faced with two problems. If I set VCPKG_TARGET_TRIPLET after project() cmake_minimum_required(VERSION 3.5) project(xxx CXX) if(CMAKE_SIZEOF_VOID_P EQUAL 8) …
yudjin
  • 349
  • 5
  • 14
0
votes
1 answer

What files to include for linking libjpeg-turbo in Visual Studio C++ 2017

I installed the library with vcpkg: https://github.com/Microsoft/vcpkg In the PowerShell (Admin): .\vcpkg install libjpeg-turbo:x64-windows-static .\vcpkg integrate install I added reference to the library in : Configuration Properties > C/C++ >…
Hel
  • 137
  • 2
  • 9
0
votes
1 answer

why does cmake also adds compile options for imported packages?

I have a project where I need some dependencies and and I use vcpkg to manage them. Now I want to set compile options with add_compile_options( /W4 /WX /std:c++17 ) for my executable and subdirectories but I don't want them to be applied on packages…
Sens4
  • 605
  • 1
  • 11
  • 29
0
votes
1 answer

Some headers-only files in my project cannot include "SFML/Graphics.hpp" using CMake and Vscode

I'm new to C++ and CMake and started a big project. Im using VScode as my text editor and CMake as my build tool. The problem is that i can include "SFML/Graphics.hpp in all my header files that has a source file with the same name, but in…
0
votes
1 answer

How to know what version of VisualStudio is integrated with vcpkg

I need to use PCL(Point Cloud Library) with PCAP. I heard that I can use PCL without any modification of configuration after installation of PCL using vcpkg. But, In the new project in VS2017 and VS2019, IDE cannot find source. My environment and…
yes89929
  • 319
  • 1
  • 4
  • 11
0
votes
0 answers

How to properly include header files with msvc in vscode?

I did vcpkg install mman.h && vcpkg integrate install. Now default C\CPP Linter in VSCode sees that header file, but compiler doesnt. My tasks.json file : { "tasks": [ { "type": "shell", "label": "cl.exe build…
0
votes
1 answer

How do I install a library via vcpkg from a network shared folder?

Lets say I have a shared folder on local network server where I've placed some library sources (e. g. szip). And I need to install that library via vcpkg. I've tried to change portfile.cmake to the following: vcpkg_download_distfile(ARCHIVE URLS…
bairog
  • 3,143
  • 6
  • 36
  • 54
0
votes
0 answers

Building cURLpp with vcpkg

It's my first time including a library with vckpg and Im getting these warnings when the curlpp 's building phase finishes: find_package(unofficial-curlpp CONFIG REQUIRED) target_link_libraries(main PRIVATE unofficial::curlpp::curlpp) I have…
allesuah
  • 73
  • 1
  • 2
  • 8
0
votes
2 answers

How to configure vcpkg for multi project solution

I am seeking advice on how to proper configure a multi project solution in relation to third party c++ libraries added with vcpkg. How do you checkout a specific version of a library for a project? How do you configure Visual Studio 2019 to use…
7heViking
  • 7,137
  • 11
  • 50
  • 94
0
votes
0 answers

Problem with dumpbin.exe using vcpkg for compile caffe2 win10

When try to use vcpkg with vs2015 to install caffe2:x64-windows in windows 10 I obtain an error with dumpbin.exe: Dump of file E:\vcpkg\packages\caffe2_x64-windows\debug\lib\Caffe2_CPU.lib LINK : fatal error LNK1104: cannot open file…
Mauricio Ruiz
  • 322
  • 2
  • 10
0
votes
0 answers

simple C++ project with vcpkg and cmake: can't run through with installed library

I'm quite new to C++ and its ecosystem, still learning. Recently I'm trying to learn how to install a library and use it in my project. I'm following the tutorial in the following link:…
Chris Bao
  • 2,418
  • 8
  • 35
  • 62
0
votes
0 answers

How to Use VCPKG to Build Cairo as a Static Library?

I've been trying to install Cairo using vcpkg on the latest build of Windows 10, using the following to compile: `.\vcpkg install cairo:x64-windows-static` But run into an error when vcpkg attempts to build glib as a static library: `Error:…
0
votes
1 answer

Installation of VCPKG followed by any call to "vcpkg install" results in "Changing the working dir failed"

When I follow the steps in the VCPKG documentation page to install on Windows, the noted steps fail on the line .\bootstrap-vcpkg.bat. Specifically, these are the steps I follow, exactly according to the instructions at the above link. Run…
Dan Nissenbaum
  • 13,558
  • 21
  • 105
  • 181