X-Spam-Check-By: sourceware.org
To: cygwin@cygwin.com
From: "v." <vlad666@web.de>
Subject:  Re: pkg-config.exe problem
Date: Sun, 12 Nov 2006 02:14:36 +0000 (UTC)
Lines: 40
Message-ID:  <loom.20061112T030058-230@post.gmane.org>
References:  <web-37670184@mailbe01.swip.net> <ecagl2$a9j$1@sea.gmane.org>
Mime-Version:  1.0
Content-Type:  text/plain; charset=utf-8
Content-Transfer-Encoding:  8bit
User-Agent: Loom/3.14 (http://gmane.org/)
X-IsSubscribed: yes
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

René Berber <r.berber <at> computer.org> writes:

> 
> gedeon.legaut wrote:
> 
> > I working with cygwin installed from www.cygwin.com and glade installed
> > from www.gladewin32.sourceforge.net and I have a pb with pkg-config.exe :
> > 
> > *) pkg-config.exe --cflags gtk+-2.0 gives
> > 
> > Package gtk+-2.0 was not found in the pkg-config search path.
> > Perhaps you should add the directory containing `gtk+-2.0.pc'
> > to the PKG_CONFIG_PATH environment variable
> > No package 'gtk+-2.0' found
> > 
> > *) echo $PKG_CONFIG_PATH gives
> > 
> > /cygdrive/f/GTK/lib/pkgconfig
> [snip]
> 
> Try "pkg-config --debug --cflags gtk+-2.0"
> 
> BTW I'm using version 0.20 of pkg-config and it works fine.


I can not belive it!!! I had almost the same problem, example:
pkg-config --modversion gdk-2.0 
delivered a message that pkg-config is unable to find gdk-2.0.pc in the search
path PKG_CONFIG_PATH ... although the right path was included there!

After examing the output of "pkg-config --debug --cflags gtk+-2.0" I wondered
that it searches for gtk+-2.0.pc on an alternative path starting with "c:\...",
so I reviewed my definidion of PKG_CONFIG_PATH and defined everywhere
fully-qualified paths, each one starting with drive letter
"c:\mydirs\..\pkgconfig". For the first this also did not funtion, so I
seperated the paths not with ':' but with semicolons ';' and enclosed the whole
string for PKG_CONFIG_PATH in "..." !!! This functioned finally, and pkg-config
works now! So to everyone trying to investigate into pkg-config and cygwin ...
forget this shit and do your work seriously in a real unix/linux environment! 
cheers!


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

