vlc编译

1.准备环境

apt-get install gcc-mingw32 mingw32-binutils lua5.1 libtoolautomakeautoconfautopoint make gettextpkg-configgit subversion zip p7zip-full nsis

2.下载代码和第三方库

直接从http://www.videolan.org/vlc/download-sources.html下载2.01的代码,用git下载的话最新的测试版编译会有些问题

tarxvf vlc-2.0.1.tar.xz

cd vlc-2.0.1/

mkdir -p contrib/win32

cdcontrib/win32

../bootstrap --host=i586-mingw32msvc

make prebuilt

 

3.配置环境

cd vlc-2.0.1/

./bootstrap

mkdir win32 && cd win32

../extras/package/win32/configure.sh --host=i586-mingw32msvc

make

 

4.如果要发布的话

Command Description
make package-win-common //Creates a subdirectory named vlc-x.x.x with all the binaries. You can run VLC directly from this directory.
make package-win-strip //(might be package-win32-strip) Same as above but will create 'stripped' binaries (that is, smallest size, unusable with a debugger).
make package-win32-7zip //Same as above but will package the directory in a 7z file.
make package-win32-zip //Same as above but will package the directory in a zip file.
make package-win32 //Same as above but will also create an auto-installer package. You must have NSIS installed in its default location for this to work.

5.调试

http://wiki.videolan.org/Debug

http://wiki.videolan.org/Tutorial_for_gdb_debug_under_Win32

posted @ 2012-06-16 21:56  jinghao666  阅读(586)  评论(0编辑  收藏  举报