Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compile with --enable-libfreetype #24

Open
rmutter opened this issue Oct 31, 2017 · 1 comment
Open

Compile with --enable-libfreetype #24

rmutter opened this issue Oct 31, 2017 · 1 comment

Comments

@rmutter
Copy link

rmutter commented Oct 31, 2017

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:
screen shot 2017-10-30 at 5 33 13 pm

Any ideas, help, or direction would be immensely appreciated. I've been banging my head on this for several days now 😢

@bolds07
Copy link

bolds07 commented Jun 2, 2018

did you manage to solve? i'm facing the exactly same problem

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants