libavcodec/dxva2.h:40:5: error: unknown type name 'IDirectXVideoDecoder'
2024-10-12 04:08:42
gcc 4.9.2 编译 ffmpeg-git-1aeb88b 是出现如下错误 > FFmpeg fails to make with:
>
> CC libavcodec/dxva2.o
> In file included from libavcodec/dxva2_internal.h:26:0,
> from libavcodec/dxva2.c:23:
> libavcodec/dxva2.h:40:5: error: unknown type name 'IDirectXVideoDecoder'
> libavcodec/dxva2.h:45:5: error: unknown type name
> 'DXVA2_ConfigPictureDecode'
> libavcodec/dxva2.h:55:5: error: unknown type name 'LPDIRECT3DSURFACE9'
> In file included from libavcodec/dxva2.c:23:0:
> libavcodec/dxva2_internal.h:36:28: error: unknown type name
> 'DXVA2_DecodeBufferDesc'
> libavcodec/dxva2_internal.h:45:51: error: unknown type name
> 'DXVA2_DecodeBufferDesc'
> libavcodec/dxva2_internal.h:46:51: error: unknown type name
> 'DXVA2_DecodeBufferDesc'
> libavcodec/dxva2.c:46:28: error: unknown type name 'DXVA2_DecodeBufferDesc'
> libavcodec/dxva2.c:83:51: error: unknown type name 'DXVA2_DecodeBufferDesc'
> libavcodec/dxva2.c:84:51: error: unknown type name 'DXVA2_DecodeBufferDesc'
> make: *** [libavcodec/dxva2.o] Error 1 折腾了好久 用 gcc 4.5.2 编译就顺利通过.
解决方法
https://code.csdn.net/bygreen/ffmpeg_ffplay_vc2010/tree/master/include/dxva2api.h
文件拷贝到系统 include\dxva2api.h 目录下
最新文章
- 简单研究Android View绘制三 布局过程
- asp.net mvc SelectList 的selected 失效及解决方案
- BZOJ4443:[SCO2015]小凸玩矩阵
- C语言学习-01第一个C语言程序
- linux中mysql基本操作
- 二十四种设计模式:外观模式(Facade Pattern)
- [python 2.7.5] 实现配置文件的读写
- PHP 各种函数
- nginx+ffmpeg搭建rtmp转播rtsp流的flash服务器
- Linq101-Miscellaneous
- linux下归档、解压缩工具:tar命令
- multiprocessing模块
- 运用SqlSugar框架+Axios写的增删查案例
- [ABP] ASP.NET Zero 5.6.0 之 ASP.NET Zero Power Tools 上手日志
- spring boot -thymeleaf-日期转化
- dapper 多对多查询对象和对象列表
- generate failed: Cannot resolve classpath entry: mysql-connector-java-5.1.38.jar
- sqlite3在Linux下的安装和使用
- Python解释器种类以及特点 (经典概括, 便于理解和记忆)
- 基于jQuery的TreeGrid组件
热门文章
- MVC的URL路由规则
- Linux Kernel Synchronization &;&; Mutual Exclusion、Linux Kernel Lock Mechanism Summarize
- 项目总结—jQuery EasyUI-DataGrid动态加载表头
- Nginx 配置文件详解
- How to Write and Publish a Scientific Paper: 7th Edition(科技论文写作与发表教程)(11.04更新)
- Conjugate prior relationships
- mysql大表如何优化
- 转:Java NIO系列教程(一)Java NIO 概述
- Entity Framework 系统约定配置
- 抓包工具 wireshark