avlib java_fatal error: libavutil/avconfig.h: No such file...
根据这位仁兄的记录,可以在android程序里调用ffmpeg的avcodec_version()函数;
下载了最新版的ffmpeg源码(2.4.1),在cygwin里用NDK编译时可能会报错,报错如下;
your_name@AP-CHN-LP140129 /cygdrive/c/Workspace_my/TestApp
$ ndk-build
Android NDK: WARNING:jni/Android.mk:Prompt: non-system libraries in linker flags: -lffmpeg
Android NDK: This is likely to result in incorrect builds. Try using LOCAL_STATIC_LIBRARIES
Android NDK: or LOCAL_SHARED_LIBRARIES instead to list the library dependencies of the
Android NDK: current module
[armeabi] Compile thumb : Prompt <= Prompt.c
In file included from jni/ffmpeg/libavutil/avutil.h:289:0,
from jni/ffmpeg/libavutil/samplefmt.h:24,
from jni/ffmpeg/libavcodec/avcodec.h:31,
from jni/Prompt.c:6:
jni/ffmpeg/libavutil/common.h:44:32: fatal error: libavutil/avconfig.h: No such file or directory
#include "libavutil/avconfig.h"
^
compilation terminated.
/cygdrive/c/Software/android/android-ndk-r10b/build/core/build-binary.mk:447: recipe for target 'obj/local/armeabi/objs/Prompt/Prompt.o' failed
make: *** [obj/local/armeabi/objs/Prompt/Prompt.o] Error 1
报错跟cygwin没有关系,其实就是在源码libavutil目录里找不到文件avconfig.h; 查看源码后的确没有...囧TT~
编辑一个avconfig.h放到libavutil目录里就解决了报错问题;avconfig.h内容如下:
/* Generated by ffconf */
#ifndef AVUTIL_AVCONFIG_H
#define AVUTIL_AVCONFIG_H
#define AV_HAVE_BIGENDIAN 0
#define AV_HAVE_FAST_UNALIGNED 0
#endif /* AVUTIL_AVCONFIG_H */
编译完成后,运行,OK。
avlib java_fatal error: libavutil/avconfig.h: No such file...相关推荐
- 报错解决:fatal error: json/json.h: No such file or directory
晚上在做编译原理作业的时候遇到了报错: ASTNodes.h:6:23: fatal error: json/json.h: No such file or directory#include < ...
- linux 内核模块 编译错误 include/linux/mmzone.h:18:26: fatal error: linux/bounds.h: No such file or director
解决方案:内核编译后 不要执行make clean 出现的问题:编译的时候提示缺少头文件 mmzone.h ....bounds.h...等 include/linux/mmzone.h:18:26: ...
- linux 内核编译 错误 fatal error: linux/compiler-gcc6.h: No such file or directory
在交叉编译i.MX6UL的Kernel代码时出现这个错误 CHK include/config/kernel.release Using .. as source for kernel GEN . ...
- 在Jetson Xavier NX上安装torchvision编译报错:fatal error: libavcodec/avcodec.h: No such file or directory
文章目录: 1 问题原因说明 2 解决方法 1 问题原因说明 1.尝试安装torchvision 在Jetson NX设备上安装torch的版本是1.6.0版本,对应安装torchvision版本应该 ...
- 【错误记录】编译 Linux 内核报错 ( fatal error: openssl/opensslv.h: No such file or directory )
文章目录 一.报错信息 二.解决方案 一.报错信息 编译 Linux 内核 , 执行 sudo make 命令 , 开始正式编译 Linux 内核 , 报如下错误 : root@ubuntu:~/ke ...
- 【错误记录】编译 ijkplayer 报错 (fatal error: ijksoundtouch/ijksoundtouch_wrap.h: No such file or directory )
文章目录 一.报错信息 二.解决方案 参考 https://github.com/bilibili/ijkplayer 项目的编译过程 ; 一.报错信息 在编译完 ffmpeg 之后 , 执行 ./c ...
- BRCM5.02编译五: fatal error: uuid/uuid.h: No such file or directory compilation terminated
现象: Checking automake version: 1.13.4 Checking autoconf version: 2.69 Checking libtoolize version: 2 ...
- 解决Ubuntu16.04 fatal error: json/json.h: No such file or directory
参考博客 错误产生 安装json-c库之后,根据GitHub上面的readme文件链接到json-c库时出现以下错误: SDMBNJson.h:9:23: fatal error: json/json ...
- error: uuid/uuid.h: No such file or directory
./configure 后,出现别的错误:fatal error: uuid/uuid.h: No such file or directory 这是因为没有uuid库和头文件,需要安装e2fspro ...
最新文章
- c#启动mysql数据库服务器_C#启动停止SQL数据库服务
- 执行umount 的时候却提示:device is busy 的处理方法
- NOI题库 python题解-2022.01.07整理(1.1-1.3)
- maven中的module及聚合项目
- 一念逍遥服务器维护,一念逍遥开服攻略 新手开荒技巧
- 使用ERStudio创建数据表与ER图
- MVC过滤器详解 面向切面编程(AOP)
- Unity3d Vector3
- C++输出九九乘法表
- python人口普查数据数据分析_利用人口普查的收入数据来选一个好学校!
- 想不想修真鸿蒙源液哪里买,想不想修真悟道茶在哪买
- C#实现手机发送验证码
- 美图手机怎么投屏到电脑
- react(let命令)
- UDP(用户数据报协议)
- [51nod1326]遥远的旅途
- 数据结构——二叉搜索树
- axios 超级小白使用模板
- 20180903有关复数共轭的理解
- Vue(3)之 过滤器
热门文章
- Android模拟器启动3个g,android,模拟器_android 模拟器用3.18的内核无法启动,一直黑屏。,android,模拟器,内核 - phpStudy...
- ios framework 调用第三方 framework_Python基础:标准库和常用的第三方库
- C语言学习及应用笔记之一:C运算符优先级及使用问题
- WinSock I/O 模型 -- OVERLAPPED I/O 模型
- 讲讲我对比特币和区块链的认知,挖矿不难,挖到难
- CSDN 统一标签设计 征求反馈
- 打开黑色_垃圾桶里的黑色塑料袋,打开一看,倒吸一口气!
- <input type=“text“ name=““ id=““/>中的name和id有什么区别?
- burpsuite小米手机抓包_使用burpsuite实现Android APP的HTTPS抓包
- 公交查询系统 c语言,城市公交查询系统的设计任务书