# Getting Aravis on Win10

**URL:** <https://aravis-project.discourse.group/t/getting-aravis-on-win10/471>\
**Category:** Using Aravis\
**Created:** [June 22, 2022, 1:14pm UTC](https://aravis-project.discourse.group/t/getting-aravis-on-win10/471 "2022-06-22T13:14:31Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Romain\_Besso](https://avatars.discourse-cdn.com/v4/letter/r/6a8cbe/32.png) [@Romain\_Besso](https://aravis-project.discourse.group/u/Romain_Besso)\
**Post date:** [June 22, 2022, 1:14pm UTC](https://aravis-project.discourse.group/t/getting-aravis-on-win10/471/1 "2022-06-22T13:14:31Z")

</div>

Hello, I managed to make aravis work on Ubuntu.  
I would like to do the same for windows 10.

I downloaded the last version of aravis available in zip format.  
I then installed Msys2 and I typed the following command:  
`pacman -S mingw-w64-x86_64-aravis-gst`  
But when I run the command: `meson build`  
I get the following errors:

 ![Capture](https://global.discourse-cdn.com/free1/uploads/aravis_project/original/1X/c744938f9a08b0662b81cd404fa0452dfedb89ae.png)

However the pkg-config file is well in : C:\msys64\mingw64\bin

So I tried the option : `meson configure -D pkg_config_path=\msys64\mingw64\bin`  
But nothing changes.  
Do you have an idea ?

TY in advance

Romain

---

<div class="post-metadata">

**Author:** ![eudoxos](https://yyz2.discourse-cdn.com/free1/user_avatar/aravis-project.discourse.group/eudoxos/32/116_2.png) [@eudoxos](https://aravis-project.discourse.group/u/eudoxos)\
**Post date:** [July 4, 2022, 2:18pm UTC](https://aravis-project.discourse.group/t/getting-aravis-on-win10/471/2 "2022-07-04T14:18:07Z")

</div>

Meson says quite clearly (in red) that `pkg-config` and `glib-2.0` was not found. But then… why do you need those? Perhaps you have some confusion between building and installing a package? (Sorry if that is clear, but it just looks like you do). `pacman -S` will download a compiled version, you don’t need to run meson at all. Go directly to to running `arv-viewer-0.8.exe` [which is in the mingw-w64-x86\_64-aravis-gst package already](https://packages.msys2.org/package/mingw-w64-x86_64-aravis-gst).

If you have a reason that you want to build the package locally by yourself, please explain more.

HTH,

edx.

---

<div class="post-metadata">

**Author:** ![adolf](https://avatars.discourse-cdn.com/v4/letter/a/9dc877/32.png) [@adolf](https://aravis-project.discourse.group/u/adolf)\
**Post date:** [April 16, 2024, 12:44am UTC](https://aravis-project.discourse.group/t/getting-aravis-on-win10/471/3 "2024-04-16T00:44:11Z")

</div>

![image](https://global.discourse-cdn.com/free1/uploads/aravis_project/original/1X/de96c6283bb375f67771a6611418fa3f116e8cf2.png)  
I had the same requirements, but it didn’t compile in the end  
Does anyone know how to fix this

---

<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:00am UTC](https://aravis-project.discourse.group/t/getting-aravis-on-win10/471/4 "2024-07-16T11:00:09Z")

</div>

Hi, sorry to all but i’m in the same situation.

I need to compile aravis on windows 11.  
I am installing:  
C:\msys64\mingw64  
I have set:

```auto
C:\CODE2\aravis>echo %PKG_CONFIG_PATH%
C:\msys64\mingw64\bin

```

The error:

```auto
C:\CODE2\aravis>meson setup build --backend=vs --cross-file cross_file.txt
The Meson build system
Version: 1.4.1
Source dir: C:\CODE2\aravis
Build dir: C:\CODE2\aravis\build
Build type: cross build
Project name: aravis
Project version: 0.9.0
C compiler for the host machine: cl (msvc 19.40.33812 "Compilador de optimizaci�n de C/C++ de Microsoft (R) versi�n 19.40.33812 para x86")
C linker for the host machine: link link 14.40.33812.0
C++ compiler for the host machine: cl (msvc 19.40.33812 "Compilador de optimizaci�n de C/C++ de Microsoft (R) versi�n 19.40.33812 para x86")
C++ linker for the host machine: link link 14.40.33812.0
C compiler for the build machine: cl (msvc 19.40.33812 "Compilador de optimizaci�n de C/C++ de Microsoft (R) versi�n 19.40.33812 para x86")
C linker for the build machine: link link 14.40.33812.0
C++ compiler for the build machine: cl (msvc 19.40.33812 "Compilador de optimizaci�n de C/C++ de Microsoft (R) versi�n 19.40.33812 para x86")
C++ linker for the build machine: link link 14.40.33812.0
Auto detected Visual Studio backend: vs2022
Build machine cpu family: x86
Build machine cpu: x86
Host machine cpu family: x86_64
Host machine cpu: x86_64
Target machine cpu family: x86_64
Target machine cpu: x86_64
Compiler for C supports arguments /wd4244: YES
Compiler for C supports arguments /wd4090: YES
Compiler for C supports arguments /utf-8: YES
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.

A full log can be found at C:\CODE2\aravis\build\meson-logs\meson-log.txt

```

And cross\_file.txt

```auto
[binaries]
c = 'cl'
cpp = 'cl'
ar = 'lib'
ld = 'link'
exe_wrapper = 'wine' # Ajusta esto según sea necesario, por ejemplo, para pruebas en un entorno no Windows.

[built-in options]
c_args = ['/I"C:\\CODE\\modulos\\gstreamer\\include"', '/MD', '/DWIN32', '/D_WINDOWS', '/W3']
cpp_args = ['/I"C:\\CODE\\modulos\\gstreamer\\include"', '/MD', '/DWIN32', '/D_WINDOWS', '/W3', '/GR', '/EHsc']
c_link_args = ['/LIBPATH:"C:\\CODE\\modulos\\gstreamer\\bin"']
cpp_link_args = ['/LIBPATH:"C:\\CODE\\modulos\\gstreamer\\bin"']
c_std = 'c11'
cpp_std = 'c++17'

[host_machine]
system = 'windows'
cpu_family = 'x86_64'
cpu = 'x86_64'
endian = 'little'

```

---

<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:57am UTC](https://aravis-project.discourse.group/t/getting-aravis-on-win10/471/5 "2024-07-19T09:57:32Z")

</div>

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
