Re: pkg-config

Sven Luther <[email protected]> Tue, 29 Apr 2003 09:55:52 +0200
Newsgroups gmane.comp.video.gimp.windows.devel
Message-ID <20030429075552.GA2093@iliana>
On Mon, Apr 28, 2003 at 02:28:42PM +0100, J. Ali Harlow wrote:
> 
> On 2003.04.28 12:01 Richard Atterer wrote:
> > On Sun, Apr 27, 2003 at 08:52:59PM +0300, Tor Lillqvist wrote:
> > > The pkg-config program has been especially enhanced to take care of
> > > this. When compiled for Win32 (*not* if compiled for Cygwin, which is
> > > just a particular kind of Unix), it automatically replaces the
> > > "prefix" variable in .pc filles with the actual prefix deduced at
> > > run-time from the location of the .pc file.
> > 
> > IMHO this behaviour is not the best solution because it only works if you 
> > build under Windows. I cross-compile from Linux, so I have to kludge around 
> > the issue by setting PKG_CONFIG_PATH and using 
> > "--define-variable=prefix=..."
> 
> I wrote a patch to get pkg-config to work as expected when cross
> compiling. I did submit it but it doesn't seem to have been taken
> up - I'm not sure why. I attach a copy in case it is of use.

This is a patch you have to apply to the linux pkg-config, right ?

How do you install the gtk+ libraries, you simply unzip them somewhere
and have pkg-config point to that ?

BTW, would it be easier to cross compile the libraries than it is to
build them under windows ?

Friendly,

Sven Luther