ubuntu16.04编译安装GPAC

参考:http://blog.csdn.net/tianlong_hust/article/details/9273875

 

1.获取gpac的源代码

sudo apt-get install subversion
svn co svn://svn.code.sf.net/p/gpac/code/trunk/gpac gpac

2.安装gpac依赖的一些库比如zlib这些

sudo apt-get install make pkg-config g++ zlib1g-dev firefox-dev libfreetype6-dev libjpeg62-dev libpng12-dev libopenjpeg-dev libmad0-dev libfaad-dev libogg-dev libvorbis-dev libtheora-dev liba52-0.7.4-dev libavcodec-dev libavformat-dev libavutil-dev libswscale-dev libxv-dev x11proto-video-dev libgl1-mesa-dev x11proto-gl-dev linux-sound-base libxvidcore-dev libssl-dev libjack-dev libasound2-dev libpulse-dev libsdl1.2-dev dvb-apps libavcodec-extra-53 libavdevice-dev libmozjs185-dev

3.编译gpac

cd gpac
./configure
make
sudo make install

4.检测

如果安装成功的话 MP4Box -version

会出现如下:

long@ubuntu:~$ MP4Box -version
MP4Box - GPAC version 0.5.1-DEV-rev4656
GPAC Copyright (c) Telecom ParisTech 2000-2012
GPAC Configuration:
Features: GPAC_HAS_SSL GPAC_HAS_SPIDERMONKEY GPAC_HAS_JPEG GPAC_HAS_PNG

转载于:https://www.cnblogs.com/mingzhang/p/8483876.html

你可能感兴趣的:(ubuntu16.04编译安装GPAC)