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

Permission Denied on ./vcpkg install

Has anyone encountered this error before with vcpkg? I'm running MacOS. To install vcpkg I ran: git clone https://github.com/Microsoft/vcpkg ... ./bootstrap-vcpkg.sh ... ./vcpkg integrate install zsh: permission denied: ./vcpkg Also trying to…
Ryne
  • 1,195
  • 2
  • 14
  • 32
2
votes
1 answer

Build package with customized port file using vcpkg

I installed OpenCV package using vcpkg, and since the OpenCV comes with vcpkg's own build configuration does not support libgtk, I got error when trying to run OpenCV with in WSL2 on windows 10. The solution I found OpenCV GTK+2.x error suggests to…
shelper
  • 10,053
  • 8
  • 41
  • 67
2
votes
2 answers

Using Qt5 installed via VCPKG in Visual Studio for C++

I know this is a daft question, but I'm a beginner in visual studio/c++/cmake. I'm looking for a quick intro on how to use Qt5 installed via vcpk using: vcpkg install qt5-base:x64-windows This all installed ok and I got the following: The package…
Jonn Doe
  • 31
  • 1
  • 1
  • 6
2
votes
1 answer

How do I build a MSVC++ project that uses dependencies from vcpkg through an Azure DevOps pipeline?

I have a C++ project that has cpprestsdk and libpqxx as its dependencies and I'm using vcpkg as my package manager. I've created an Azure DevOps pipeline that uses the CppBuildTask task to clone and build the dependencies from vcpkg, this is working…
Walter
  • 664
  • 1
  • 6
  • 19
2
votes
1 answer

Cmake undefined references when using the external library Poco (installed via vcpkg) in Visual Studio Code

I'm currently trying to develop a C++ cross-platform project in VSCode which should include the Poco library which I downloaded using vcpkg. I then followed this tutorial: https://www.codeproject.com/Articles/252566/Learning-Poco-GET-with-HTTP but I…
2
votes
1 answer

How to set CMAKE_TOOLCHAIN_FILE for when the project is created on windows only

I am trying to use vcpkg for Windows build when the CMake is also used for Linux build. The Linux build doesn't use vcpkg. This is part of CMake that works on windows: cmake_minimum_required(VERSION 3.5) file(TO_CMAKE_PATH $ENV{LOCAL_ROOT}…
mans
  • 17,104
  • 45
  • 172
  • 321
2
votes
0 answers

Rebuild boost-thread package with vcpkg without redownload

I use vcpkg as a package manager for my c++ projects I develop in Visual Studio 2017. I need to make some changes to one of the boost-thread library .cpp files so that it can work with my project. How can I rebuild (or reinstall) only this…
Ephie
  • 229
  • 2
  • 13
2
votes
0 answers

How to install a vcpkg package without default options

Packages often have options that can be selected at install time. It's easy to add additional options to a package when it is installed: vcpkg install package[option] I'd like to remove one of the default options selected for a package. How can I…
leecbaker
  • 3,611
  • 2
  • 35
  • 51
2
votes
0 answers

Vcpkg Libraries not detected by Visual Studio 2019 Community edition

I am currently working on a Open-Source Project, which has some third-party library dependencies, I have installed all of them using Vcpkg into a particular folder in my E: drive and integrated them with Visual Studio with the "vcpkg integrate…
2
votes
1 answer

Vcpkg has no effect on cloned project

I have a github repository I created using libraries installed with vcpkg. Now when I switch to another machine with vcpkg installed with all libraries, it can't find the include directories. When I create a new project in Visual Studio everything…
Cantica
  • 43
  • 4
2
votes
1 answer

cmake compiling problem for c++ application with libconfig library

I am trying to run simple c++ application on Ubuntu 18.04 with using libconfig 1.7.2 library which was installed with vcpkg version 2018.11.23-unknownhash (Microsoft C++ Library Manager for Windows), cmake version is 3.14.3. Static library was…
Pasha
  • 89
  • 9
2
votes
2 answers

cpprestsdk using vcpkg, cmake - can't find include files

I am porting a Windows project to CentOS Linux that uses cpprestsdk. I use vcpkg on Windows and I thought I would use vcpkg (and cmake) to bring in and build the packages and 'expose' the libs and header files to my project. The sequence fails in…
pathrider
  • 844
  • 2
  • 12
  • 27
2
votes
1 answer

How to link opengl library on CMake using keyword signature

I am previously using Visual Studio with NuGet for all package. Now I change to CMake. Now I am using vcpkg to manage library. However, I need OpenGl The command of Cmake to link freeglut, glew, glm, libpng, zlib was provide by vcpkg. But not…
Haha TTpro
  • 5,137
  • 6
  • 45
  • 71
2
votes
0 answers

How to fix libCGAL-vc140-mt-4.14-l-900.lib Link error ( VCPKG CGAL update 4.14 )

I'm getting the error message "Linker Tools Error LNK1104" can't find libCGAL-vc140-mt-4.14-I-900.lib" I'm using VCPKG with Visual Studio and linker flag /MD or /MDd. (question 27970033) The same setup worked with CGAL 4.13. The error came after…
Steve_12345
  • 111
  • 1
  • 4
2
votes
1 answer

C++ - Speed up installs using vcpkg

I am new to C++ and needed to download a package, so I thought I would use vcpkg. The problem is vcpkg was slower than I expected. Here is my syntax: vcpkg install Vcpkg takes a lot of time, which makes me wonder if there is a flag to…
xilpex
  • 3,097
  • 2
  • 14
  • 45