kewlbear / FFmpeg-iOS-build-script

Shell scripts to build FFmpeg for iOS and tvOS
3.03k stars 899 forks source link

How to build with libfreetype? #137

Closed qoakzmxncb closed 5 years ago

qoakzmxncb commented 5 years ago

I want to use the drawtext function on iOS, so I added --enable-libfreetype to CONFIGURE_FLAGS. But there is a freetype2 not found error, how can I solve it?

qoakzmxncb commented 5 years ago

and I have installed freetype by brew, but the error still appears my Xcode version is 10.1 . and OS X is 10.14

qoakzmxncb commented 5 years ago

I have download the FFMpeg source code with version 3.0.12, and use ./configure --enable-libfreetype make make install everything is done. So what's the problem with build-ffmpeg.sh ? @kewlbear

kewlbear commented 5 years ago

You need freetype compiles for iOS. What you installed using brew is for macOS.

qoakzmxncb commented 5 years ago

You need freetype compiles for iOS. What you installed using brew is for macOS.

Yes, I know that.But when I use build-ffmpeg.sh with --enable-libfreetype, always prompt an error freetype2 not found I do not know how to fix it...

kewlbear commented 5 years ago

You should download freetype source and build for iOS. Then edit this script to let configure know where to find freetype headers and library. Then run it.