How to build gnome-control-center

Trying to contribute to gnome-control-center.

Could you please provide steps, how to build it? Using Ubuntu 22.10, also having latest Gnome Desktop in Boxes.

Steps to reproduce:
1, git clone GNOME / Settings · GitLab
2, git checkout gnome-43
3, meson setup builddir

It Failed:
The Meson build system
Version: 0.63.2
Source dir: ///Work/gnome/gnome-control-center
Build dir: ///Work/gnome/gnome-control-center/builddir
Build type: native build
Project name: gnome-control-center
Project version: 43.2
C compiler for the host machine: cc (gcc 12.2.0 “cc (Ubuntu 12.2.0-3ubuntu1) 12.2.0”)
C linker for the host machine: cc ld.bfd 2.39
Host machine cpu family: x86_64
Host machine cpu: x86_64
Program python3 found: YES (/usr/bin/python3)
meson.build:36: WARNING: Project targets ‘>= 0.57.0’ but uses feature deprecated since ‘0.55.0’: ExternalProgram.path. use ExternalProgram.full_path() instead
Compiler for C supports arguments -Wcast-align: YES
Compiler for C supports arguments -Wmissing-field-initializers: YES
Compiler for C supports arguments -Wmissing-declarations: YES
Compiler for C supports arguments -Wmissing-prototypes: YES
Compiler for C supports arguments -Wnested-externs: YES
Compiler for C supports arguments -Wno-strict-aliasing: YES
Compiler for C supports arguments -Wno-sign-compare: YES
Submodule ‘subprojects/gvc’ (GNOME / libgnome-volume-control · GitLab) registered for path ‘./’
Cloning into ‘///Work/gnome/gnome-control-center/subprojects/gvc’…
Submodule path ‘./’: checked out ‘8e7a5a4c3e51007ce6579292642517e3d3eb9c50’

Executing subproject gvc

gvc| Project name: gvc
gvc| Project version: undefined
gvc| C compiler for the host machine: cc (gcc 12.2.0 “cc (Ubuntu 12.2.0-3ubuntu1) 12.2.0”)
gvc| C linker for the host machine: cc ld.bfd 2.39
gvc| Program glib-mkenums mkenums found: NO

subprojects/gvc/meson.build:30:0: ERROR: Program ‘glib-mkenums mkenums’ not found or not executable

A full log can be found at ///Work/gnome/gnome-control-center/builddir/meson-logs/meson-log.txt

You’re missing libglib2.0-dev

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.