Ubuntu14.04 32 编译VLC2.2.1 错误


主要是在linux虚拟机操作. 文件传输使用. xftp

主要按照文章http://higoge.github.io/2015/07/17/sm02/index.html 

http://higoge.github.io/2015/07/16/sm01/index.html步骤;配置环境.


环境搭建库: vlc-contrib-i686-w64-mingw32-20150630.tar.bz2

下载速度非常慢建议复制地址ftp://ftp.videolan.org/pub/videolan/contrib/i686-w64-mingw32/vlc-contrib-i686-w64-mingw32-20150630.tar.bz2 到迅雷下载.

我的操作是简单的拷贝到/home/w/vlc-2.2.1/contrib目录下改名为

vlc-contrib-i686-w64-mingw32-latest.tar

然后运行 make prebuilt.这样可以省去下载 第三方库的时间,非常慢.


同时也运行这个命令.

  1. sudo apt-get build-dep vlc  

发一下我编译遇到错误:和解决.

1. cd ../i686-w64-mingw32 && ../../contrib/src/change_prefix.sh
/bin/sh: 1: ../../contrib/src/change_prefix.sh: Permission denied
make: *** [prebuilt] Error 126

cd ../i686-w64-mingw32 
sudo bash  ../../contrib/src/change_prefix.sh

2. configure: error: LibVLC requires mingw-runtime version 3.15 or higher, or mingw-w64 version 3.0 or higher!
(ubuntu14.04版本没有这个错误, 12.0 会有这个错误)

3 .configure: error: Library dvdread > 4.9.0 needed for dvdread was not found
Library libgoom2 needed for goom was not found

bash ../extras/package/win32/configure.sh --host=i686-w64-mingw32 --disable-dvdread --disable-goom

4. fatal error: dpapi.h: No such file or directory
/usr/share/mingw-w64/include (搜索系统文件 找到在这个目录. 从这个文件夹下拷贝到)    /home/w/vlc-2.2.1/contrib/i686-w64-mingw32/include

5./home/jb/vlc-2.2/contrib/mingw/x265/source/common/param.cpp:775: undefined reference to `strtok_r'
bash ../extras/package/win32/configure.sh --host=i686-w64-mingw32 --disable-dvdread --disable-goom --disable-dvdread  --disable-taglib --disable-x265 --disable-gnutls (关闭掉x265)

6. /bin/bash: ../extras/package/win32/../../../make-alias: Permission denied
(此时只剩打包)
打包失败. 
 手动拷贝 /home/w/vlc-2.2.1/win32/_win32/lib/vlc/plugins到/home/w/vlc-2.2.1/win32/bin目录下.再讲bin拷贝的window,
直接运行成功.音视频正常.





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

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值