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
1
vote
0 answers

Installing libssh on windows using vcpkg

I'm trying to install libssh on windows using vcpkg like they recommend libssh download guid. but when I run vcpkg install libssh it starts downloading stuff and configures cmake but when it tries to build pthreads it fails and I receive the…
Omer Dagry
  • 537
  • 4
  • 9
1
vote
0 answers

gdal header file missing from vcpkg build

I use vcpkg as a package manager for a C++ windows GIS application. Gdal is one of the dependencies which I've utilized via vcpkg for a few years now. I recently updated vcpkg in order to update the libraries (like this). Amongst other updates, gdal…
Nimo
  • 324
  • 2
  • 15
1
vote
0 answers

Rust compilation error when depending on OpenSSL

I get an error when building a project with openssl dependency Platform: Windows 10 x64, rustc version: 1.68.0 I tried installing openssl using vcpkg. The installation packages also didn't work for me. (v3.0.8 and v1.1.1t) Cargo.toml: reqwest =…
Alexey Mirano
  • 43
  • 1
  • 4
1
vote
0 answers

Get native library dependencies via vcpkg in a C#/.NET project

I have a C# project which needs to use (DllImport) the specific version of some C libraries developed (let's call them CommonLib) here at my company. CommonLib is available company-wide via a private vcpkg registry hosted as a Git repository. Our…
starbound
  • 11
  • 1
1
vote
1 answer

Is vcpkg a valuable choice for shipping open-source and cross-platform C++ library

I am a Linux user and only developed on Linux. I know how to use Make and CMake to build my libraries but as I progress and scale up the difficulties of my projects I must now address cross-platform compatibility with minimal user input. Is vcpkg a…
1
vote
0 answers

Linking errors when using setuptools

I am extending C++ library with functionality that requires GRPC. GRPC dependencies are added through VCPKG (example from CMakeLists.txt): find_package(gRPC CONFIG REQUIRED) target_link_libraries( mylib PRIVATE gRPC::grpc++) Now, that same…
Klark
  • 8,162
  • 3
  • 37
  • 61
1
vote
1 answer

CMake was unable to find a build program corresponding to "Ninja"

I try to install microsoft/vcpkg on Jetson Nano (Ubuntu 18.04) I do $ git clone https://github.com/microsoft/vcpkg then ./vcpkg/bootstrap-vcpkg.sh And I get Unable to determine a binary release of vcpkg; attempting to build from source. Building…
Davtag
  • 19
  • 1
1
vote
0 answers

Error while passing ndk path string in cmake using Android Studio when using vcpkg

I created an Android Studio project that calls c++ code using the JNI. My project worked until I tried to add a package to my project in my CMake file using VCPKG. My CMakeList.txt looks like this: cmake_minimum_required(VERSION…
david-palm
  • 11
  • 3
1
vote
0 answers

RocksDB problem when initializing after an update through VCPKG

we've been using RocksDB for years, building from source on Windows through Visual Studio and stuff. Today, I felt lazy and thought to myself, hey, there's VCPKG right..haven't updated RocksDB for like a year or so.. After getting my VCPKG to work…
Vega4
  • 969
  • 1
  • 11
  • 25
1
vote
0 answers

Prevent vcpkg project-wide and user-wide integration from clashing

I have C++ source in source-control that uses vcpkg through project-wide integration (the .props and .targets files from vcpkg are imported). That works great, but a developer in the team already has vcpkg installed on their system a different…
Scott Langham
  • 58,735
  • 39
  • 131
  • 204
1
vote
0 answers

LNK1104 error for debug build in pybind11 project on visual studio with cmake & vcpkg (Windows)

I have created a PyBind11 project on Visual Studio using CMake & VCPkg on Windows platform. I'm exposing C++ functionality in Python. I have pybind11_x64-windows & python3.10_x64-windows installed via vcpkg and CMake3.24.1 installed through Visual…
1
vote
1 answer

Problem using vcpkg in Visual Studio (msbuild) with a project built as x86 & x64

I am new to vcpkg and currently facing an issue when building a project that requires to be build as x86 & x64. Maybe I am just missing something or haven't understood how it is intended to work: The issue is that building the project fails for x86…
hypetsch
  • 125
  • 1
  • 9
1
vote
1 answer

Yocto and VCPKG

I have a yocto sdk to build for and I am trying to make it work with vcpkg, I wrote my triplet file ✦ ❯ cat triples/arm64-linux.cmake set(VCPKG_TARGET_ARCHITECTURE arm64) set(VCPKG_CRT_LINKAGE dynamic) set(VCPKG_LIBRARY_LINKAGE static) …
PeppeDx
  • 133
  • 1
  • 10
1
vote
1 answer

Cmake package not found

I've installed Drogon using vcpkg, and in my IDE I have following error: Package 'Drogon' not found. After installing, regenerate the CMake cache. I am using Visual Studio 2022 vcpkg_rf.txt: install drogon CMakeLists.txt: # CMakeList.txt :…
Penny M.
  • 147
  • 10
1
vote
1 answer

VCPKG + CMAKE not finding compatible version with requested version ""

I am trying to use VCPKG and CMAKE on a cpp project and am using the CPR library. I have been struggling to figure out what could be the cause of this error, re ran the get-started guide and other tutorials / blogs that are using cpr with vcpkg and…