• VLC 编译安装 [for android, linux, windows]


    仅作记录用:

    VLC for android 编译安装:

    参考:http://blog.chinaunix.net/uid-26611383-id-3678766.html

    clone from git://git.videolan.org/vlc-ports/android.git

    ./complile.sh 时:

    1. 下载protobuf 失败,改成百度单独下载,然后放到自建的http 服务器上,http://115.231.94.67/video/hls/protobuf-2.6.0.tar.bz2

    改写

    ./vlc/extras/tools/packages.mak 和 ./vlc/contrib/src/protobuf/rules.mak 两处:

    > # protobuf
    > PROTOBUF_VERSION := 2.6.0
    > #PROTOBUF_URL := https://protobuf.googlecode.com/svn/rc/protobuf-$(PROTOBUF_VERSION).tar.bz2
    > PROTOBUF_URL := http://115.231.94.67/video/hls/protobuf-$(PROTOBUF_VERSION).tar.bz2

    2. 下载openjpeg-1.5.0.tar.gz 失败,同样单独下载,放到http里,改写:

    ./vlc/contrib/src/protobuf/rules.mak 

    VLC 在Ubuntu 64位虚拟机上编译流程 for linux

    参考:https://wiki.videolan.org/UnixCompile/#Configuration

    终于一次顺利跑通,真是哭了。。整了一个礼拜了!

    VLC 在Ubuntu 64位虚拟机上编译64位windows 版本流程

    参考:https://wiki.videolan.org/Win32Compile/#Obtaining_the_toolchain

    参考:http://blog.csdn.net/yyingwei/article/details/17217733

    1.  环境准备: 【红色字体为运行命令】

    Mingw-w64

    • Ubuntu:apt-get
      install gcc-mingw-w64-x86-64 g++-mingw-w64-x86-64 mingw-w64-tools  【本人主机是x86-64的】

    Development tools

    You will also need:

    • lua (5.1 or 5.2)
    • all autotools: libtool, automake, autoconf, autopoint, make, gettext
    • pkg-config
    • qt4-dev-tools
    • git
    • subversion
    • cmake, cvs if you want to rebuild contribs
    • zip [for creating .zip package], p7zip [for .7z package], nsis [for .exe auto-installer], bzip2 [for 'make prebuild]

    So:apt-get install git  <--先装git,装好之后,可以另外一个终端,git 下面的vlc code. 因为git code 和下面其他工具下载安装需要很多时间。apt-get install lua5.1 libtool automake autoconf autopoint make gettext pkg-config subversion qt4-dev-tools cmake cvs zip

    Get VLC Source Code

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

    先试试这个,如果发现下载太慢,可以尝试换下面这个mirrors:

    $ git clone http://repo.or.cz/r/vlc.git vlc


    确定Host: 

    • i686-w64-mingw32 for Windows 32-bits, using the Mingw-w64 toolchain
    • x86_64-w64-mingw32 for Windows 64-bits, using the Mingw-w64 toolchain
    • i586-mingw32msvc for Windows 32-bits, using the Mingw32 toolchain



     

     $ mkdir -p contrib/win32
     $ cd contrib/win32
     $ ../bootstrap --host=x86_64-w64-mingw32
     $ make prebuilt
    后面配置flow 官网就可以了。
    最后Make 遇到x265 build 不过,--disable-x265;
    遇到mge build 不过,--disable-mge
    遇到sid build 不过,--disable-sid
    。。。。
     
    
     
    
    最后QT 也build 不过!那岂不是没有windows 界面了! 那还玩的下去? 直接放弃了。
  • 相关阅读:
    代码混淆不再愁:一篇掌握核心技巧
    【晶振专题】晶振学习笔记——ST AN2867应用手册 2
    01_前端css编写的三种方式
    Qt ARM+Linux平台调用一个库的时候,报错“Bus error”
    Windows编程dll基本知识点
    Kruskal 重构树
    史上最全 Zuul网关鉴权 范文
    JMeter的基本使用
    香港日本服务器好机推荐CN2三网直连高速又稳定
    Sql知识总结-库表视图的增删改查
  • 原文地址:https://blog.csdn.net/xxpr_ybgg/article/details/126941327