[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Mingw-cross-env-list] pkg-config problems in stable-branch
From: |
Tony Theodore |
Subject: |
Re: [Mingw-cross-env-list] pkg-config problems in stable-branch |
Date: |
Sun, 16 Dec 2012 18:00:13 +1100 |
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)?
> 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,
`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.
Cheers,
Tony