• 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 界面了! 那还玩的下去? 直接放弃了。
  • 相关阅读:
    CentOS7安装GmSSL过程记录
    window系统 安装 nvm 详细步骤
    C++中memset函数与min_element(max_element)
    涨薪了!原来这才是性能优化的正确打开方式
    go Session的实现(一)
    华裔科学家Ashe教授对涉嫌造假的Nature论文的正面回应
    [论文笔记]Adapter turning
    Lustre和MARTE等建模语言的区别
    1004. 最大连续1的个数 III
    Linux网络编程- recvfrom() & sendto()
  • 原文地址:https://blog.csdn.net/xxpr_ybgg/article/details/126941327