Build in Ubuntu 20

Hello, used the instructions to the best of my abilities. I get the following and I don’t know exactly how to resolve the glib issue. I only need the libraries for a system we are building.

delarosa@delarosa-X10SLL-F-X10SLL-SF:~/aravis/module$ meson setup builddir

ERROR: Neither directory contains a build file meson.build.
delarosa@delarosa-X10SLL-F-X10SLL-SF:~/aravis/module$ meson meson.b^C
delarosa@delarosa-X10SLL-F-X10SLL-SF:~/aravis/module$ ls
aravis-module.c  aravis-module.h  builddir  Makefile
delarosa@delarosa-X10SLL-F-X10SLL-SF:~/aravis/module$ cd ..
delarosa@delarosa-X10SLL-F-X10SLL-SF:~/aravis$ meson setup builddir
The Meson build system
Version: 0.53.2
Source dir: /home/delarosa/aravis
Build dir: /home/delarosa/aravis/builddir
Build type: native build
Project name: aravis
Project version: 0.9.0
C compiler for the host machine: cc (gcc 9.4.0 "cc (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0")
C linker for the host machine: cc ld.bfd 2.34
C++ compiler for the host machine: c++ (gcc 9.4.0 "c++ (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0")
C++ linker for the host machine: c++ ld.bfd 2.34
Host machine cpu family: x86_64
Host machine cpu: x86_64
Compiler for C supports arguments -Wduplicated-branches: YES
Compiler for C supports arguments -Wimplicit-fallthrough: YES
Compiler for C supports arguments -Wmisleading-indentation: YES
Compiler for C supports arguments -Wstrict-prototypes: YES
Compiler for C supports arguments -Wunused: YES
Compiler for C supports arguments -Wunused-variable: YES
Compiler for C supports arguments -Wdeclaration-after-statement: YES
Compiler for C supports arguments -Wformat=2: YES
Compiler for C supports arguments -Wimplicit-function-declaration: YES
Compiler for C supports arguments -Winit-self: YES
Compiler for C supports arguments -Wmissing-include-dirs: YES
Compiler for C supports arguments -Wmissing-prototypes: YES
Compiler for C supports arguments -Wpointer-arith: YES
Compiler for C supports arguments -Wformat-nonliteral: YES
Compiler for C supports arguments -Wenum-conversion: NO
Compiler for C supports arguments -Wmaybe-uninitialized: YES
Compiler for C supports arguments -fvisibility=hidden: YES
Found pkg-config: /usr/bin/pkg-config (0.29.1)
Did not find CMake 'cmake'
Found CMake: NO
**Run-time dependency glib-2.0 found: NO (tried pkgconfig)**

**meson.build:59:0: ERROR: Dependency "glib-2.0" not found, tried pkgconfig**

Is there a simple Makefile ? Could one be produced ?

Thanks
David


Here is the meson build log:

Build started at 2023-12-05T22:58:58.206793
Main binary: /usr/bin/python3
Build Options: 
Python system: Linux
The Meson build system
Version: 0.53.2
Source dir: /home/delarosa/aravis
Build dir: /home/delarosa/aravis/builddir
Build type: native build
Project name: aravis
Project version: 0.9.0
No CFLAGS in the environment, not changing global flags.
No LDFLAGS in the environment, not changing global flags.
No CPPFLAGS in the environment, not changing global flags.
Sanity testing C compiler: cc
Is cross compiler: False.
Sanity check compiler command line: cc /home/delarosa/aravis/builddir/meson-private/sanitycheckc.c -o /home/delarosa/aravis/builddir/meson-private/sanitycheckc.exe -pipe -D_FILE_OFFSET_BITS=64
Sanity check compile stdout:

-----
Sanity check compile stderr:

-----
Running test binary command: /home/delarosa/aravis/builddir/meson-private/sanitycheckc.exe
C compiler for the build machine: cc (gcc 9.4.0 "cc (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0")
C linker for the build machine: cc ld.bfd 2.34
No CXXFLAGS in the environment, not changing global flags.
No LDFLAGS in the environment, not changing global flags.
No CPPFLAGS in the environment, not changing global flags.
Sanity testing C++ compiler: c++
Is cross compiler: False.
Sanity check compiler command line: c++ /home/delarosa/aravis/builddir/meson-private/sanitycheckcpp.cc -o /home/delarosa/aravis/builddir/meson-private/sanitycheckcpp.exe -pipe -D_FILE_OFFSET_BITS=64
Sanity check compile stdout:

