zoukankan      html  css  js  c++  java
  • 编译安装 openmcu

    1. install tools
    sudo apt-get install libtool autoconf flex bison automake pkg-config 

    2.yasm-1.3.0
    sed -i 's#) ytasm.*#)#' Makefile.in &&

    ./configure --prefix=/opt/openmcu &&
    make
    make install


    3.ffmpeg-2.8.3 

    ./configure --prefix=/opt/openmcu --enable-shared
    make
    make install

    4.x264-snapshot-20151204-2245
    ./configure --prefix=/opt/openmcu --enable-shared
    make
    make install

    5.libvpx-1.5.0
    ./configure --prefix=/opt/openmcu
    make
    make install

    6.openmcu-master ver4.01
    ./autogen.sh
    ./configure -prefix=/opt/openmcu --disable-openssl

    make

    make install

    报错1
    configure: error: avcodec headers not found! Install FFmpeg or Libav.

    解决方法:

    modify the configure file

    PRODUCT=OpenMCU-ru 改为 PRODUCT=
    PROG=openmcu-ru     改为 PROG=

    报错2

    /usr/bin/ld: cannot open output file ./obj/: Is a directory
    collect2: error: ld returned 1 exit status
    make[1]: *** [all] Error 1

    解决方法: 

    Modify the sub Makefile: openmcu-ru/Makefile
    PROG=    改为 PROG=openmcu-ru 

    7,我编译时找不到 libfreetype,用apt-get安装报错,然后是自己下载安装包freetype-2.10.0.tar.bz2,手动安装

    https://www.freetype.org/download.html

    修改环境变量

    vi ~/.bashrc
    #add /opt/openmcu/bin to PATH env.
    export PATH=$PATH:/opt/openmcu/bin

    8. test
    sudo ./openmcu-ru/obj/openmcu-ru -d &

    然后,可以在打开浏览器,输入你的HostIP:1420:

    参考:

    https://blog.csdn.net/ndhui/article/details/50190969

    https://blog.csdn.net/weixin_41501825/article/details/81043120

  • 相关阅读:
    git相关整理
    cookie、sessionStorage和localStorage
    AJAX学习笔记
    json web token
    加密算法
    单点登陆
    给手机网络添加手动代理
    oracle数据库索引
    类加载器
    类加载过程
  • 原文地址:https://www.cnblogs.com/nanqiang/p/11495649.html
Copyright © 2011-2022 走看看