This forum has been archived. All content is frozen. Please use KDE Discuss instead.

PKG_CONFIG_PATH question

Tags: None
(comma "," separated)
daviddoria
Registered Member
Posts
46
Karma
0
OS

PKG_CONFIG_PATH question

Tue Jun 21, 2011 4:15 pm
I am trying to 'configure' polkit, but I am getting:

configure: error: Package requirements (gio-2.0 >= 2.28.0) were not met:

No package 'gio-2.0' found

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

I have configured glib with --prefix=/home/ddoria/bin and then 'make'
and 'make install'.

I have these in my .bashrc:
export PATH=$PATH:/home/ddoria/bin/
export PATH=$PATH:/home/ddoria/bin/bin
export LD_LIBRARY_PATH=LD_LIBRARY_PATH:/home/ddoria/bin/lib
export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/home/ddoria/bin/lib:/home/ddoria/bin/

The libgio that it is looking for indeed exists where it should:
/home/ddoria/bin/lib$ ls
gio
glib-2.0
libgio-2.0.la
libgio-2.0.so

Any suggestions on how to proceed?

Thanks,

David
User avatar
anda_skoa
KDE Developer
Posts
783
Karma
4
OS

Re: PKG_CONFIG_PATH question

Tue Jun 21, 2011 7:23 pm
The package config path usually ends in pkgconfig, in your case probably
/home/ddoria/bin/lib/pkgconfig

Check for a file called gio-2.0.pc

Cheers,
_


anda_skoa, proud to be a member of KDE forums since 2008-Oct.
pinotree
KDE Developer
Posts
222
Karma
7
OS

Re: PKG_CONFIG_PATH question

Tue Jun 21, 2011 7:26 pm
daviddoria wrote:I have configured glib with --prefix=/home/ddoria/bin
[...]
export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/home/ddoria/bin/lib:/home/ddoria/bin/

This is wrong, each item in PKG_CONFIG_PATH should be like $prefix/lib/pkgconfig, so /home/ddoria/bin/lib/pkgconfig in your case.


Pino Toscano
daviddoria
Registered Member
Posts
46
Karma
0
OS

Re: PKG_CONFIG_PATH question

Tue Jun 21, 2011 7:31 pm
Ah, I see. Thanks!


Bookmarks



Who is online

Registered users: bartoloni, Bing [Bot], Evergrowing, Google [Bot]