Hiển thị các bài đăng có nhãn OSX. Hiển thị tất cả bài đăng
Hiển thị các bài đăng có nhãn OSX. Hiển thị tất cả bài đăng

Thứ Hai, 22 tháng 6, 2015

Build FFMPEG in OSX


1.
Installing Autoconf, Automake, Libtool, Wget, Yasm:

 --- AutoConf --- 
curl -OL http://ftpmirror.gnu.org/autoconf/autoconf-2.69.tar.gz 
tar -xzf autoconf-2.69.tar.gz  
cd autoconf-2.69 
./configure && make && sudo make install 
 --- Automake ---
curl -OL http://ftpmirror.gnu.org/automake/automake-1.14.tar.gz 
tar -xzf automake-1.14.tar.gz 
cd automake-1.14 
./configure && make && sudo make install 
 --- LIBTOOL ---
curl -OL http://ftpmirror.gnu.org/libtool/libtool-2.4.2.tar.gz 
tar -xzf libtool-2.4.2.tar.gz 
cd libtool-2.4.2 
./configure && make && sudo make install
 --- WGET ---
 curl -O http://ftp.gnu.org/gnu/wget/wget-1.15.tar.gz  
tar -xzf wget-1.15.tar.gz  
cd wget-1.15
./configure --with-ssl=openssl && make && sudo make install
 --- YASM ---
curl -OL http://www.tortall.net/projects/yasm/releases/yasm-1.2.0.tar.gz 
tar xvzf yasm-1.2.0.tar.gz 
cd yasm-1.2.0 
./configure && make -j 4 && sudo make install
--- PKG-CONFIG && ANT ----

Install Macport before, link here: http://www.macports.org/install.php

+ PKG-CONFIG:
sudo port install pkgconfig 
export PATH=$PATH:/opt/local/bin

+ANT:
sudo port install apache-ant

--- Update NASM ---
Download Nasm 2.10.05 for mac here: http://www.nasm.us/pub/nasm/releasebuilds/2.10.05/macosx/
From where I downloaded the file
nasm-2.10.05-macosx.zip
Unzipping this file resulted in a directory named nasm-2.10.05 being created.

check current version: 
$ nasm -v
NASM version 0.98.40 (Apple Computer, Inc. build 11) compiled on Aug 4 2012

move to nasm-2.10.05 folder:
check version:
./nasm -v
NASM version 2.10.05 compiled on Sep 9 2012
I decided to put the downloaded nasm in a directory called prog/nasm inside my home directory. I moved it there using

mkdir -p ~/prog/nasm
mv * ~/prog/nasm
I then added the following changes

export PATH=~/prog/nasm:$PATH
to my setup script, where I also set up other environment variables. After having rerun the setup script I could use the downloaded nasm, after first having verified that it was found using

$ nasm -v
NASM version 2.10.05 compiled on Sep 9 2012
--- END ---