FFMPEG Compiled Libraries And iOS

2019-06-10 13:56发布

问题:

I have copied compiled FFMPEG libraries from a test app into my xcode-project but inspite of adding them into my project i am unable to use them,

#include <libavcodec/avcodec.h>

givers error even all the complied libraries (libavcodec.a, libavutil.a, libavformat.a, libavdevice.a> all are specified in link libraries as required framework.

回答1:

when you say you copied libs into your project some questions come up.

(1) where did you copy the libs for, are they (armv6, armv7. i386) or fat universal. (2) did you add the libs in Xcode (3) where are the includes for the libs, is the search path for them correctly set in Xcode



回答2:

The correct syntax is:

#import <libavcodec/avcodec.h>

instead of #include