w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
How to build latest ffmpeg for android-ffmpeg project on github

I had the same problem when building ffmpeg for a desktop. In my case ffmpeg was looking for the freetype2 headers in /usr/include/freetype instead of /usr/include/freetype2.

This solution is ugly, but I created a symlink

sudo ln -s /usr/include/freetype2/ /usr/include/freetype

Then ./configure was succesfull.

You might be able to achieve the same by patching ffmpeg to replace all instances of

#include <freetype/config/ftheader.h>


#include <freetype2/config/ftheader.h>

It looks like this is just in libavfilter/vf_drawtext.c

Since you appear to be building for a different CPU you may need to modify the paths with the proper location for freetype2 for your architecture.

© Copyright 2018 w3hello.com Publishing Limited. All rights reserved.