- 下载
https://github.com/lemenkov/libyuv
官方提供的下载代码方法报错:
svn co http://src.chromium.org/svn/trunk/tools/depot_tools .
改成https还是出错。
- 解压
- 编译
make -f linux.mk
# V=1 -r libyuv BUILDTYPE=Release
或者
BUILD_LIBS=${HOME}/build_libs
mkdir out
cd out
cmake -DCMAKE_INSTALL_PREFIX=${BUILD_LIBS} -DCMAKE_BUILD_TYPE="Release" ..
cmake --build . --target install --config Release
# fix bug
if [ ! -f ${BUILD_LIBS}/include/libyuv/libyuv.h ]; then
cp ${BUILD_LIBS}/include/libyuv.h ${BUILD_LIBS}/include/libyuv
fi