• 编译安装 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

  • 相关阅读:
    [资料]PHP中的__autoload
    [转]php 5.3新增的闭包语法介绍function() use() {}
    [资料]PHP中的ReflectionClass
    [资料]PHP中的命名空间
    Mysql Event
    PHP转换成对像
    [转]Win7自带便签怎么恢复内容
    [转]Windows7便笺妙用
    [转]ASP.NET下MVC1.0>2.0>3.0>4.0
    PHP类动态属性问题
  • 原文地址:https://www.cnblogs.com/nanqiang/p/11495649.html
Copyright © 2020-2023  润新知