[普通]vlc编译

作者(passion) 阅读(1296次) 评论(0) 分类( 软件)

 

Tools

Install the autotools suite:

 pacman -S git subversion cvs automake autoconf libtool m4 make gettext pkg-config mingw-w64-i686-lua findutils  mingw-w64-i686-headers yasm patch

gcc

Download gcc from: mingw-w64.

Unzip it to C:\MSys2\

Restart

Exit MSys2, run autorebase.bat and re-run MSys2 from mingw32_shell.bat

Check GCC

Run

gcc -v

And check that it says

Thread model: win32
gcc version 4.9.2 (i686-win32-sjlj-rev0, Built by MinGW-W64 project)

Get VLC sources

Git

YOU MUST keep the native line-endings of the repo.

git config core.autocrlf=false

Clone the git repo

git clone git://git.videolan.org/vlc.git

Nota Bene: ensure your Windows user name does not contain spaces so that the cloning folder of VLC will not not have spaces in it.

Get precompiled 3rd party libraries

cd vlc/contrib
mkdir win32 && cd win32
../bootstrap --build=i686-w64-mingw32
make prebuilt

Note: check that all is well with moc -v

Build VLC

Bootstrap

In VLC root folder, do:

./bootstrap

Configure

mkdir win32
cd win32
sh ../extras/package/win32/configure.sh --host=i686-w64-mingw32 --disable-nls

Note: If you want any custom options, like "--disable-lua" or anything of that nature, you can append them.

Make (compile)

make -j4

Note: If your <username> starts with the "u" or "x" character, change C:\MSys\1.0\home\<username>\config.h and double all backslashes in VLC_COMPILED_BY constant.

Create packages

Run VLC

Once the compilation is done, build self-contained VLC packages with one of the following "make" commands:

make package-win-common

This will create a subdirectory named vlc-x.x.x with all the binaries with debugging symbols. You can run ./vlc.exe from there.

Create proper packages

make package-win32-zip

(Same as above but will package the directory in a zip file).

make package-win32-exe

(Same as above but will also create an auto-installer package. You will need to have NSIS installed in its default location for this to work).

Troubleshooting

See Win32CompileMSYSTroubleShooting.

Acknowledgements

This howto was re-created by Jean-Baptiste Kempf and updated in June 2009, September 2009, December 2009 and March 2010.

It was updated in June 2010 by Vicne with the help of J-b, gnosygnu and MichaelMc

It was updated in July 2012 by gnosygnu. Note that there are several new notes in Win32CompileMSYSTroubleShooting. These reflect problems that were encountered on gnosygnu's setup (Windows XP SP3). Refer to this forum thread for more information.

This howto was re-re-created by Jean-Baptiste Kempf in September 2012 and updated until 2015, with MSys2

See also







sh ../extras/package/win32/configure.sh --host=i686-w64-mingw32 --enable-update-check --disable-faad --disable-dvdread --enable-flac --enable-theora --disable-avcodec --disable-swscale --disable-merge-ffmpeg --enable-dca --enable-libass --enable-schroedinger --enable-goom --enable-caca --disable-qt --disable-skins2 --enable-sse --enable-mmx --enable-libcddb --enable-zvbi --disable-telx --disable-lua --disable-a52 -disable-chromecast


« 上一篇:wifi共享上网(至尊版wifi)
« 下一篇:NSIS 打包脚本基础
在这里写下您精彩的评论
  • 微信

  • QQ

  • 支付宝

返回首页
返回首页 img
返回顶部~
返回顶部 img