From a80959cc10ca0deba49cb2ddf211041849ab710f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A4=8F=E6=A5=9A?= <771730766@qq.com> Date: Thu, 28 Mar 2019 15:08:25 +0800 Subject: [PATCH] Update README.md --- README.md | 25 +++++++++++++++++++++++-- 1 file changed, 23 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 622ff284..0db281b0 100644 --- a/README.md +++ b/README.md @@ -128,8 +128,29 @@ - 编译 ``` - cd ZLMediaKit - ./build_for_linux.sh + //如果是centos6.x,需要先安装较新版本的gcc以及cmake,然后打开脚本build_for_linux.sh手动编译 + //如果是ubuntu这样的比较新的系统版本可以直接操作第4步 + + 1、安装GCC5.2(如果gcc版本高于4.7可以跳过此步骤) + sudo yum install centos-release-scl -y + sudo yum install devtoolset-4-toolchain -y + scl enable devtoolset-4 bash + + 2、安装cmake + cd third/ + #需要安装新版本cmake,当然你也可以通过yum或者apt-get方式安装(前提是版本够新) + tar -xvf cmake-3.10.0-rc4.tar.gz + cd cmake-3.10.0-rc4 + ./configure + make -j4 + sudo make install + + 3、切换高版本gcc + scl enable devtoolset-4 bash + + 4、编译 + cd ZLMediaKit + ./build_for_linux.sh ``` ## 编译(macOS)