Konfigurera jhbuild
Följ de grundläggande installationsinstruktionerna från handboken för jhbuild för att konfigurera jhbuild. Efter att du har installerat jhbuild bör du kopiera jhbuild-exempelkonfigurationsfilen till din hemkatalog genom att exekvera följande kommando från katalogen jhbuild:
$ cp examples/sample.jhbuildrc ~/.config/jhbuildrc
gtkmm-modulen definieras i moduluppsättningen gnome-suites-core-deps-latest.modules. Så redigera din jhbuildrc-fil och ställ in din moduleset-inställning så här:
moduleset = 'gnome-suites-core-deps-latest'
After setting the correct moduleset, you need to tell jhbuild which module or modules to build. To build gtkmm and all of its dependencies, set modules like so:
modules = [ 'gtkmm' ]
You can build several modules by setting the modules variable to a meta-package, e.g. meta-gnome-core, or listing more than one module name. The modules variable specifies which modules will be built when you don't explicitly specify anything on the command line. You can always build a different moduleset later by specifying it on the commandline (e.g. jhbuild build gtkmm).
Sätta ett prefix
By default, jhbuild's configuration is configured to install all software built with jhbuild under the ~/jhbuild/install prefix. You can choose a different prefix, but it is recommended that you keep this prefix different from other software that you've installed (don't set it to /usr!) If you've followed the jhbuild instructions then this prefix belongs to your user, so you don't need to run jhbuild as root.
You should also set buildroot in jhbuildrc. jhbuild builds gtkmm and many of its dependencies with Meson. Meson does not allow building in the source tree. jhbuild's default action is to build in a build directory directly below the source root directory. Some modules have a build directory with files used when building with Autotools. Those files can be destroyed if you let jhbuild build in that directory.
När du hämtade jhbuild från git-arkivet fick du ett antal .modules-filer som anger beroenden mellan moduler. Som standard använder jhbuild inte de hämtade versionerna av dessa filer, utan läser de senaste versionerna i git-arkivet. Detta är vanligen vad du vill. Om du inte vill det använder du variabeln use_local_modulesets i jhbuildrc.