VLC-2.2.1编译-ubuntu15环境下

1.  源码:vlc-2.2.1.tar.xz
     库: vlc-contrib-i686-w64-mingw32-20150630.tar.bz2
     Linux:Ubuntu Desktop 15.04

2. 安装库

$ sudo apt-get install -y gcc-mingw-w64-i686 g++-mingw-w64-i686 mingw-w64-tools
$ sudo apt-get install -y lua5.2 libtool automake autoconf autopoint make gettext
$ sudo apt-get install -y qt4-dev-tools qt5-default
$ sudo apt-get install -y git subversion cmake cvs wine-dev yasm
$ sudo apt-get install -y zip p7zip nsis bzip2

3. 执行脚本

#!/bin/sh

# This script enforces statically linking of libgcc, libstdc++-6, and libpthread,
# without needing to rebuild gcc and mingw-w64 from scratch.
# -static-libgcc -static-libstdc++ flags can not be used in a libtool build system,
# as libtool removes flags that it doesn't understand.

move() {
    [ -f $1 ] || return 1
    mkdir -p old/
    mv -v $* old/
    return 0
}

for x in i686 x86_64
do
    library_path_list=`$x-w64-mingw32-gcc -v /dev/null 2>&1 | grep ^LIBRARY_PATH|cut -d= -f2|sort|uniq`
    IFS=':'
    for i in $library_path_list
    do
        cd $i
        move libstdc++-6.dll libstdc++.dll.a libgcc_s.a libgcc_s_sjlj-1.dll && ln -s libgcc_eh.a libgcc_s.a
        move libpthread.dll.a libwinpthread.dll.a
        move libwinpthread-1.dll
        [ -d ../bin ] && cd ../bin && move libwinpthread-1.dll
    done
done


exit 0

4.  编译源码

../extras/package/win32/configure.sh --host=i686-w64-mingw32 --disable-lua --disable-dvdread --disable-goom --disable-dvdread  --disable-taglib --disable-x265 --disable-gnutls --disable-mkv

其他的和windows下编译基本一样。

https://higoge.github.io/2015/07/17/sm02/index.html

转载于:https://my.oschina.net/hanxiaodong/blog/1835527

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

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值