Build Gtk+ by Meson with locally installed Glib

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Build Gtk+ by Meson with locally installed Glib

Andrey Ponomarenko
Hi,

How can I build Gtk+ 3.93.0 by Meson with locally installed Glib 2.55.0?

I have tried pkgconfig:

PKG_CONFIG_PATH=/path/to/glib/2.55.0/lib/pkgconfig meson -Ddisable-modules=true -Denable-wayland-backend=false -Dintrospection=false -Ddemos=false -Dbuild-tests=false -Ddocumentation=false --buildtype debug . build_dir --prefix="/install/path"
cd build_dir
ninja

But this results to:

[1/661] Generating gdkresources_h with a custom command.
[2/661] Generating gdkresources_c with a custom command.
FAILED: gdk/gdkresources.c
glib-compile-resources gdk/gdk.gresource.xml --sourcedir ../gdk/. --sourcedir ../gdk --c-name _gdk --internal --generate --target gdk/gdkresources.c --manual-register --dependency-file gdk/gdkresources.c.d
Unknown option --dependency-file
...

I.e. it uses old system's glib instead of local one (in /path/to/glib/2.55.0/).

How can I tell meson/ninja to use local Glib install tree?

Meson: 0.44.0
Ninja: 1.8.2

Thank you.
_______________________________________________
gtk-devel-list mailing list
[hidden email]
https://mail.gnome.org/mailman/listinfo/gtk-devel-list
Reply | Threaded
Open this post in threaded view
|

Re: Build Gtk+ by Meson with locally installed Glib

Daniel Boles
I'd think the simplest option is to put your local GLib in your PATH with higher priority, so that the non-absolute invocation of g-c-r finds your one instead of the system one.


_______________________________________________
gtk-devel-list mailing list
[hidden email]
https://mail.gnome.org/mailman/listinfo/gtk-devel-list
Reply | Threaded
Open this post in threaded view
|

Re: Build Gtk+ by Meson with locally installed Glib

Andrey Ponomarenko
This is helpful.
 
PATH=/path/to/glib/2.55.0/bin:$PATH PKG_CONFIG_PATH=/path/to/glib/2.55.0/lib/pkgconfig meson . build_dir --prefix=/
 
Also, installing to a local directory requires setting of the DESTDIR variable:
 
PATH=/path/to/glib/2.55.0/bin:$PATH ninja
DESTDIR=/install/path ninja install
 
Thanks a lot!
 
 
29.12.2017, 15:13, "Daniel Boles" <[hidden email]>:
I'd think the simplest option is to put your local GLib in your PATH with higher priority, so that the non-absolute invocation of g-c-r finds your one instead of the system one.

_______________________________________________
gtk-devel-list mailing list
[hidden email]
https://mail.gnome.org/mailman/listinfo/gtk-devel-list