编译指南:https://github.com/gpac/gpac/wiki/GPAC-Build-Guide-for-Android
一、错误汇总
1、Build deps时
ERROR: aom >= 0.1.0 not found using pkg-config
原因:make 、cmke、yasm、pkg-config没装,装完之后重新build
https://github.com/gpac/gpac/issues/1688
2、build GPAC时报ngghttp2错误
找到build的说明文档readme
这是nghttp2的lib库找不到,追溯到build lib命令,下面这句命令为生成所有的lib库,脚本中调用了build_nghttp2.sh,但是单独运行它时发现autoreconf命令找不到,于是装autoconf
二、解决方案汇总
先安装如下包和依赖,然后按官方文档编译
sudo apt install build-essential make cmake
sudo apt install yasm
sudo apt install pkg-config
sudo apt-get install autoconf automake libtool