环境 Ubuntu12.04
1. 安装编绎器
sudo apt-get install gcc-mingw-w64 g++-mingw-w64
下载
- You must use mingw-w64 3.0 or later (Please note that the binary size is about 7M)
- http://packages.debian.org/experimental ... 4-i686-dev
sudo dpkg -i mingw-w64-i686-dev_3.0~svn5408-1_all.deb
2.安装相关工具
sudo apt-get install ua5.1 libtool automake autoconf autopoint make gettext pkg-config git subversion cmake cvs zip p7zip-full nsis bzip2
3.下源码
git clone git://git.videolan.org/vlc.git vlc
4.准备第三方库
cd vlc
mkdir -p contrib/win32
cd contrib/win32
../bootstrap --host=i686-w64-mingw32
make prebuilt
会把依赖的 第三方库下载下来.
重新下载编译qt库
cd contrib/win32
make .qt4
5.Bootstrap
回到vlc目录下
cd -
./bootstrap
6.Configure
mkdir win32 && cd win32
../configure --host=i686-w64-mingw32
这里你能加上自己的配置
../configure --help
出现下面打印,配置成功
--------------------
version : 2.1.0-git
system : mingw32
architecture : i686 mmx sse sse2
optimizations : yes
vlc aliases : cvlc rvlc qvlc svlc
To build vlc and its plugins, type `make', or `./compile' if you like nice colors.
7.开编
make
开始编绎,漫长等待.
ok
打包
make package-win32-zip
安装之后 完美运行

8.总结
qt的版本太旧,编译时会有问题。所以需要从新下载编译qt。
vlc官方文档用的
i586-mingw32msvc
这里要换成 i686-w64-mingw32