Instalar y utilizar la versión de git de gtkmm

Once you've configured jhbuild as described above, building gtkmm should be relatively straightforward. The first time you run jhbuild, you should run the following sequence of commands to ensure that jhbuild has the required tools and verify that it is set up correctly:

$ jhbuild bootstrap
$ jhbuild sanitycheck

F.2.1. Instalar gtkmm con jhbuild

Si todo funcionó correctamente, podrá construir gtkmm y a todas sus dependencias desde git ejecutando jhbuild build (o, si no especificó gtkmm en la variable modules, con el comando jhbuild build gtkmm).

Este comando construirá e instalará una serie de módulos y probablemente tarde mucho tiempo la primera vez. Después de la primera vez, sin embargo, debería ir mucho más rápido dado que sólo tendrá que reconstruir los archivos que han cambiado desde la última vez. Alternativamente, después de haber construido e instalado gtkmm por primera vez, lo podrá reconstruir por sí mismo (sin reconstruir todas sus dependencias) con el comando jhbuild buildone gtkmm.

F.2.2. Usar la versión de git de gtkmm

After you've installed the git version of gtkmm, you're ready to start using and experimenting with it. In order to use the new version of gtkmm you've just installed, you need to set some environment variables so that your configure or meson.build script knows where to find the new libraries. Fortunately, jhbuild offers an easy solution to this problem. Executing the command jhbuild shell will start a new shell with all of the correct environment variables set. Now if you re-configure and build your project just as you usually do, it should link against the newly installed libraries. To return to your previous environment, simply exit the jhbuild shell.

Una vez que haya construido su software, también necesitará ejecutar su programa dentro del entorno de jhbuild. Para hacerlo, puede usar de nuevo el comando jhbuild shell para arrancar un intérprete nuevo con el entorno de jhbuild configurado. Alternativamente, puede ejecutar un solo comando en el entorno de jhbuild usando el siguiente comando: jhbuild run nombre-de-comando. En este caso, el comando se ejecutará con las variables de entorno correctas establecidas, pero retornará a su entorno previo después de que el programa salga.