-----
Sanity check compile stderr:

-----
Running test binary command: /home/delarosa/aravis/builddir/meson-private/sanitycheckcpp.exe
C++ compiler for the build machine: c++ (gcc 9.4.0 "c++ (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0")
C++ linker for the build machine: c++ ld.bfd 2.34
No CFLAGS in the environment, not changing global flags.
No LDFLAGS in the environment, not changing global flags.
No CPPFLAGS in the environment, not changing global flags.
Sanity testing C compiler: cc
Is cross compiler: False.
Sanity check compiler command line: cc /home/delarosa/aravis/builddir/meson-private/sanitycheckc.c -o /home/delarosa/aravis/builddir/meson-private/sanitycheckc.exe -pipe -D_FILE_OFFSET_BITS=64
Sanity check compile stdout:

-----
Sanity check compile stderr:

-----
Running test binary command: /home/delarosa/aravis/builddir/meson-private/sanitycheckc.exe
C compiler for the host machine: cc (gcc 9.4.0 "cc (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0")
C linker for the host machine: cc ld.bfd 2.34
No CXXFLAGS in the environment, not changing global flags.
No LDFLAGS in the environment, not changing global flags.
No CPPFLAGS in the environment, not changing global flags.
Sanity testing C++ compiler: c++
Is cross compiler: False.
Sanity check compiler command line: c++ /home/delarosa/aravis/builddir/meson-private/sanitycheckcpp.cc -o /home/delarosa/aravis/builddir/meson-private/sanitycheckcpp.exe -pipe -D_FILE_OFFSET_BITS=64
Sanity check compile stdout:

-----
Sanity check compile stderr:

-----
Running test binary command: /home/delarosa/aravis/builddir/meson-private/sanitycheckcpp.exe
C++ compiler for the host machine: c++ (gcc 9.4.0 "c++ (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0")
C++ linker for the host machine: c++ ld.bfd 2.34
Build machine cpu family: x86_64
Build machine cpu: x86_64
Host machine cpu family: x86_64
Host machine cpu: x86_64
Target machine cpu family: x86_64
Target machine cpu: x86_64
Running compile:
Working directory:  /home/delarosa/aravis/builddir/meson-private/tmpzau6s6ay
Command line:  cc /home/delarosa/aravis/builddir/meson-private/tmpzau6s6ay/testfile.c -o /home/delarosa/aravis/builddir/meson-private/tmpzau6s6ay/output.obj -pipe -c -D_FILE_OFFSET_BITS=64 -O0 -Wduplicated-branches 

Code:
 int i;

Compiler stdout:
 
Compiler stderr:
 
Compiler for C supports arguments -Wduplicated-branches: YES 
Running compile:
Working directory:  /home/delarosa/aravis/builddir/meson-private/tmps6rodvs6
Command line:  cc /home/delarosa/aravis/builddir/meson-private/tmps6rodvs6/testfile.c -o /home/delarosa/aravis/builddir/meson-private/tmps6rodvs6/output.obj -pipe -c -D_FILE_OFFSET_BITS=64 -O0 -Wimplicit-fallthrough 

Code:
 int i;

Compiler stdout:
 
Compiler stderr:
 
Compiler for C supports arguments -Wimplicit-fallthrough: YES 
Running compile:
Working directory:  /home/delarosa/aravis/builddir/meson-private/tmpdcb1cqa4
Command line:  cc /home/delarosa/aravis/builddir/meson-private/tmpdcb1cqa4/testfile.c -o /home/delarosa/aravis/builddir/meson-private/tmpdcb1cqa4/output.obj -pipe -c -D_FILE_OFFSET_BITS=64 -O0 -Wmisleading-indentation 

Code:
 int i;

Compiler stdout:
 
Compiler stderr:
 
Compiler for C supports arguments -Wmisleading-indentation: YES 
Running compile:
Working directory:  /home/delarosa/aravis/builddir/meson-private/tmppqyvnwd_
Command line:  cc /home/delarosa/aravis/builddir/meson-private/tmppqyvnwd_/testfile.c -o /home/delarosa/aravis/builddir/meson-private/tmppqyvnwd_/output.obj -pipe -c -D_FILE_OFFSET_BITS=64 -O0 -Wstrict-prototypes 

Code:
 int i;

Compiler stdout:
 
Compiler stderr:
 
