X-Spam-Check-By: sourceware.org Message-ID: <4556A75A.5000009@cwilson.fastmail.fm> Date: Sat, 11 Nov 2006 23:47:22 -0500 From: Charles Wilson User-Agent: Thunderbird 1.5.0.8 (Windows/20061025) MIME-Version: 1.0 To: cygwin AT cygwin DOT com Subject: Re: pkg-config.exe problem References: In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com v. wrote: > René Berber 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! cygwin's pkg-config executable does not understand windows paths -- nor is it intended to do so. A native pkg-config executable will not understand cygwin paths -- nor is IT intended to do so, either. a native-built package (like, gtk+-2.0 from http://www.gimp.org/~tml/gimp/win32/) will include .pc files that have windows paths in them. a cygwin-built package (like the X11 gtk2 package installed by cygwin setup) will include .pc files that have cygwin paths in them See the problem yet? *do not mix native packages and cygwin packages, nor native pkg-config.exe and cygwin pkg-config.exe, nor native .pc files and cygwin .pc files* -- Chuck -- 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/