kxmovie
kxmovie copied to clipboard
xcode7.1, libavformat/avformat.h file not found
include "libavformat/avformat.h"
xcode7.1, libavformat/avformat.h file not found
I am also facing this issue. Can anyone have solution?
My issue is similar: Compiling KxMovieExample causes "Implicit declaration of function 'avpicture_deinterlace' is invalid in C99'", although I already set the 'Header Search Paths' correctly and libavcodec/avcodec.h can be found by Xcode. So strange!
I have the same problem.
看提问题的貌似都是国人 我就直接用汉语回答了啊。。去下载所缺失的静态库 和 头文件 添加到项目中(谷歌下,会让你下载2个文件夹:一个是include 里面全是头文件 ,一个是 lib 里面全是静态库),然后选择target 找到Header Search Paths (加头文件路径)和 Library Search Paths(加静态库路径)
@TigerWf 你好,请问可以提供一个编译通过的demo吗?
最重要的是编译问题
-- Fyns Sent with Airmail
在 December 23, 2015 6:11:38 PM, Tiger_WF ([email protected]) 写到:
看提问题的貌似都是国人 我就直接用汉语回答了啊。。去下载所缺失的静态库 和 头文件 添加到项目中(谷歌下,会让你下载2个文件夹:一个是include 里面全是头文件 ,一个是 lib 里面全是静态库),然后选择target 找到Header Search Paths (加头文件路径)和 Library Search Paths(加静态库路径)
— Reply to this email directly or view it on GitHub.
Are Guys above all kidding me ?
git clone [email protected]:kolyvan/kxmovie.git
cd kxmovie
git submodule update --init
rake
我发现现在 更新Xcode7.3之后的 kxmovie ,出现了 “ Implicit declaration of function 'avpicture_deinterlace' is invalid in C99 ”,我的文件路径是没有问题的,但是还是解决不了这个问题; 同时这个问题是模拟器出现的,假如要是换成真机的话会出现下面的问题: "Undefined symbols for architecture armv7: "_avpicture_deinterlace", referenced from: -[KxMovieDecoder decodeFrames:] in KxMovieDecoder.o ld: symbol(s) not found for architecture armv7 clang: error: linker command failed with exit code 1 (use -v to see invocation)" 请问有人遇到过这种问题吗?
@XiangyangLi1314 我和你的情况完全一样,急啊。
@XiangyangLi1314 FFmpeg静态库是我根据网上的办法在终端里做的,lib 和 include共141.2MB,不知道问题在哪,之前有一套别人的静态库,只有65.1MB,模拟器没问题,真机链接有错,我怀疑是那个静态库集成没有arm指令集,结果自己做的,提示C99什么错误,模拟器也运行不了
@XiangyangLi1314 just comment out the below lines of code: avpicture_deinterlace((AVPicture_)videoFrame, (AVPicture)_videoFrame, _videoCodecCtx->pix_fmt, _videoCodecCtx->width, _videoCodecCtx->height);
http://www.jianshu.com/p/1f06b27b3ac0