mingw-cross-env-list
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Mingw-cross-env-list] pkg-config problems in stable-branch


From: Schrober
Subject: Re: [Mingw-cross-env-list] pkg-config problems in stable-branch
Date: Sun, 16 Dec 2012 13:16:20 +0100
User-agent: KMail/4.8.4 (Linux/3.2.0-4-amd64; KDE/4.8.4; x86_64; ; )

On Sunday 16 December 2012 18:00:13 Tony Theodore wrote:
> Hi Franz,
> 
> On 13/12/2012, at 7:47 PM, Schrober <address@hidden> wrote:
> > I've used libpng and had the problem that the .pc file missed the zlib
> > dependency and therefore no program not also using zlib were able to link
> > against it. This can be fixed by adding following line to it:
> > "Requires: zlib"
> 
> That's strange, I just tried building libpng from stable and get this:
> 
> $ i686-pc-mingw32-pkg-config libpng --libs
> -L/Users/tonyt/dev/mxe/usr/i686-pc-mingw32/lib -lpng15 -lz
> so it looks like it should link correctly. How are you calling pkg-config,
> or are you using $(PREFIX)/$(TARGET)/bin/libpng-config (which should be
> changed in the test program)?

Sry, cannot reproduce anymore. So I am unsure why I had problems in the first 
place.

> > The other problems are actually more or less the same. MXE doesn't add .pc
> > files for glu and gl. I've worked around it by adding them manually, but
> > maybe they can be added to the part of MXE which provides libopengl32 and
> > libglu32
> > 
> > cat > usr/i686-pc-mingw32/lib/pkgconfig/gl.pc << STOP
> > Name: gl
> > Version: 0
> > Description: OpenGL
> > Libs: -lopengl32
> > STOP
> > cat > usr/i686-pc-mingw32/lib/pkgconfig/glu.pc << STOP
> > Name: glu
> > Version: 0
> > Description: OpenGL
> > Libs: -lglu32
> > STOP
> 
> I'm not too sure how useful these would be,

Extreme useful because packages ported from Linux to windows wouldn't have to 
use different code paths to find the correct GL/glu libraries.

> `i686-pc-mingw32-pkg-config gl --libs` `i686-pc-mingw32-pkg-config glu
> --libs`
> 
> is a very verbose way of saying -lopengl2 -lglu32. These are part of the
> w32api and will always be in the default search paths. It's more a matter
> that packages using these should specify them in their respective *.pc
> files.

I am not talking about libraries but endusers/programs.
--
Franz



reply via email to

[Prev in Thread] Current Thread [Next in Thread]