yangjie10930 / EpMedia

Android上基于FFmpeg开发的视频处理框架,简单易用,体积小,帮助使用者快速实现视频处理功能。包含以下功能:剪辑,裁剪,旋转,镜像,合并,分离,变速,添加LOGO,添加滤镜,添加背景音乐,加速减速视频,倒放音视频。 The video processing framework based on FFmpeg developed on Android is simple, easy to use, and small in size, helping users quickly realize video processing functions. Contains the following functions: editing, cropping, rotating, mirroring, merging, separating, variable speed, adding LOGO, adding filters, adding background music, accelerating and decelerating video, rewinding audio and video.
MIT License
2.41k stars 535 forks source link

编译jni 报错 #199

Open jwc793318828 opened 5 years ago

jwc793318828 commented 5 years ago

ndk-build 各种错误 解决了部分 还提示 jni/cmdutils.c:55:10: fatal error: 'libavutil/ffversion.h' file not found

如果屏蔽这个的话 jni/cmdutils.c:144:1: warning: function declared 'noreturn' should not return [-Winvalid-noreturn] } ^ jni/cmdutils.c:216:18: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] while (child = av_opt_child_class_next(class, child))


jni/cmdutils.c:216:18: note: place parentheses around the assignment to silence this warning
    while (child = av_opt_child_class_next(class, child))
                 ^
           (                                            )
jni/cmdutils.c:216:18: note: use '==' to turn this assignment into an equality comparison
    while (child = av_opt_child_class_next(class, child))
                 ^
                 ==
jni/cmdutils.c:1117:39: error: expected ')'
    av_log(NULL, level, "%s version " FFMPEG_VERSION, program_name);
                                      ^
jni/cmdutils.c:1117:11: note: to match this '('
    av_log(NULL, level, "%s version " FFMPEG_VERSION, program_name);
          ^
jni/cmdutils.c:1683:22: warning: using the result of an assignment as a condition without parentheses [-Wparentheses]
    for (i = 0; name = av_get_known_color_name(i, &rgb); i++)
                ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
jni/cmdutils.c:1683:22: note: place parentheses around the assignment to silence this warning
    for (i = 0; name = av_get_known_color_name(i, &rgb); i++)
                     ^
                (                                      )
jni/cmdutils.c:1683:22: note: use '==' to turn this assignment into an equality comparison
    for (i = 0; name = av_get_known_color_name(i, &rgb); i++)
                     ^
                     ==
jni/cmdutils.c:2034:14: warning: using the result of an assignment as a condition without parentheses [-Wparentheses]
    while (t = av_dict_get(opts, "", t, AV_DICT_IGNORE_SUFFIX)) {
           ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
jni/cmdutils.c:2034:14: note: place parentheses around the assignment to silence this warning
    while (t = av_dict_get(opts, "", t, AV_DICT_IGNORE_SUFFIX)) {
             ^
           (                                                  )
jni/cmdutils.c:2034:14: note: use '==' to turn this assignment into an equality comparison
    while (t = av_dict_get(opts, "", t, AV_DICT_IGNORE_SUFFIX)) {
             ^
             ==

麻烦看下 谢谢
dongzhixuanyuan commented 5 years ago

该代码库的.c/.h文件无法通过编译。

jwc793318828 commented 5 years ago

所以我应该怎么做呢 

------------------ 原始邮件 ------------------ 发件人: "Magina"<notifications@github.com>; 发送时间: 2019年9月20日(星期五) 上午10:52 收件人: "yangjie10930/EpMedia"<EpMedia@noreply.github.com>; 抄送: "天使掉下的逗比"<793318828@qq.com>; "Author"<author@noreply.github.com>; 主题: Re: [yangjie10930/EpMedia] 编译jni 报错 (#199)

该代码库的.c/.h文件无法通过编译。

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.

dongzhixuanyuan commented 5 years ago

可以参考下Videokit这个库的编译设置

发自我的iPhone

------------------ 原始邮件 ------------------ 发件人: jwc793318828 <notifications@github.com> 发送时间: 2019年9月23日 10:14 收件人: yangjie10930/EpMedia <EpMedia@noreply.github.com> 抄送: Magina <735106520@qq.com>, Comment <comment@noreply.github.com> 主题: 回复:[yangjie10930/EpMedia] 编译jni 报错 (#199)

所以我应该怎么做呢&nbsp;

------------------&nbsp;原始邮件&nbsp;------------------ 发件人: "Magina"<notifications@github.com&gt;;
发送时间: 2019年9月20日(星期五) 上午10:52 收件人: "yangjie10930/EpMedia"<EpMedia@noreply.github.com&gt;;
抄送: "天使掉下的逗比"<793318828@qq.com&gt;; "Author"<author@noreply.github.com&gt;;
主题: Re: [yangjie10930/EpMedia] 编译jni 报错 (#199)

该代码库的.c/.h文件无法通过编译。

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread. — You are receiving this because you commented. Reply to this email directly, view it on GitHub, or mute the thread.

jwc793318828 commented 5 years ago

能给个链接吗。我搜没搜到 

------------------ 原始邮件 ------------------ 发件人: "Magina"<notifications@github.com>; 发送时间: 2019年9月24日(星期二) 晚上6:31 收件人: "yangjie10930/EpMedia"<EpMedia@noreply.github.com>; 抄送: "天使掉下的逗比"<793318828@qq.com>;"Author"<author@noreply.github.com>; 主题: Re: [yangjie10930/EpMedia] 编译jni 报错 (#199)

可以参考下Videokit这个库的编译设置

发自我的iPhone

------------------ 原始邮件 ------------------ 发件人: jwc793318828 <notifications@github.com&gt; 发送时间: 2019年9月23日 10:14 收件人: yangjie10930/EpMedia <EpMedia@noreply.github.com&gt; 抄送: Magina <735106520@qq.com&gt;, Comment <comment@noreply.github.com&gt; 主题: 回复:[yangjie10930/EpMedia] 编译jni 报错 (#199)

所以我应该怎么做呢&amp;nbsp;

------------------&amp;nbsp;原始邮件&amp;nbsp;------------------
发件人: "Magina"<notifications@github.com&amp;gt;;
发送时间: 2019年9月20日(星期五) 上午10:52
收件人: "yangjie10930/EpMedia"<EpMedia@noreply.github.com&amp;gt;;
抄送: "天使掉下的逗比"<793318828@qq.com&amp;gt;; "Author"<author@noreply.github.com&amp;gt;;
主题: Re: [yangjie10930/EpMedia] 编译jni 报错 (#199)

该代码库的.c/.h文件无法通过编译。


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.
— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or mute the thread. — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.