kewlbear / FFmpeg-iOS-build-script

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

missing libpostproc.a #35

Closed frakman1 closed 9 years ago

frakman1 commented 9 years ago

I am trying to build iFrameExtractor and it instructs the user to first build ffmpeg and use the resultant libraries in its project. I used your build script and although it built most of the libraries, it is missing libpostproc.a. How do I go about building that?

https://github.com/PinkyJie/iFrameExtractor

kewlbear commented 9 years ago

Looks like postproc requires GPL. So you should add --enable-gpl to CONFIGURE_FLAGS.

frakman1 commented 9 years ago

Do you mean on line 16 of build-ffmpeg.sh: from:

CONFIGURE_FLAGS="--enable-cross-compile --disable-debug --disable-programs \
                 --disable-doc --enable-pic"

to:

CONFIGURE_FLAGS="--enable-cross-compile --disable-debug --disable-programs \
                 --disable-doc --enable-pic --enable-gpl"

Also, will I need to make some sort of "make clean" or ./configure? Or do I just run build-ffmpeg.sh again with the above change?

kewlbear commented 9 years ago

You're right. I'm not sure about your second question. I usually try running my script again. If that doesn't work, do "rm -rf scratch thin" and try again.

frakman1 commented 9 years ago

Re-running the script worked. Thank you!