Getting Aravis on Win10

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:

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

2 Likes

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.

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

HTH,

edx.


I had the same requirements, but it didnā€™t compile in the end
Does anyone know how to fix this

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:

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

The error:

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

[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'

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

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