Compiler for C supports arguments -Wstrict-prototypes: YES 
Running compile:
Working directory:  /home/delarosa/aravis/builddir/meson-private/tmpr89ap00k
Command line:  cc /home/delarosa/aravis/builddir/meson-private/tmpr89ap00k/testfile.c -o /home/delarosa/aravis/builddir/meson-private/tmpr89ap00k/output.obj -pipe -c -D_FILE_OFFSET_BITS=64 -O0 -Wunused 

Code:
 int i;

Compiler stdout:
 
Compiler stderr:
 
Compiler for C supports arguments -Wunused: YES 
Running compile:
Working directory:  /home/delarosa/aravis/builddir/meson-private/tmpfv19z40g
Command line:  cc /home/delarosa/aravis/builddir/meson-private/tmpfv19z40g/testfile.c -o /home/delarosa/aravis/builddir/meson-private/tmpfv19z40g/output.obj -pipe -c -D_FILE_OFFSET_BITS=64 -O0 -Wunused-variable 

Code:
 int i;

Compiler stdout:
 
Compiler stderr:
 
Compiler for C supports arguments -Wunused-variable: YES 
Running compile:
Working directory:  /home/delarosa/aravis/builddir/meson-private/tmp7e8gvtqb
Command line:  cc /home/delarosa/aravis/builddir/meson-private/tmp7e8gvtqb/testfile.c -o /home/delarosa/aravis/builddir/meson-private/tmp7e8gvtqb/output.obj -pipe -c -D_FILE_OFFSET_BITS=64 -O0 -Wdeclaration-after-statement 

Code:
 int i;

Compiler stdout:
 
Compiler stderr:
 
Compiler for C supports arguments -Wdeclaration-after-statement: YES 
Running compile:
Working directory:  /home/delarosa/aravis/builddir/meson-private/tmpsqgj8cvn
Command line:  cc /home/delarosa/aravis/builddir/meson-private/tmpsqgj8cvn/testfile.c -o /home/delarosa/aravis/builddir/meson-private/tmpsqgj8cvn/output.obj -pipe -c -D_FILE_OFFSET_BITS=64 -O0 -Wformat=2 

Code:
 int i;

Compiler stdout:
 
Compiler stderr:
 
Compiler for C supports arguments -Wformat=2: YES 
Running compile:
Working directory:  /home/delarosa/aravis/builddir/meson-private/tmphpo5qyts
Command line:  cc /home/delarosa/aravis/builddir/meson-private/tmphpo5qyts/testfile.c -o /home/delarosa/aravis/builddir/meson-private/tmphpo5qyts/output.obj -pipe -c -D_FILE_OFFSET_BITS=64 -O0 -Wimplicit-function-declaration 

Code:
 int i;

Compiler stdout:
 
Compiler stderr:
 
Compiler for C supports arguments -Wimplicit-function-declaration: YES 
Running compile:
Working directory:  /home/delarosa/aravis/builddir/meson-private/tmpmleuqv_s
Command line:  cc /home/delarosa/aravis/builddir/meson-private/tmpmleuqv_s/testfile.c -o /home/delarosa/aravis/builddir/meson-private/tmpmleuqv_s/output.obj -pipe -c -D_FILE_OFFSET_BITS=64 -O0 -Winit-self 

Code:
 int i;

Compiler stdout:
 
Compiler stderr:
 
Compiler for C supports arguments -Winit-self: YES 
Running compile:
Working directory:  /home/delarosa/aravis/builddir/meson-private/tmp6bnvzml7
Command line:  cc /home/delarosa/aravis/builddir/meson-private/tmp6bnvzml7/testfile.c -o /home/delarosa/aravis/builddir/meson-private/tmp6bnvzml7/output.obj -pipe -c -D_FILE_OFFSET_BITS=64 -O0 -Wmissing-include-dirs 

Code:
 int i;

Compiler stdout:
 
Compiler stderr:
 
Compiler for C supports arguments -Wmissing-include-dirs: YES 
Running compile:
Working directory:  /home/delarosa/aravis/builddir/meson-private/tmpv4ef5cfv
Command line:  cc /home/delarosa/aravis/builddir/meson-private/tmpv4ef5cfv/testfile.c -o /home/delarosa/aravis/builddir/meson-private/tmpv4ef5cfv/output.obj -pipe -c -D_FILE_OFFSET_BITS=64 -O0 -Wmissing-prototypes 

