forked from gpac/gpac
-
Notifications
You must be signed in to change notification settings - Fork 0
GPAC Build Guide for OSX
Aurelien David edited this page Apr 4, 2019
·
1 revision
Since the OSX build is essentially the same as the Linux build, this doc will be succinct. Please refer to the Linux build guide for further details.
Same as Linux:
git clone https://github.com/gpac/gpac gpac_public
cd gpac_public
./configure --static-mp4box
make
sudo make install
-
Install Homebrew
-
Install tools
$ brew install cmake scons coreutils gettext yasm git wget pkg-config
- Install dependencies
$ brew install freetype jpeg libpng openjpeg mad faad2 libogg libvorbis theora a52dec ffmpeg x264 aom xvid [email protected] sdl2
git clone https://github.com/gpac/gpac gpac_public
git clone https://github.com/gpac/deps_unix
cd deps_unix
git submodule update --init --recursive --force --checkout
deps_unix$ ./build_all.sh osx
If all went well, you should see something like this in the main repo:
mojave:deps_unix adavid$ ll ../gpac_public/extra_lib/lib/gcc/
total 42784
-rw-r--r-- 1 adavid staff 2.9M Apr 2 14:43 libNeptune.a
-rw-r--r-- 1 adavid staff 890K Apr 2 15:47 libOpenSVCDec.a
-rw-r--r-- 1 adavid staff 4.1M Apr 2 14:43 libPlatinum.a
-rw-r--r-- 1 adavid staff 383K Apr 2 14:43 libPltMediaConnect.a
-rw-r--r-- 1 adavid staff 530K Apr 2 14:43 libPltMediaRenderer.a
-rw-r--r-- 1 adavid staff 1.5M Apr 2 14:43 libPltMediaServer.a
-rw-r--r-- 1 adavid staff 192K Apr 2 14:43 libZlib.a
-rw-r--r-- 1 adavid staff 259K Apr 2 14:43 libaxTLS.a
-rw-r--r-- 1 adavid staff 3.3M Apr 2 15:15 libjs.a
-rw-r--r-- 1 adavid staff 4.3M Apr 2 15:50 libopenhevc.a
-rw-r--r-- 1 adavid staff 166K Apr 2 15:50 libopenjpeg.a
cd ../gpac_public
./configure --extra-cflags=-Wno-deprecated
make
sudo make install
To make an installable package, use make dmg
.
Building
Windows
Linux
OSX
iOS
Android
Docker
Old Build Docs
Testing
TODO
Developing
Basic Application using GPAC
MP4 demuxer examples
GPAC log system