You are not logged in.

#1 2005-03-01 04:16:58

ralvy
Member
From: Santa Monica, California
Registered: 2004-12-06
Posts: 275

GTK2 not found during compile

I'm attempting to recompile JPilot against the latest GTK2 pacman just installed, and I get this error during configure:

checking for GTK+ - version >= 2.0.3... no
*** Could not run GTK+ test program, checking why...
*** The test program failed to compile or link. See the file config.log for the
*** exact error that occured. This usually means GTK+ is incorrectly installed.
configure: error: *** GTK >= 2.0.3 not found ***
make: *** No targets specified and no makefile found.  Stop.
==> ERROR: Build Failed.  Aborting...

I'm not sure I understand why it can't find the proper version of GTK.  Here's what I have installed:

[root@tux jpilot]# pacman -Q gtk gtk2
gtk 1.2.10-4
gtk2 2.6.3-1

Offline

#2 2005-03-01 04:49:27

phrakture
Arch Overlord
From: behind you
Registered: 2003-10-29
Posts: 7,879
Website

Re: GTK2 not found during compile

you need to setup your PKG_CONFIG_PATH so that it can see the gtk2*.pc files

Offline

#3 2005-03-01 07:34:57

ralvy
Member
From: Santa Monica, California
Registered: 2004-12-06
Posts: 275

Re: GTK2 not found during compile

Thanks. That did the job. I guess those files moved with the last update of gtk2.

Offline

#4 2005-03-01 07:39:59

ralvy
Member
From: Santa Monica, California
Registered: 2004-12-06
Posts: 275

Re: GTK2 not found during compile

Me again. I added

export PKG_CONFIG_PATH=/usr/lib/pkgconfig

to /etc/profile

But I have a suspicion that PKG_CONFIG_PATH is supposed to be set somewhere else. No?

Offline

#5 2005-03-01 14:59:01

phrakture
Arch Overlord
From: behind you
Registered: 2003-10-29
Posts: 7,879
Website

Re: GTK2 not found during compile

ralvy wrote:

Me again. I added

export PKG_CONFIG_PATH=/usr/lib/pkgconfig

to /etc/profile

But I have a suspicion that PKG_CONFIG_PATH is supposed to be set somewhere else. No?

it doesn't make much of a difference, but make sure you do

export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/usr/lib/pkgconfig

so to pick up the variable if set anywhere else

Offline

#6 2005-03-01 15:41:54

ralvy
Member
From: Santa Monica, California
Registered: 2004-12-06
Posts: 275

Re: GTK2 not found during compile

Ah, okay. I did look around in various places and couldn't find where all the pkgconfig settings came from. I did a set command and saw a bunch of them. I looked in root's bashrc and bash_profile, but couldn't find them. Do you know where they're set in Arch?

Offline

#7 2005-03-01 16:19:10

phrakture
Arch Overlord
From: behind you
Registered: 2003-10-29
Posts: 7,879
Website

Re: GTK2 not found during compile

ralvy wrote:

Ah, okay. I did look around in various places and couldn't find where all the pkgconfig settings came from. I did a set command and saw a bunch of them. I looked in root's bashrc and bash_profile, but couldn't find them. Do you know where they're set in Arch?

check the scripts in /etc/profile.d/
some packages have their own PKG_CONFIG_PATH - KDE and Gnome do IIRC

Offline

Board footer

Powered by FluxBB