Code:
 int i;

Compiler stdout:
 
Compiler stderr:
 
Compiler for C supports arguments -Wmissing-prototypes: YES 
Running compile:
Working directory:  /home/delarosa/aravis/builddir/meson-private/tmphav4bb54
Command line:  cc /home/delarosa/aravis/builddir/meson-private/tmphav4bb54/testfile.c -o /home/delarosa/aravis/builddir/meson-private/tmphav4bb54/output.obj -pipe -c -D_FILE_OFFSET_BITS=64 -O0 -Wpointer-arith 

Code:
 int i;

Compiler stdout:
 
Compiler stderr:
 
Compiler for C supports arguments -Wpointer-arith: YES 
Running compile:
Working directory:  /home/delarosa/aravis/builddir/meson-private/tmpxt5_i_2f
Command line:  cc /home/delarosa/aravis/builddir/meson-private/tmpxt5_i_2f/testfile.c -o /home/delarosa/aravis/builddir/meson-private/tmpxt5_i_2f/output.obj -pipe -c -D_FILE_OFFSET_BITS=64 -O0 -Wformat-nonliteral 

Code:
 int i;

Compiler stdout:
 
Compiler stderr:
 
Compiler for C supports arguments -Wformat-nonliteral: YES 
Running compile:
Working directory:  /home/delarosa/aravis/builddir/meson-private/tmpz0nn9bk5
Command line:  cc /home/delarosa/aravis/builddir/meson-private/tmpz0nn9bk5/testfile.c -o /home/delarosa/aravis/builddir/meson-private/tmpz0nn9bk5/output.obj -pipe -c -D_FILE_OFFSET_BITS=64 -O0 -Wenum-conversion 

Code:
 int i;

Compiler stdout:
 
Compiler stderr:
 cc: error: unrecognized command line option '-Wenum-conversion'; did you mean '-Wno-conversion'?

Compiler for C supports arguments -Wenum-conversion: NO 
Running compile:
Working directory:  /home/delarosa/aravis/builddir/meson-private/tmp9qko2iyz
Command line:  cc /home/delarosa/aravis/builddir/meson-private/tmp9qko2iyz/testfile.c -o /home/delarosa/aravis/builddir/meson-private/tmp9qko2iyz/output.obj -pipe -c -D_FILE_OFFSET_BITS=64 -O0 -Wmaybe-uninitialized 

Code:
 int i;

Compiler stdout:
 
Compiler stderr:
 
Compiler for C supports arguments -Wmaybe-uninitialized: YES 
Running compile:
Working directory:  /home/delarosa/aravis/builddir/meson-private/tmp0wc7cqz1
Command line:  cc /home/delarosa/aravis/builddir/meson-private/tmp0wc7cqz1/testfile.c -o /home/delarosa/aravis/builddir/meson-private/tmp0wc7cqz1/output.obj -pipe -c -D_FILE_OFFSET_BITS=64 -O0 -fvisibility=hidden 

Code:
 int i;

Compiler stdout:
 
Compiler stderr:
 
Compiler for C supports arguments -fvisibility=hidden: YES 
Pkg-config binary for MachineChoice.HOST is not cached.
Pkg-config binary missing from cross or native file, or env var undefined.
Trying a default pkg-config fallback at pkg-config
Trying pkg-config binary pkg-config for machine MachineChoice.HOST at ['/usr/bin/pkg-config']
Found pkg-config: /usr/bin/pkg-config (0.29.1)
Determining dependency 'glib-2.0' with pkg-config executable '/usr/bin/pkg-config'
PKG_CONFIG_PATH: 
Called `/usr/bin/pkg-config --modversion glib-2.0` -> 1

CMake binary for MachineChoice.HOST is not cached
CMake binary missing from cross or native file, or env var undefined.
Trying a default CMake fallback at cmake
Trying CMake binary cmake for machine MachineChoice.HOST at [None]
Did not find CMake 'cmake'
Found CMake: NO
No CMake binary for machine MachineChoice.HOST not found. Giving up.
Run-time dependency glib-2.0 found: NO (tried pkgconfig)

meson.build:59:0: ERROR: Dependency "glib-2.0" not found, tried pkgconfig

Hi David,

Did you install the development packages of the dependencies ?

https://aravisproject.github.io/aravis/building.html#install-dependencies-on-ubuntu-2004

A simple Makefile is something that does not exist for any non trivial project.

Emmanuel.