1.先安装zlib-1.2.5.tar.gz
yum -y install zlib*
2.安装freeglut
yum -y install freeglut
yum -y install freeglut-devel
3.安装gpac
wget http://downloads.sourceforge.net/gpac/gpac-0.4.5.tar.gz
wget http://downloads.sourceforge.net/gpac/gpac_extra_libs-0.4.5.tar.gz
tar zxvf gpac-0.4.5.tar.gz
tar zxvf gpac_extra_libs-0.4.5.tar.gz
cd gpac
cp -r ../gpac_extra_libs/* extra_lib/
chmod +x configure
./configure
make lib
make apps
make install
cp bin/gcc/libgpac.so /usr/lib
到./configure这步时出现以下错误
zlib not found on system or in local libs
看是不是没有装gcc
yum install gcc
测试
MP4Box -version