The cross-compilation of VLC in Ubuntu/Debian is being really frustrating and discouraging. Let's me explain.
Following the guide from https://wiki.videolan.org/Win32Compile/:
...Ubuntu 14.04 is too old to compile VLC
Ok, I will use Ubuntu 16.04.
After installing Mingw-w64 toolchain, development tools, cloning the repository, prebuild the 3rd party libraries, etc. Let's configure (https://wiki.videolan.org/Win32Compile#Configure)
Error, Mingw > 5.0 needed! Ubuntu 16.04 installs Mingw-w64 version 4...
Ok, after uninstall the current version of Mingw and install Mingw 5.3, when configuring the project again:
Code: Select all
configure: error: You need 32-bits luac when using using lua from contrib.
)apt-get install lua5.2
Ok, lets go and disable lua (--disable-lua) and get rid of this.
Code: Select all
configure: error: libavutil versions 55 and later are not supported.
Let's try vlc-3.0 (https://github.com/videolan/vlc-3.0)
Code: Select all
configure: error: You need 32-bits luac when using using lua from contrib.
../extras/package/win32/configure.sh --host=i686-w64-mingw32 --build=x86_64-pc-linux-gnu --disable-lua
Code: Select all
configure: error: cannot find FAAD library
# ../extras/package/win32/configure.sh --host=i686-w64-mingw32 --build=x86_64-pc-linux-gnu --disable-lua --disable-faad
Configuration Ok! Ou yeah! Let's compile:
Code: Select all
fatal: Not a git repository: '../../extras/package/win32/../../../.git/'
cat: ../../extras/package/win32/../../../src/revision.txt: No such file or directory
Makefile:3241: recipe for target 'stamp-revision' failed
Makefile:1522: recipe for target 'all-recursive' failed
Makefile:1407: recipe for target 'all' failed
make: *** [all] Error 2
Code: Select all
Configuration finished ok! Well, let's compile:
fatal: Not a git repository: '../../.git/'
cat: ../../src/revision.txt: No such file or directory
Thanks folks!