[vlc-devel] Errors while building VLC contrib for win32 - No package 'freetype2' found

Harinandan Srinivasamurthy harinandans at gmail.com
Fri Mar 27 18:12:35 CET 2015


Hi,

I am new to compiling VLC and trying it for first time. I'm trying to build
vlc for windows. I'm following the wiki page -
https://wiki.videolan.org/Win32Compile/. I'm cross compiling on Ubuntu
14.04 LTS for x86_64 target using mingw.

I got contrib tarballs and started compiling them. It compiles fine until
it starts compiling fontconfig. There it hits a configure error.

*configure: error: Package requirements (freetype2) were not met:*

*No package 'freetype2' found*

*Consider adjusting the PKG_CONFIG_PATH environment variable if you*
*installed software in a non-standard prefix.*

*Alternatively, you may set the environment variables FREETYPE_CFLAGS*
*and FREETYPE_LIBS to avoid the need to call pkg-config.*
*See the pkg-config man page for more details.*
*make: *** [.fontconfig] Error 1*

Freetype was already compiled before compiling fontconfig. I can see
freetype include files and library in contrib/x86_64-w64-mingw32/include
and contrib/x86_64-w64-mingw32/lib. I tried setting env variables
FREETYPE_CFLAGS and FREETYPE_LIBS to this directory as was suggested in the
error message.

*export FREETYPE_CFLAGS=../../contrib/x86_64-w64-mingw32/include/freetype2*
*export FREETYPE_LIBS=../../contrib/x86_64-w64-mingw32/lib*

It now gets past that but it cannot find libxml2. The following is the
configure error:

*checking for LIBXML2... no*
*configure: error: Package requirements (libxml-2.0 >= 2.6) were not met:*

*No package 'libxml-2.0' found*

*Consider adjusting the PKG_CONFIG_PATH environment variable if you*
*installed software in a non-standard prefix.*

*Alternatively, you may set the environment variables LIBXML2_CFLAGS*
*and LIBXML2_LIBS to avoid the need to call pkg-config.*
*See the pkg-config man page for more details.*
*make: *** [.fontconfig] Error 1*

Similarly I set the LIBXML2_CFLAGS and LIBXM2_LIBS.


*export LIBXML2_CFLAGS=../../contrib/x86_64-w64-mingw32/include/libxml2*
*export LIBXML2_LIBS=../../contrib/x86_64-w64-mingw32/lib*

Now it finds libxml2 but throws up another error:

*checking for LIBXML2... yes*
*checking SAX1 support in libxml2... configure: error:*
**** SAX1 support in libxml2 is required. enable it or use expat instead.*
*make: *** [.fontconfig] Error 1*

I see that libxml2 was built with SAX1 support. In
$LIBXML2_CFLAGS/libxml/xmlversion.h, I see that LIBXML_SAX1_ENABLED is
defined.:

*/***
* * LIBXML_SAX1_ENABLED:*
* **
* * Whether the older SAX1 interface is configured in*
* */*
*#if 1*
*#define LIBXML_SAX1_ENABLED*
*#endif*

Can anyone please help me?

Thanks & Best Regards,
Harinandan Srinivasamurthy
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20150327/f25031e2/attachment.html>


More information about the vlc-devel mailing list