[Fontconfig] cross compile use fails

Mike Frysinger vapier at gentoo.org
Sun Sep 16 13:46:39 PDT 2012


On Wednesday 05 September 2012 13:10:21 Roger Pack wrote:
> Name: Fontconfig
> Description: Font configuration and customization library
> Version: 2.10.1
> Libs: -L${libdir} -lfontconfig
> Libs.private: 
> -L/home/rogerdpack/dev/ffmpeg-windows-build-helpers/builds/mingw-w64-i686/
> i686-w64-mingw32/lib -lexpat  
> -L/home/rogerdpack/dev/ffmpeg-windows-build-helpers/builds/mingw-w64-i686/
> i686-w64-mingw32/lib -lfreetype
> Cflags: -I${includedir}
> 
> 
> When it actually gets used, it fails because it is missing "-lexpat"
> and "-lfreetype" in the Libs: section.  Or at least, adding those to
> the .pc causes linking with it to work.

as hinted by suzuki, fontconfig.pc is correct.  the shared library (fontconfig) 
do not need -lexpat/-lfreetype.  if you are trying to link it statically 
(which is common with windows targets), you need to call pkg-config with the --
static flag to get the extra stuff.
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.freedesktop.org/archives/fontconfig/attachments/20120916/1d635ee5/attachment.pgp>


More information about the Fontconfig mailing list