Re: How to compile gobject-introspection ?

2017-08-08 Thread 范君維

Hi Andy,

Andy 於 2017/8/8 下午 10:19 寫道:


I try sudo apt-get install glib-2.0
and is the same


Normally the package managers will not install the latest unstable 
versions of GLib, but only the stable versions that they support for 
their distribution release.  So, you will need to build and install the 
latest unstable (2.53.x) version of GLib (make sure that you don't try 
to overwrite the GLib that your package manager provides, so you install 
it in a private location such as $HOME/gnome.build.unstable), and then 
when you build gobject-introspection, you need to prepend your 
./autogen.sh with PKG_CONFIG_PATH= and LD_LIBRARY_PATH=, like:


LD_LIBRARY_PATH=$HOME/gnome.build.unstable/lib:$LD_LIBRARY_PATH 
PKG_CONFIG_PATH=$HOME/gnome.build.unstable/lib/pkgconfig:$PKG_CONFIG_PATH 
./autogen (...whatever options you have)


Then you should be able to build and install it properly.

With blessings, and cheers!
___
gtk-devel-list mailing list
gtk-devel-list@gnome.org
https://mail.gnome.org/mailman/listinfo/gtk-devel-list


Re: How to compile gobject-introspection ?

2017-08-08 Thread Philip Withnall
On Tue, 2017-08-08 at 16:19 +0200, Andy wrote:
> I call ./autogen.sh
> I have error:
> configure: error: Package requirements (glib-2.0 >= 2.53.5) were not
> met:
> 
> No package 'glib-2.0' found
> 
> Consider adjusting the PKG_CONFIG_PATH environment variable if you
> installed software in a non-standard prefix.
> 
> Alternatively, you may set the environment variables GLIB_CFLAGS
> and GLIB_LIBS to avoid the need to call pkg-config.
> See the pkg-config man page for more details.
> ---
> I try sudo apt-get install glib-2.0
> and is the same

You want
sudo apt-get install libglib2.0-dev

In almost all distributions, the development files for libraries (pkg-
config files, headers, debugging symbols) are packaged separately from
the libraries themselves (.so files) because almost all users don’t
need them.

Philip

signature.asc
Description: This is a digitally signed message part
___
gtk-devel-list mailing list
gtk-devel-list@gnome.org
https://mail.gnome.org/mailman/listinfo/gtk-devel-list