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

Visual Studio 2019, Win10, and HDF5 installed using vcpkg. Unresolved external symbol H5T_IEEE_F64BE_g

Any help is much appreciated. I'm having link errors when trying to use HDF5 libraries installed using vcpkg with Visual Studio 2019 on Windows 10. I installed HDF5 1.12.0 on Windows 10 using vcpkg: PowerShell: .\vcpkg install hdf5…
Normandin
  • 69
  • 2
2
votes
2 answers

Vcpkg isn't working on windows with mingw

i'm actually trying to make vcpkg with cmake and MinGW working on windows but it seems like he don't want to use MinGW Here is the error : -- Running vcpkg install - done -- The C compiler identification is GNU 8.1.0 -- The CXX compiler…
Erik Tellier
  • 200
  • 1
  • 1
  • 13
2
votes
2 answers

Finding vcpkg packages that don't have `find_package` documentation

When you install many packages through vcpkg (such as vcpkg install cairo), at the end of this process, you are told what find_package and target_link_libraries CMake commands to use in order to link to the package that was installed. And this works…
Nicol Bolas
  • 449,505
  • 63
  • 781
  • 982
2
votes
0 answers

How to remove c++ compilation flag of ninja from cmake run by VCPKG?

I'm trying to build boost-container on Raspberry Pi 4 with VCPKG package manager. The problem is that one of compilation flags -m64 is invalid for compiler on rpi (but is OK for PCs), so I need to remove the flag. It is extremally hard, because…
baziorek
  • 2,502
  • 2
  • 29
  • 43
2
votes
2 answers

How to generate c++ grpc file after installing it by vcpkg and cmake?

I install grpc by vcpkg install grpc and add it to cmake file . Now I want to generate grpc c++ file , I run : protoc --cpp_out=grpc_file/ --grpc_out=grpc_file/ --proto_path=grpc_proto/ ./grpc_proto/side_information.proto It returns error…
DachuanZhao
  • 1,181
  • 3
  • 15
  • 34
2
votes
2 answers

VCPKG versions of packages

is there possibility how to install older version of packages by using vcpkg install? I found that there is a file in versions/baseline.json, but even if I change the version of the package there, it always install the newest one.
2
votes
1 answer

Unable to reference poco[sqlite3] using vcpkg manifest

I'm using vcpkg's manifest feature to reference the dependencies my project has. I'd like to use Poco's SQLite3 wrapper but I can't figure out how to reference it in the vcpkg.json file. When I use poco[sqlite3], vcpkg gives me an error stating…
Dave F
  • 821
  • 1
  • 9
  • 20
2
votes
1 answer

Unable to display window via cv::imshow(). What am I missing?

I'm working simple intro OpenCV program. I'm running in Virtualbox (as Ubuntu 20.04). C++/ VS Code. LLDB debugger. Same fault if I run the virtualbox on MacOS or Windows. ---main.cpp--- #include // Catch all for all…
zipzit
  • 3,778
  • 4
  • 35
  • 63
2
votes
0 answers

How to define boost python version when using vcpkg?

Does anybody have any experience with defining the python version of boost-python when installing from vcpkg? I'm trying to use OpenVDB's python interface, and while I can get it working with the default python39 boost library, I'm not able to…
nranthony
  • 63
  • 1
  • 8
2
votes
1 answer

Point Cloud Library - Cannot find pcl_visualizer in Windows 10

I installed PCL 1.11.1 (head) on Windows 10 using vcpkg, but it seems it doesn't include the visualizer, even when I install PCL with VTK and OpenGL support. I get this error: fatal error C1083: Cannot open include file:…
Amine Horseman
  • 162
  • 1
  • 12
2
votes
1 answer

CMake - how to add a missing library easily?

I'm trying to install Darknet from here https://github.com/AlexeyAB/darknet using these instructions: https://github.com/AlexeyAB/darknet#how-to-compile-on-windows-using-cmake Looked easy enough, I installed all the required pre-requisites... I get…
ROBYER1
  • 117
  • 8
2
votes
0 answers

how to install pkg-config, sigc++-2.0 with vcpkg on windows 10

I want to build vs 2017 project files on windows 10 with vcpkg, cmake and pkg-config. and Now I installed vcpkg successfully, and checked there were 26 *.pc files in C:\src\vcpkg\installed\x86-windows\lib\pkgconfig directory. When I search string…
James Hao
  • 765
  • 2
  • 11
  • 40
2
votes
1 answer

Trying to use vcpkg installation of SDL2 in Visual Studio Code with cmake in Windows 10

Been trying two days everything I can google. Here is the CMakeLists.txt: cmake_minimum_required(VERSION 3.0.0) project(main VERSION 0.1.0) set(CMAKE_TOOLCHAIN_FILE…
user13950717
2
votes
1 answer

vcpkg add new library but it cannot be found

I tries to add a new library at vcpkg, so I have wrote a CONTROL file and portfile.cmake file. When I run the installation, it's successful: ./vcpkg.exe install gf:x64-windows Computing installation plan... The following packages will be built and…
ahugeat
  • 41
  • 4
2
votes
1 answer

cannot use vcpkg to download C++ libraries in Windowsx64 Visual Studio Code

I just installed VSCode on Windows to start using it as my first IDE. However, putting some basic programs in there, I noticed it (unlike another IDE I was using) does not have any libraries for C++ whatsoever. #include for example has a…