videokit-ffmpeg-android
videokit-ffmpeg-android copied to clipboard
Compile with --enable-libfreetype
Hi @IljaKosynkin, I appreciate all of your work on this library!
I've tried to fork FFmpeg-Development-Kit and recompile the ffmpeg .so files with --enable-libfreetype
. I was able to successfully compile freetype2
for android first, but when running your configure
command for ffmpeg via build_all.sh
I keep getting: Error: freetype2 not found
.
I've ran through all possible suggestions on the internet about this error message and I cannot seem to figure it out. I need the drawtext
filter in order to complete the project I'm working on. Specifically it seems potentially that I'm either a) not compiling freetype2 correctly or b) ffmpeg cannot find where I compiled freetype2.
Have you attempted to enable any other options for ffmpeg that used another 3rd party library? See an example current configure
command I'm trying below:
./configure --prefix=$PREFIX \
$COMMON \
$CONFIGURATION \
--cross-prefix=$TOOLCHAIN/bin/arm-linux-androideabi- \
--target-os=linux \
--arch=arm \
--enable-cross-compile \
--sysroot=$SYSROOT \
--extra-cflags="-Os -marm $ADDI_CFLAGS" \
--extra-ldflags="$ADDI_LDFLAGS" \
--pkg-config=/usr/local/bin/pkg-config
also COMMON
is now:
export COMMON="--disable-static --disable-programs --disable-doc --enable-shared --enable-protocol=file --enable-pic --enable-small --enable-libfreetype"
Here is my example configure
command for building freetype:
./configure \
--with-pic \
--with-sysroot="${TOOLCHAIN}/sysroot" \
--host=arm-linux-androideabi \
--target=arm-linux-androideabi \
--enable-static \
--disable-shared \
--with-png=no \
--with-zlib=yes \
--prefix="$PREFIX"
And here is what my built freetype folder looks like:
Any ideas, help, or direction would be immensely appreciated. I've been banging my head on this for several days now 😢
did you manage to solve? i'm facing the exactly same problem