[Fontconfig] cross compile use fails
suzuki toshiya
mpsuzuki at hiroshima-u.ac.jp
Wed Sep 5 10:27:18 PDT 2012
I'm unfamiliar with ffmpeg, is it difficult to pass "--static" option
to pkg-config during the building of ffmpeg?
"pkg-config --static --libs fontconfig" will include expat and freetype.
Regards,
mpsuzuki
Roger Pack wrote:
> As a note, after cross compiling a static fontconfig, I get a .pc file
> like this:
>
> $ cat ./builds/win32/fontconfig-2.10.1/fontconfig.pc
> prefix=/home/rogerdpack/dev/ffmpeg-windows-build-helpers/builds/mingw-w64-i686/i686-w64-mingw32
> exec_prefix=${prefix}
> libdir=${exec_prefix}/lib
> includedir=${prefix}/include
> sysconfdir=${prefix}/etc
> localstatedir=${prefix}/var
> PACKAGE=fontconfig
> confdir=${sysconfdir}/fonts
> cachedir=WINDOWSTEMPDIR_FONTCONFIG_CACHE
>
> 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.
>
> Thanks for fontconfig!
> -roger-
> _______________________________________________
> Fontconfig mailing list
> Fontconfig at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/fontconfig
More information about the Fontconfig
mailing list