How to compile gobject-introspection ?

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

How to compile gobject-introspection ?

Andrzej Borucki
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


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

Re: How to compile gobject-introspection ?

Philip Withnall-2
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
_______________________________________________
gtk-devel-list mailing list
[hidden email]
https://mail.gnome.org/mailman/listinfo/gtk-devel-list

signature.asc (849 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: How to compile gobject-introspection ?

Gtk+ - Dev - General mailing list
In reply to this post by Andrzej Borucki
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
[hidden email]
https://mail.gnome.org/mailman/listinfo/gtk-devel-list
Loading...