Changes between Version 94 and Version 95 of CompilationGuide/Centos


Ignore:
Timestamp:
Feb 21, 2021, 8:58:05 PM (5 years ago)
Author:
llogan
Comment:

updated nasm version and x265 git url

Legend:

Unmodified
Added
Removed
Modified
  • CompilationGuide/Centos

    v94 v95  
    66
    77You may also refer to the [[GenericCompilationGuide|Generic Compilation Guide]] for additional information about compiling software.
    8 
    9 Recent [https://ffmpeg.org/download.html static builds] are also available for lazy people or those who are unable to compile. The static builds do not support non-free encoders.
    108
    119This guide is designed to be non-intrusive and will create several directories in your home directory:
     
    1715You can easily undo any of this as shown in [#RevertingChangesmadebythisGuide Reverting Changes Made by This Guide].
    1816
     17{{{
     18#!div style="border: 1px solid #c7e5c7; margin: 1em; background-color: #ddffdd;"
     19'''Tip:''' Recent already compiled [https://ffmpeg.org/download.html static builds] are also available if you are unable to compile or are impatient.
     20}}}
     21
    1922----
    2023
     
    2831Get the dependencies. These are required for compiling, but you can remove them when you are done if you prefer (except `make`; it should be installed by default and many things depend on it).
    2932{{{
    30 # yum install autoconf automake bzip2 bzip2-devel cmake freetype-devel gcc gcc-c++ git libtool make mercurial pkgconfig zlib-devel
     33# yum install autoconf automake bzip2 bzip2-devel cmake freetype-devel gcc gcc-c++ git libtool make pkgconfig zlib-devel
    3134}}}
    3235
     
    5154{{{
    5255cd ~/ffmpeg_sources
    53 curl -O -L https://www.nasm.us/pub/nasm/releasebuilds/2.14.02/nasm-2.14.02.tar.bz2
    54 tar xjvf nasm-2.14.02.tar.bz2
    55 cd nasm-2.14.02
     56curl -O -L https://www.nasm.us/pub/nasm/releasebuilds/2.14.02/nasm-2.15.05.tar.bz2
     57tar xjvf nasm-2.15.05.tar.bz2
     58cd nasm-2.15.05
    5659./autogen.sh
    5760./configure --prefix="$HOME/ffmpeg_build" --bindir="$HOME/bin"
     
    102105{{{
    103106cd ~/ffmpeg_sources
    104 hg clone https://bitbucket.org/multicoreware/x265
    105 cd ~/ffmpeg_sources/x265/build/linux
     107git clone https://bitbucket.org/multicoreware/x265_git
     108cd ~/ffmpeg_sources/x265_git/build/linux
    106109cmake -G "Unix Makefiles" -DCMAKE_INSTALL_PREFIX="$HOME/ffmpeg_build" -DENABLE_SHARED:bool=off ../../source
    107110make
     
    229232=== Update x265 ===
    230233{{{
    231 cd ~/ffmpeg_sources/x265
    232 rm -rf ~/ffmpeg_sources/x265/build/linux/*
    233 hg update
    234 cd ~/ffmpeg_sources/x265/build/linux
     234cd ~/ffmpeg_sources/x265_git
     235rm -rf ~/ffmpeg_sources/x265_git/build/linux/*
     236git pull
     237cd ~/ffmpeg_sources/x265_git/build/linux
    235238}}}
    236239Then run `cmake`, `make`, and `make install` as shown in the [#x265 Install x265] section.
     
    264267{{{
    265268rm -rf ~/ffmpeg_build ~/ffmpeg_sources ~/bin/{ffmpeg,ffprobe,lame,nasm,vsyasm,x264,yasm,ytasm}
    266 # yum erase autoconf automake bzip2 bzip2-devel cmake freetype-devel gcc gcc-c++ git libtool mercurial zlib-devel
     269# yum erase autoconf automake bzip2 bzip2-devel cmake freetype-devel gcc gcc-c++ git libtool zlib-devel
    267270hash -r
    268271}}}