Ubuntu 下编译 VLC-Win32
2012-12-01 13:35
435 查看
在Ubuntu下编译可以在Windows(Win32)中运行的VLC
以下所有内容来自于VLC wiki中的Win32Compile文档
推荐在Ubuntu中进行交叉编译(Windows下可以在虚拟机中安装Ubuntu),在Windows下本地编译比较麻烦,而且容易出错,调试也不方便。
Each build method requires its own toolchain:
Debian/Ubuntu users can
安装交叉编译工具链
lua5.1
all autotools: libtool, automake, autoconf, gnu make, gettext
pkg-config
git
svn, cmake, cvs if you want to rebuild contribs
zip, 7zip, nsis.
需要安装的其它工具
取得最新VLC源代码
获取第三方的库(存放于VLC目录下contrib/win32目录中)
上一步骤完成后返回VLC目录
Create a subfolder:
Use the standard configuration:
$ ../extras/package/win32/configure.sh --host=i586-mingw32msvc
Once configured, to build VLC, just run:
Once the compilation is done, you can build self-contained VLC packages with the following
Well done—you're ready to use VLC!
-------------------------------------------------------------
在编译的过程中可能遇到问题:
1 @DLOPEN_LDFLAGS@:No such file or directory
go to win32/modules/access
vim Makefile
remove @DLOPEN_LDFLAGS@
2 if run "make package-win32" , 7z not found
sudo apt-get install unrar p7zip-full cabextract
3 vlc-2.0.0 problem: bootstrap must be run in a subdirectory
cp win32/src/src/*.* win32/src/
以下所有内容来自于VLC wiki中的Win32Compile文档
Building Methods
Cross-compile with Mingw on Linux | This page | Preferred method (uses cross compilation). On Windows, you should do it in a virtual machine. |
Obtaining the toolchain
Each build method requires its own toolchain:Debian/Ubuntu users can
apt-get install gcc-mingw32 mingw32-binutils.
安装交叉编译工具链
lua5.1
all autotools: libtool, automake, autoconf, gnu make, gettext
pkg-config
git
svn, cmake, cvs if you want to rebuild contribs
zip, 7zip, nsis.
需要安装的其它工具
Get the source code
$ git clone git://git.videolan.org/vlc.git
取得最新VLC源代码
Prepare 3rd party libraries
$ cd vlc
$ mkdir -p contrib/win32 $ cd contrib/win32 $ ../bootstrap --host=i586-mingw32msvc $ make prebuilt
获取第三方的库(存放于VLC目录下contrib/win32目录中)
$ cd -
上一步骤完成后返回VLC目录
Bootstrap
$ ./bootstrap
Configure
Create a subfolder:$ mkdir win32 && cd win32
Use the standard configuration:
$ ../extras/package/win32/configure.sh --host=i586-mingw32msvc
Building VLC
Once configured, to build VLC, just run:$ make
Packaging VLC
Once the compilation is done, you can build self-contained VLC packages with the following makerules:
Command | Description |
---|---|
make package-win-common | Creates a subdirectory named vlc-x.x.xwith 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. |
-------------------------------------------------------------
在编译的过程中可能遇到问题:
1 @DLOPEN_LDFLAGS@:No such file or directory
go to win32/modules/access
vim Makefile
remove @DLOPEN_LDFLAGS@
2 if run "make package-win32" , 7z not found
sudo apt-get install unrar p7zip-full cabextract
3 vlc-2.0.0 problem: bootstrap must be run in a subdirectory
cp win32/src/src/*.* win32/src/
相关文章推荐
- ubuntu14.04交叉编译vlc2.1.5源码,编译出在win32下运行的程序
- Ubuntu下交叉编译 win32 vlc-2.0.5
- Ubuntu 下编译 VLC-Win32
- Ubuntu下交叉编译 win32 vlc-2.1.0-git
- ubuntu13.10上交叉编译win32运行的vlc2.0.3总结
- ubuntu14.04交叉编译vlc2.1.5源码,编译出在win32下运行的程序
- ubuntu14.04交叉编译vlc2.1.5源码,编译出在win32下运行的程序
- ubuntu14.04交叉编译vlc2.1.5源码,编译出在win32下运行的程序
- Ubuntu下编译vlc for android
- vlc-1.0.5在ubuntu上的编译(二)
- Ubuntu 14.04 编译vlc-android问题
- ubuntu 12.04编译vlc详细过程
- vlc 2.2.6 ubuntu下交叉编译
- ubuntu下编译android vlc出现:possibly undefined macro: AC_PROG_LIBTOOL please use m4_pattern_allow
- ubuntu 编译vlc源码中自带的Qtplayer编译问题
- Fedora 17下交叉编译vlc-2.0.6-win32小记
- Ubuntu下编译VLC2.0.1
- vlc-1.0.5在ubuntu上的编译(二)
- Ubuntu14.04环境编译vlc源码for安卓Android系统
- ubuntu下编译vlc-android(0.0.5版本)