Hi all
A while ago I had a project where I needed to use Aravis and since I use vcpkg for dependency management in all my C++ projects I decided to package it there. This has now finally been merged (see the PR), 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 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 
2 Likes
Hi, it’s great news! thank you
How can we use it ?
I tried
find_package(PkgConfig REQUIRED)
pkg_check_modules(ARAVIS REQUIRED aravis)
with vcpkg.json
{
"dependencies": [
"aravis",
"pkgconf"
]
}
but then I get “Package ‘aravis’ not found”
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) and that worked well.
i had pushed a PoC to GH to show how it can be used (PoC branch, commit adding aravis), this might help you. the repo also contains a CI job, so you can see that it build fine like this.
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