# Aravis now available on vcpkg

**URL:** <https://aravis-project.discourse.group/t/aravis-now-available-on-vcpkg/866>\
**Category:** Using Aravis\
**Created:** [March 12, 2025, 4:22pm UTC](https://aravis-project.discourse.group/t/aravis-now-available-on-vcpkg/866 "2025-03-12T16:22:19Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![rursprung](https://yyz2.discourse-cdn.com/free1/user_avatar/aravis-project.discourse.group/rursprung/32/333_2.png) [@rursprung](https://aravis-project.discourse.group/u/rursprung)\
**Post date:** [March 12, 2025, 4:22pm UTC](https://aravis-project.discourse.group/t/aravis-now-available-on-vcpkg/866/1 "2025-03-12T16:22:19Z")

</div>

Hi all

A while ago I had a project where I needed to use Aravis and since I use [vcpkg](https://vcpkg.io/) for dependency management in all my C++ projects I decided to package it there. This has now finally been merged ([see the PR](https://github.com/microsoft/vcpkg/pull/42351#event-16714344877)), so now you can easily pull in aravis in your next cross-platform C/C++ project when using vcpkg! As part of the same PR I’ve also added it to the OpenCV integration (OpenCV itself already supported Aravis if compiled for it explicitly), so you can just select it there as a feature.

If you need a new release on vcpkg you can just follow [this guide](https://learn.microsoft.com/en-us/vcpkg/produce/update-package-version) or simply: bump the version in `vcpkg.json` of the port, set the new hash, run the necessary script to update the version database and finally create a commit and PR with this 🙂

---

<div class="post-metadata">

**Author:** ![Ubiquite](https://yyz2.discourse-cdn.com/free1/user_avatar/aravis-project.discourse.group/ubiquite/32/367_2.png) [@Ubiquite](https://aravis-project.discourse.group/u/Ubiquite)\
**Post date:** [August 27, 2025, 9:01am UTC](https://aravis-project.discourse.group/t/aravis-now-available-on-vcpkg/866/2 "2025-08-27T09:01:18Z")

</div>

Hi, it’s great news! thank you

How can we use it ?

I tried

```auto
find_package(PkgConfig REQUIRED)
pkg_check_modules(ARAVIS REQUIRED aravis)

```

with vcpkg.json

```auto
{
"dependencies": [
"aravis",
"pkgconf"
]
}

```

but then I get “Package ‘aravis’ not found”

---

<div class="post-metadata">

**Author:** ![rursprung](https://yyz2.discourse-cdn.com/free1/user_avatar/aravis-project.discourse.group/rursprung/32/333_2.png) [@rursprung](https://aravis-project.discourse.group/u/rursprung)\
**Post date:** [September 25, 2025, 9:14am UTC](https://aravis-project.discourse.group/t/aravis-now-available-on-vcpkg/866/3 "2025-09-25T09:14:37Z")

</div>

sorry for the late reply, i’m not involved in the project anymore where i used aravis and only just saw the email notification.

how did you integrate vcpkg in the build? i always used the toolchain file to have vcpkg run as part of CMake (see [their getting started](https://learn.microsoft.com/en-us/vcpkg/get_started/get-started)) and that worked well.

i had pushed a PoC to GH to show how it can be used ([PoC branch](https://github.com/rursprung/OpenCVTest/tree/use-aravis), [commit adding aravis](https://github.com/rursprung/OpenCVTest/commit/7ab42fbcb63be95a579f1a46dcfdccc1a38efeeb)), this might help you. the repo also contains a CI job, so you can see that it build fine like this.

---

<div class="post-metadata">

**Author:** ![Ubiquite](https://yyz2.discourse-cdn.com/free1/user_avatar/aravis-project.discourse.group/ubiquite/32/367_2.png) [@Ubiquite](https://aravis-project.discourse.group/u/Ubiquite)\
**Post date:** [September 25, 2025, 1:57pm UTC](https://aravis-project.discourse.group/t/aravis-now-available-on-vcpkg/866/4 "2025-09-25T13:57:36Z")

</div>

Thank you very much, I managed to fix my issue. I just had to set CMAKE\_PREFIX\_PATH and add:  
set(PKG\_CONFIG\_USE\_CMAKE\_PREFIX\_PATH ON)

before calling PkgConfig
