zoukankan      html  css  js  c++  java
  • libavcodec/dxva2.h:40:5: error: unknown type name 'IDirectXVideoDecoder'

    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
    文件拷贝到系统 includedxva2api.h 目录下
  • 相关阅读:
    mysql数据增删改查
    Python中的逻辑运算
    Python的格式化输出
    Python变量的命名规则
    解释型语言和编译型语言的比较?
    SQLAlchemy
    ansible
    算法
    数据分析
    scrapy之日志等级
  • 原文地址:https://www.cnblogs.com/nlsoft/p/4238563.html
Copyright © 2011-2022 走看看