Ubuntu下交叉编译 win32 vlc-2.1.0-git

12 篇文章 0 订阅
10 篇文章 0 订阅

操作系统:Ubuntu 10.04 (版本最好是10.04)

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.

推荐在Ubuntu中进行交叉编译(Windows下可以在虚拟机中安装Ubuntu),在Windows下本地编译比较麻烦,而且容易出错,调试也不方便。

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, autopoint, make, gettext

pkg-config

git

subversion

cmake, cvs if you want to rebuild contribs

zip [for creating .zip package], p7zip(p7zip-all) [for .7z package], nsis [for .exe auto-installer]

需要安装的其它工具

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

http://download.videolan.org/pub/videolan/contrib/i586-mingw32msvc/vlc-contrib-i586-mingw32msvc-20121216.tar.bz2

获取第三方的库(存放于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

configure.sh 中 --enable-mmx 改为 --disable-mmx

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 make rules:

CommandDescription
make package-win-commonCreates 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-7zipSame as above but will package the directory in a 7z file.
make package-win32-zipSame as above but will package the directory in a zip file.
make package-win32Same as above but will also create an auto-installer package. You must have NSIS installed in its default location for this to work.

今天是2012的最后一天,终于搞定了vlc的编译。vlc的编译成功要感谢的人很多。

2012年挺不顺的,希望2013年能好一点。


  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值