[vlc-devel] commit: Remove xml2 dependency for freetype and libass on Win32 ( Jean-Baptiste Kempf )

Anthony Loiseau thannoy at actech-innovation.com
Wed Jul 29 17:39:13 CEST 2009


I have linking error on freetype/fontconfig. It can't find some libxml2 symbols:

Creating library file: .libs/libfreetype_plugin.dll.a
/usr/win32/lib/libfontconfig.a(fcxml.o):fcxml.c:(.text+0x6b):
undefined reference to `_xmlSAX2GetLineNumber'
/usr/win32/lib/libfontconfig.a(fcxml.o):fcxml.c:(.text+0xd8):
undefined reference to `_xmlSAX2GetLineNumber'
/usr/win32/lib/libfontconfig.a(fcxml.o):fcxml.c:(.text+0x2546):
undefined reference to `_xmlCreatePushParserCtxt'
/usr/win32/lib/libfontconfig.a(fcxml.o):fcxml.c:(.text+0x25ee):
undefined reference to `_xmlParseChunk'
/usr/win32/lib/libfontconfig.a(fcxml.o):fcxml.c:(.text+0x262a):
undefined reference to `_xmlFreeParserCtxt'
collect2: ld returned 1 exit status
make[5]: *** [libfreetype_plugin.la] Error 1


I am using mingw32 on Fedora 10 64bits, and win32 contribs for 1.0.0,.
Attached patch re-add xml2 dependency for freetype. Worked for me.

Regards,
Anthony Loiseau



On Tue, Jul 28, 2009 at 11:48 PM, git version control<git at videolan.org> wrote:
> vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Mon Jul 27 15:14:17 2009 +0200| [1ca3578eb7f219d089c5f2672121dea0b36c7cb1] | committer: Jean-Baptiste Kempf
>
> Remove xml2 dependency for freetype and libass on Win32
>
>> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=1ca3578eb7f219d089c5f2672121dea0b36c7cb1
> ---
>
>  configure.ac |   12 ++++++------
>  1 files changed, 6 insertions(+), 6 deletions(-)
>
> diff --git a/configure.ac b/configure.ac
> index f692223..47302f2 100644
> --- a/configure.ac
> +++ b/configure.ac
> @@ -3749,7 +3749,7 @@ AS_IF( [test "${enable_zvbi}" != "no"],[
>         [
>           VLC_ADD_LIBS([zvbi],[$ZVBI_LIBS])
>           if test "${SYS}" = "mingw32"; then
> -          VLC_ADD_LIBS([zvbi],[ -lpthreadGC2])
> +              VLC_ADD_LIBS([zvbi],[ -lpthreadGC2])
>           fi
>           VLC_ADD_CFLAGS([zvbi],[$ZVBI_CFLAGS])
>           VLC_ADD_PLUGIN([zvbi])
> @@ -3798,7 +3798,7 @@ AS_IF( [test "${enable_libass}" = "yes"], [
>         AC_CHECK_HEADERS(fontconfig/fontconfig.h,
>           [VLC_ADD_CPPFLAGS([libass],[-DHAVE_FONTCONFIG])
>         if test "${SYS}" = "mingw32"; then
> -           VLC_ADD_LIBS([libass],[-lfontconfig -lfreetype -liconv -lz -lxml2])
> +           VLC_ADD_LIBS([libass],[-lfontconfig -lfreetype -liconv -lz])
>         else
>            VLC_ADD_LIBS([libass],[-lfontconfig])
>         fi
> @@ -3819,8 +3819,8 @@ AS_IF( [test "${enable_asademux}" = "yes"], [
>       [
>         VLC_ADD_LDFLAGS([asademux],[$PCRE_LIBS])
>         VLC_ADD_CFLAGS([asademux],[$PCRE_CFLAGS])
> -       if test "${SYS}" = "mingw32"; then
> -               VLC_ADD_CPPFLAGS([asademux],[-DPCRE_STATIC])
> +        if test "${SYS}" = "mingw32"; then
> +            VLC_ADD_CPPFLAGS([asademux],[-DPCRE_STATIC])
>         fi
>         VLC_ADD_PLUGIN([asademux])
>       ],[
> @@ -4239,7 +4239,7 @@ then
>       VLC_ADD_CPPFLAGS([freetype skins2],[${FREETYPE_CFLAGS}])
>       VLC_ADD_LIBS([freetype skins2],[${FREETYPE_LIBS}])
>       if test "${SYS}" = "mingw32"; then
> -        VLC_ADD_LIBS([freetype skins2],[-lxml2])
> +        VLC_ADD_LIBS([skins2],[-lxml2])
>         VLC_ADD_LIBS([freetype],[-liconv])
>       fi
>       if test "${enable_fontconfig}" != "no"
> @@ -5271,7 +5271,7 @@ dnl
>  if test "${SYS}" = "mingw32" -o "${SYS}" = "linux"; then
>    AC_ARG_ENABLE(atmo,
>  AS_HELP_STRING([--disable-atmo],[AtmoLight (homebrew philips ambilight)
> -               (default enabled)]))
> +                (default enabled)]))
>    if test "${enable_atmo}" != "no"; then
>       AC_LANG_PUSH(C++)
>       VLC_ADD_PLUGIN([atmo])
>
> _______________________________________________
> vlc-devel mailing list
> To unsubscribe or modify your subscription options:
> http://mailman.videolan.org/listinfo/vlc-devel
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-configure.ac-re-add-xml2-dependency-for-freetype.patch
Type: text/x-patch
Size: 1289 bytes
Desc: not available
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20090729/6675484d/attachment.bin>


More information about the vlc-devel mailing list