# Can't build Aravis with Visual Studio 2019

**URL:** <https://aravis-project.discourse.group/t/cant-build-aravis-with-visual-studio-2019/569>\
**Category:** Using Aravis\
**Created:** [February 1, 2023, 7:47pm UTC](https://aravis-project.discourse.group/t/cant-build-aravis-with-visual-studio-2019/569 "2023-02-01T19:47:36Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![bugerya](https://avatars.discourse-cdn.com/v4/letter/b/9dc877/32.png) [@bugerya](https://aravis-project.discourse.group/u/bugerya)\
**Post date:** [February 1, 2023, 7:47pm UTC](https://aravis-project.discourse.group/t/cant-build-aravis-with-visual-studio-2019/569/1 "2023-02-01T19:47:36Z")

</div>

Hello,

Could please anybody help me to build Aravis with Visual Studio 2019 on Windows 10?  
First, I try to use Docker Compose version v2.15.1:

```auto
docker-compose -f aravis-msvc.yml up

```

and got the error:

```auto
Non-string key at top level: true

```

OK, I copied INPUT\_CONANFILE content into conanfile.txt and run directly (Conan version 1.58.0):

```auto
conan install -s os="Windows" -s compiler="Visual Studio" -s compiler.version="16" -s arch="x86_64" -s build_type="Release" -b pcre -b missing -b cascade -if build .

```

and then got:

```auto
gstreamer/1.19.1: ERROR: Package '78f1f36244292688c6629160bf5378be41907a9c' build failed
gstreamer/1.19.1: WARN: Build folder C:\Users\shasha.INTRA\.conan\data\gstreamer\1.19.1\_\_\build\78f1f36244292688c6629160bf5378be41907a9c
ERROR: gstreamer/1.19.1: Error in build() method, line 98
        meson = self._configure_meson()
while calling '_configure_meson', line 92
        args=['--wrap-mode=nofallback'])
        ConanException: Error 9009 while executing meson "C:\Users\shasha.INTRA\.conan\data\gstreamer\1.19.1\_\_\build\78f1f36244292688c6629160bf5378be41907a9c\source_subfolder" "C:\Users\shasha.INTRA\.conan\data\gstreamer\1.19.1\_\_\build\78f1f36244292688c6629160bf5378be41907a9c\build_subfolder" --backend=ninja -Dprefix="C:\Users\shasha.INTRA\.conan\data\gstreamer\1.19.1\_\_\package\78f1f36244292688c6629160bf5378be41907a9c" -Dlibdir="lib" -Dbindir="bin" -Dsbindir="bin" -Dlibexecdir="bin" -Dincludedir="include" -Ddefault_library="shared" -Db_vscrt="md" -Dtools="disabled" -Dexamples="disabled" -Dbenchmarks="disabled" -Dtests="disabled" -Dintrospection="disabled" --wrap-mode=nofallback --buildtype=release

```

---

<div class="post-metadata">

**Author:** ![bugerya](https://avatars.discourse-cdn.com/v4/letter/b/9dc877/32.png) [@bugerya](https://aravis-project.discourse.group/u/bugerya)\
**Post date:** [February 5, 2023, 5:46pm UTC](https://aravis-project.discourse.group/t/cant-build-aravis-with-visual-studio-2019/569/2 "2023-02-05T17:46:26Z")

</div>

Not actual for me any more.

---

<div class="post-metadata">

**Author:** ![pdiego](https://yyz2.discourse-cdn.com/free1/user_avatar/aravis-project.discourse.group/pdiego/32/310_2.png) [@pdiego](https://aravis-project.discourse.group/u/pdiego)\
**Post date:** [July 16, 2024, 11:23am UTC](https://aravis-project.discourse.group/t/cant-build-aravis-with-visual-studio-2019/569/3 "2024-07-16T11:23:04Z")

</div>

> [@bugerya](#):
>
> `Dintrospection`

Were you able to compile aravis with visual studio?  
could you indicate the steps, I’m having a problem of

Found pkg-config: NO  
Found CMake: NO  
Run-time dependency glib-2.0 found: NO

meson.build:59:11: ERROR: Dependency lookup for glib-2.0 with method ‘pkgconfig’ failed: Pkg-config for machine host machine not found. Giving up.

Thanks!!!  
Pablo.

---

<div class="post-metadata">

**Author:** ![bugerya](https://avatars.discourse-cdn.com/v4/letter/b/9dc877/32.png) [@bugerya](https://aravis-project.discourse.group/u/bugerya)\
**Post date:** [July 16, 2024, 1:54pm UTC](https://aravis-project.discourse.group/t/cant-build-aravis-with-visual-studio-2019/569/4 "2024-07-16T13:54:52Z")

</div>

Yes, I was successful to build Aravis with Visual Studio 2019 on Windows 10. It was very terrible. Now I do not remember the steps I did. If you want, I can send you my binaries. I use them to work with ImagingSource DFK 37AUX226 camera. Everything works fine.

---

<div class="post-metadata">

**Author:** ![pdiego](https://yyz2.discourse-cdn.com/free1/user_avatar/aravis-project.discourse.group/pdiego/32/310_2.png) [@pdiego](https://aravis-project.discourse.group/u/pdiego)\
**Post date:** [July 17, 2024, 7:14am UTC](https://aravis-project.discourse.group/t/cant-build-aravis-with-visual-studio-2019/569/5 "2024-07-17T07:14:45Z")

</div>

hi!!

yes, please.

Could you send me your binaries?

And i will try to compile aravis. it’s a great challenge!

---

<div class="post-metadata">

**Author:** ![bugerya](https://avatars.discourse-cdn.com/v4/letter/b/9dc877/32.png) [@bugerya](https://aravis-project.discourse.group/u/bugerya)\
**Post date:** [July 17, 2024, 3:47pm UTC](https://aravis-project.discourse.group/t/cant-build-aravis-with-visual-studio-2019/569/6 "2024-07-17T15:47:34Z")

</div>

Here the binaries: [aravis.zip — Яндекс&nbsp;Диск](https://disk.yandex.ru/d/13l62u8LfwZCyA)  
Aravis build x64 with Visual Studio 2019.

---

<div class="post-metadata">

**Author:** ![bugerya](https://avatars.discourse-cdn.com/v4/letter/b/9dc877/32.png) [@bugerya](https://aravis-project.discourse.group/u/bugerya)\
**Post date:** [July 17, 2024, 3:57pm UTC](https://aravis-project.discourse.group/t/cant-build-aravis-with-visual-studio-2019/569/7 "2024-07-17T15:57:43Z")

</div>

Sorry, I forgot: for Aravis also you need glib-2.0 build: [glib-2.0.zip — Яндекс&nbsp;Диск](https://disk.yandex.ru/d/0JYXjdBUmbDRtQ)

---

<div class="post-metadata">

**Author:** ![pdiego](https://yyz2.discourse-cdn.com/free1/user_avatar/aravis-project.discourse.group/pdiego/32/310_2.png) [@pdiego](https://aravis-project.discourse.group/u/pdiego)\
**Post date:** [July 19, 2024, 9:56am UTC](https://aravis-project.discourse.group/t/cant-build-aravis-with-visual-studio-2019/569/8 "2024-07-19T09:56:22Z")

</div>

Thanks! a lot!!

Sorry, but I was going about it the wrong way.

The line to follow is:  
[aravis/.github/workflows/aravis-msvc.yml at main · AravisProject/aravis](https://github.com/AravisProject/aravis/blob/main/.github/workflows/aravis-msvc.yml)

Using this option we can use conan to download and compile all the dependencies and the aravis library.

### set my profile.

conan profile new default --detect

### compile with all missing libraries.

conan install --requires=aravis/0.8.30 --build=missing
