I am able to cross compile VLC for Windows with a big thank you to @runner0502. See this thread:
https://forum.videolan.org/viewtopic.ph ... 21#p447021
In the hope that it will help someone else here is a summary of the steps I took to cross compile VLC for Windows. Generally, I followed the instructions here
https://wiki.videolan.org/Win32Compile/ but with the following adjustments/additions
1. I am using Ubuntu 16.04 running in a VM hosted on a MacBook Pro
2. $> sudo apt-get install lua5.1 libtool automake autoconf autopoint make gettext pkg-config git subversion cmake cvs zip p7zip-full nsis bzip2 protobuf-compiler tofrodos
3. $> sudo apt-get install gcc-mingw-w64 g++-mingw-w64 mingw-w64-tools
Earlier in this thread and in other threads concerning cross sompiling for Windows, it is suggested that mingw64 version 5 is required and that in order to get version 5+ one must either use an experimental package or build mingw from latest source. As of this post, the above commands installed version 5.
4. I needed to uninstall qt4 stuff (you may not have all of these): $> sudo apt-get remove --purge qt4-default qt4-designer qt4-dev-tools qt4-make qt4-doc qt4-linguist-tools qtchooser
5. I needed to install qt5 stuff: $> sudo apt-get install qt5-qmake qt5-default qttools5-dev-tools libqt5script5 libqt5scripttools5 qtscript5-dev
6. Follow the instructions for cloning the repository
7. I needed to compile the contribs - some additional steps are required
8. $> sudo apt-get install ragel yasm ant default-jdk wine64-development-tools
9. $> cd vlc && mkdir -p contrib/win32 && cd contrib/win32
10. $> ../bootstrap --host=x86_64-w64-mingw32 <Use appropriate triple for your requirements>
11. $> make fetch
12. edit ..\src\d3d9\rules.mak and ..\src\d3d11\rules.mak IDL_INC_PATH = /usr/include/wine/windows/ to IDL_INC_PATH = /usr/include/wine-development/windows/
13. $> make
14. Get an adult beverage, take a break and come back in an hour or two (your mileage will differ)
15. Once the contribs are compiled you should be ok to follow the rest of the instructions. Don't forget the Linux 64 bit section
16. The only other issue I had was when packaging VLC using package-win-common I needed to edit the Makefile to use todos and remove the -q argument. The Makefile was calling unix2dos -q to modify the line endings on txt, xml and other file types. My Ubuntu does not have unix2dos so I needed to install the tofrodos package and alter the Makefile.