FFMPEG Compiled Libraries And iOS

2019-06-10 13:53发布

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.

2条回答
Lonely孤独者°
2楼-- · 2019-06-10 14:11

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

查看更多
Melony?
3楼-- · 2019-06-10 14:18

The correct syntax is:

#import <libavcodec/avcodec.h>

instead of #include

查看更多
登录 后发表回答