Changes between Version 94 and Version 95 of CompilationGuide/Centos
- Timestamp:
- Feb 21, 2021, 8:58:05 PM (5 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
CompilationGuide/Centos
v94 v95 6 6 7 7 You 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.10 8 11 9 This guide is designed to be non-intrusive and will create several directories in your home directory: … … 17 15 You can easily undo any of this as shown in [#RevertingChangesmadebythisGuide Reverting Changes Made by This Guide]. 18 16 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 19 22 ---- 20 23 … … 28 31 Get 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). 29 32 {{{ 30 # yum install autoconf automake bzip2 bzip2-devel cmake freetype-devel gcc gcc-c++ git libtool make mercurialpkgconfig zlib-devel33 # yum install autoconf automake bzip2 bzip2-devel cmake freetype-devel gcc gcc-c++ git libtool make pkgconfig zlib-devel 31 34 }}} 32 35 … … 51 54 {{{ 52 55 cd ~/ffmpeg_sources 53 curl -O -L https://www.nasm.us/pub/nasm/releasebuilds/2.14.02/nasm-2.1 4.02.tar.bz254 tar xjvf nasm-2.1 4.02.tar.bz255 cd nasm-2.1 4.0256 curl -O -L https://www.nasm.us/pub/nasm/releasebuilds/2.14.02/nasm-2.15.05.tar.bz2 57 tar xjvf nasm-2.15.05.tar.bz2 58 cd nasm-2.15.05 56 59 ./autogen.sh 57 60 ./configure --prefix="$HOME/ffmpeg_build" --bindir="$HOME/bin" … … 102 105 {{{ 103 106 cd ~/ffmpeg_sources 104 hg clone https://bitbucket.org/multicoreware/x265 105 cd ~/ffmpeg_sources/x265 /build/linux107 git clone https://bitbucket.org/multicoreware/x265_git 108 cd ~/ffmpeg_sources/x265_git/build/linux 106 109 cmake -G "Unix Makefiles" -DCMAKE_INSTALL_PREFIX="$HOME/ffmpeg_build" -DENABLE_SHARED:bool=off ../../source 107 110 make … … 229 232 === Update x265 === 230 233 {{{ 231 cd ~/ffmpeg_sources/x265 232 rm -rf ~/ffmpeg_sources/x265 /build/linux/*233 hg update 234 cd ~/ffmpeg_sources/x265 /build/linux234 cd ~/ffmpeg_sources/x265_git 235 rm -rf ~/ffmpeg_sources/x265_git/build/linux/* 236 git pull 237 cd ~/ffmpeg_sources/x265_git/build/linux 235 238 }}} 236 239 Then run `cmake`, `make`, and `make install` as shown in the [#x265 Install x265] section. … … 264 267 {{{ 265 268 rm -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 mercurialzlib-devel269 # yum erase autoconf automake bzip2 bzip2-devel cmake freetype-devel gcc gcc-c++ git libtool zlib-devel 267 270 hash -r 268 271 }}}
