<div dir="ltr">Hi,<div><br></div><div>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 - <a href="https://wiki.videolan.org/Win32Compile/">https://wiki.videolan.org/Win32Compile/</a>. I'm cross compiling on Ubuntu 14.04 LTS for x86_64 target using mingw. </div><div><br></div><div>I got contrib tarballs and started compiling them. It compiles fine until it starts compiling fontconfig. There it hits a configure error.</div><div><br></div><div><div><i>configure: error: Package requirements (freetype2) were not met:</i></div><div><i><br></i></div><div><i>No package 'freetype2' found</i></div><div><i><br></i></div><div><i>Consider adjusting the PKG_CONFIG_PATH environment variable if you</i></div><div><i>installed software in a non-standard prefix.</i></div><div><i><br></i></div><div><i>Alternatively, you may set the environment variables FREETYPE_CFLAGS</i></div><div><i>and FREETYPE_LIBS to avoid the need to call pkg-config.</i></div><div><i>See the pkg-config man page for more details.</i></div><div><i>make: *** [.fontconfig] Error 1</i></div></div><div><br></div><div>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. </div><div><br></div><div><div><i>export FREETYPE_CFLAGS=../../contrib/x86_64-w64-mingw32/include/freetype2</i></div><div><i>export FREETYPE_LIBS=../../contrib/x86_64-w64-mingw32/lib</i></div></div><div><i><br></i></div><div>It now gets past that but it cannot find libxml2. The following is the configure error:</div><div><br></div><div><div><i>checking for LIBXML2... no</i></div><div><i>configure: error: Package requirements (libxml-2.0 >= 2.6) were not met:</i></div><div><i><br></i></div><div><i>No package 'libxml-2.0' found</i></div><div><i><br></i></div><div><i>Consider adjusting the PKG_CONFIG_PATH environment variable if you</i></div><div><i>installed software in a non-standard prefix.</i></div><div><i><br></i></div><div><i>Alternatively, you may set the environment variables LIBXML2_CFLAGS</i></div><div><i>and LIBXML2_LIBS to avoid the need to call pkg-config.</i></div><div><i>See the pkg-config man page for more details.</i></div><div><i>make: *** [.fontconfig] Error 1</i></div></div><div><br></div><div>Similarly I set the LIBXML2_CFLAGS and LIBXM2_LIBS.</div><div><br></div><div><i>export LIBXML2_CFLAGS=../../contrib/x86_64-w64-mingw32/include/libxml2<br></i></div><div><i>export LIBXML2_LIBS=../../contrib/x86_64-w64-mingw32/lib</i><br></div><div><br></div><div>Now it finds libxml2 but throws up another error:</div><div><br></div><div><div><i>checking for LIBXML2... yes</i></div><div><i>checking SAX1 support in libxml2... configure: error:</i></div><div><i>*** SAX1 support in libxml2 is required. enable it or use expat instead.</i></div><div><i>make: *** [.fontconfig] Error 1</i></div></div><div><i><br></i></div><div>I see that libxml2 was built with SAX1 support. In $LIBXML2_CFLAGS/libxml/xmlversion.h, I see that LIBXML_SAX1_ENABLED is defined.:</div><div><br></div><div><div><i>/**</i></div><div><i> * LIBXML_SAX1_ENABLED:</i></div><div><i> *</i></div><div><i> * Whether the older SAX1 interface is configured in</i></div><div><i> */</i></div><div><i>#if 1</i></div><div><i>#define LIBXML_SAX1_ENABLED</i></div><div><i>#endif</i></div></div><div><br></div><div>Can anyone please help me? </div><div><br clear="all"><div><div class="gmail_signature">Thanks & Best Regards,<div>Harinandan Srinivasamurthy<br><br><br></div></div></div>
</div></div>