[FFmpeg-user] FFMPEG build error due to MFX

Dennis mediastream at gmail.com
Fri Jul 24 23:15:12 CEST 2015


Hi all,

Having a problem building FFmpeg with QSV to run on Centos.
tried building mfx first, it demanded vaapi, which in turn needed dxorg,
and another 6-8 libs, got most through yum others built locally. Eventually
mfx configured and built without any errors.

FFmpeg v.2.7.2 with simple configure:  `PKG_CONFIG_PATH=/encoder/lib/pkgconfig
LDFLAGS=-L/encoder/lib CFLAGS=-I/encoder/include/ ./configure --prefix=/encoder
--enable-libmfx`

`make`
...



CC      libavcodec/qsv.o
In file included from /encoder/include/mfx/mfxsession.h:32,
                 from /encoder/include/mfx/mfxvideo.h:32,
                 from libavcodec/qsv.c:21:
/encoder/include/mfx/mfxcommon.h:81: warning: declaration does not declare
anything
/encoder/include/mfx/mfxcommon.h:101: warning: declaration does not declare
anything
/encoder/include/mfx/mfxcommon.h:103: warning: declaration does not declare
anything
/encoder/include/mfx/mfxcommon.h:127: warning: declaration does not declare
anything
/encoder/include/mfx/mfxcommon.h:129: warning: declaration does not declare
anything
In file included from /encoder/include/mfx/mfxvstructures.h:30,
                 from /encoder/include/mfx/mfxvideo.h:33,
                 from libavcodec/qsv.c:21:
/encoder/include/mfx/mfxstructures.h:51: warning: declaration does not
declare anything
/encoder/include/mfx/mfxstructures.h:54: warning: declaration does not
declare anything
/encoder/include/mfx/mfxstructures.h:55: warning: declaration does not
declare anything
/encoder/include/mfx/mfxstructures.h:79: warning: declaration does not
declare anything
/encoder/include/mfx/mfxstructures.h:83: warning: declaration does not
declare anything
/encoder/include/mfx/mfxstructures.h:84: warning: declaration does not
declare anything
/encoder/include/mfx/mfxstructures.h:169: warning: declaration does not
declare anything
/encoder/include/mfx/mfxstructures.h:181: warning: declaration does not
declare anything
/encoder/include/mfx/mfxstructures.h:188: warning: declaration does not
declare anything
/encoder/include/mfx/mfxstructures.h:198: warning: declaration does not
declare anything
/encoder/include/mfx/mfxstructures.h:204: warning: declaration does not
declare anything
/encoder/include/mfx/mfxstructures.h:252: warning: declaration does not
declare anything
/encoder/include/mfx/mfxstructures.h:258: warning: declaration does not
declare anything
/encoder/include/mfx/mfxstructures.h:263: warning: declaration does not
declare anything
/encoder/include/mfx/mfxstructures.h:268: warning: declaration does not
declare anything
/encoder/include/mfx/mfxstructures.h:275: warning: declaration does not
declare anything
/encoder/include/mfx/mfxstructures.h:282: warning: declaration does not
declare anything
/encoder/include/mfx/mfxstructures.h:288: warning: declaration does not
declare anything
/encoder/include/mfx/mfxstructures.h:289: warning: declaration does not
declare anything
/encoder/include/mfx/mfxstructures.h:306: warning: declaration does not
declare anything
/encoder/include/mfx/mfxstructures.h:714: warning: declaration does not
declare anything
/encoder/include/mfx/mfxstructures.h:718: warning: declaration does not
declare anything
/encoder/include/mfx/mfxstructures.h:719: warning: declaration does not
declare anything
/encoder/include/mfx/mfxstructures.h:1004: warning: declaration does not
declare anything
/encoder/include/mfx/mfxstructures.h:1008: warning: declaration does not
declare anything
/encoder/include/mfx/mfxstructures.h:1012: warning: declaration does not
declare anything
/encoder/include/mfx/mfxstructures.h:1146: warning: declaration does not
declare anything
/encoder/include/mfx/mfxstructures.h:1165: warning: declaration does not
declare anything
libavcodec/qsv.c: In function Б-?ff_qsv_init_internal_sessionБ-?:
libavcodec/qsv.c:83: warning: braces around scalar initializer
libavcodec/qsv.c:83: warning: (near initialization for Б-?ver.VersionБ-?)
libavcodec/qsv.c:83: warning: excess elements in scalar initializer
libavcodec/qsv.c:83: warning: (near initialization for Б-?ver.VersionБ-?)
CC      libavcodec/qsv_api.o
In file included from /encoder/include/mfx/mfxsession.h:32,
                 from /encoder/include/mfx/mfxvideo.h:32,
                 from libavcodec/qsv.h:24,
                 from libavcodec/qsv_api.c:28:
/encoder/include/mfx/mfxcommon.h:81: warning: declaration does not declare
anything
/encoder/include/mfx/mfxcommon.h:101: warning: declaration does not declare
anything
/encoder/include/mfx/mfxcommon.h:103: warning: declaration does not declare
anything
/encoder/include/mfx/mfxcommon.h:127: warning: declaration does not declare
anything
/encoder/include/mfx/mfxcommon.h:129: warning: declaration does not declare
anything
In file included from /encoder/include/mfx/mfxvstructures.h:30,
                 from /encoder/include/mfx/mfxvideo.h:33,
                 from libavcodec/qsv.h:24,
                 from libavcodec/qsv_api.c:28:
/encoder/include/mfx/mfxstructures.h:51: warning: declaration does not
declare anything
/encoder/include/mfx/mfxstructures.h:54: warning: declaration does not
declare anything
/encoder/include/mfx/mfxstructures.h:55: warning: declaration does not
declare anything
/encoder/include/mfx/mfxstructures.h:79: warning: declaration does not
declare anything
/encoder/include/mfx/mfxstructures.h:83: warning: declaration does not
declare anything
/encoder/include/mfx/mfxstructures.h:84: warning: declaration does not
declare anything
/encoder/include/mfx/mfxstructures.h:169: warning: declaration does not
declare anything
/encoder/include/mfx/mfxstructures.h:181: warning: declaration does not
declare anything
/encoder/include/mfx/mfxstructures.h:188: warning: declaration does not
declare anything
/encoder/include/mfx/mfxstructures.h:198: warning: declaration does not
declare anything
/encoder/include/mfx/mfxstructures.h:204: warning: declaration does not
declare anything
/encoder/include/mfx/mfxstructures.h:252: warning: declaration does not
declare anything
/encoder/include/mfx/mfxstructures.h:258: warning: declaration does not
declare anything
/encoder/include/mfx/mfxstructures.h:263: warning: declaration does not
declare anything
/encoder/include/mfx/mfxstructures.h:268: warning: declaration does not
declare anything
/encoder/include/mfx/mfxstructures.h:275: warning: declaration does not
declare anything
/encoder/include/mfx/mfxstructures.h:282: warning: declaration does not
declare anything
/encoder/include/mfx/mfxstructures.h:288: warning: declaration does not
declare anything
/encoder/include/mfx/mfxstructures.h:289: warning: declaration does not
declare anything
/encoder/include/mfx/mfxstructures.h:306: warning: declaration does not
declare anything
/encoder/include/mfx/mfxstructures.h:714: warning: declaration does not
declare anything
/encoder/include/mfx/mfxstructures.h:718: warning: declaration does not
declare anything
/encoder/include/mfx/mfxstructures.h:719: warning: declaration does not
declare anything
/encoder/include/mfx/mfxstructures.h:1004: warning: declaration does not
declare anything
/encoder/include/mfx/mfxstructures.h:1008: warning: declaration does not
declare anything
/encoder/include/mfx/mfxstructures.h:1012: warning: declaration does not
declare anything
/encoder/include/mfx/mfxstructures.h:1146: warning: declaration does not
declare anything
/encoder/include/mfx/mfxstructures.h:1165: warning: declaration does not
declare anything
CC      libavcodec/qsvdec.o
In file included from /encoder/include/mfx/mfxsession.h:32,
                 from /encoder/include/mfx/mfxvideo.h:32,
                 from libavcodec/qsvdec.c:27:
/encoder/include/mfx/mfxcommon.h:81: warning: declaration does not declare
anything
/encoder/include/mfx/mfxcommon.h:101: warning: declaration does not declare
anything
/encoder/include/mfx/mfxcommon.h:103: warning: declaration does not declare
anything
/encoder/include/mfx/mfxcommon.h:127: warning: declaration does not declare
anything
/encoder/include/mfx/mfxcommon.h:129: warning: declaration does not declare
anything
In file included from /encoder/include/mfx/mfxvstructures.h:30,
                 from /encoder/include/mfx/mfxvideo.h:33,
                 from libavcodec/qsvdec.c:27:
/encoder/include/mfx/mfxstructures.h:51: warning: declaration does not
declare anything
/encoder/include/mfx/mfxstructures.h:54: warning: declaration does not
declare anything
/encoder/include/mfx/mfxstructures.h:55: warning: declaration does not
declare anything
/encoder/include/mfx/mfxstructures.h:79: warning: declaration does not
declare anything
/encoder/include/mfx/mfxstructures.h:83: warning: declaration does not
declare anything
/encoder/include/mfx/mfxstructures.h:84: warning: declaration does not
declare anything
/encoder/include/mfx/mfxstructures.h:169: warning: declaration does not
declare anything
/encoder/include/mfx/mfxstructures.h:181: warning: declaration does not
declare anything
/encoder/include/mfx/mfxstructures.h:188: warning: declaration does not
declare anything
/encoder/include/mfx/mfxstructures.h:198: warning: declaration does not
declare anything
/encoder/include/mfx/mfxstructures.h:204: warning: declaration does not
declare anything
/encoder/include/mfx/mfxstructures.h:252: warning: declaration does not
declare anything
/encoder/include/mfx/mfxstructures.h:258: warning: declaration does not
declare anything
/encoder/include/mfx/mfxstructures.h:263: warning: declaration does not
declare anything
/encoder/include/mfx/mfxstructures.h:268: warning: declaration does not
declare anything
/encoder/include/mfx/mfxstructures.h:275: warning: declaration does not
declare anything
/encoder/include/mfx/mfxstructures.h:282: warning: declaration does not
declare anything
/encoder/include/mfx/mfxstructures.h:288: warning: declaration does not
declare anything
/encoder/include/mfx/mfxstructures.h:289: warning: declaration does not
declare anything
/encoder/include/mfx/mfxstructures.h:306: warning: declaration does not
declare anything
/encoder/include/mfx/mfxstructures.h:714: warning: declaration does not
declare anything
/encoder/include/mfx/mfxstructures.h:718: warning: declaration does not
declare anything
/encoder/include/mfx/mfxstructures.h:719: warning: declaration does not
declare anything
/encoder/include/mfx/mfxstructures.h:1004: warning: declaration does not
declare anything
/encoder/include/mfx/mfxstructures.h:1008: warning: declaration does not
declare anything
/encoder/include/mfx/mfxstructures.h:1012: warning: declaration does not
declare anything
/encoder/include/mfx/mfxstructures.h:1146: warning: declaration does not
declare anything
/encoder/include/mfx/mfxstructures.h:1165: warning: declaration does not
declare anything
libavcodec/qsvdec.c: In function "ff_qsv_decode_init":
libavcodec/qsvdec.c:87: error: "mfxVideoParam" has no member named "mfx"
libavcodec/qsvdec.c:88: error: "mfxVideoParam" has no member named "mfx"
libavcodec/qsvdec.c:89: error: "mfxVideoParam" has no member named "mfx"
libavcodec/qsvdec.c:91: error: "mfxVideoParam" has no member named "mfx"
libavcodec/qsvdec.c:92: error: "mfxVideoParam" has no member named "mfx"
libavcodec/qsvdec.c:93: error: "mfxVideoParam" has no member named "mfx"
libavcodec/qsvdec.c:94: error: "mfxVideoParam" has no member named "mfx"
libavcodec/qsvdec.c:95: error: "mfxVideoParam" has no member named "mfx"
libavcodec/qsvdec.c:96: error: "mfxVideoParam" has no member named "mfx"
libavcodec/qsvdec.c:97: error: "mfxVideoParam" has no member named "mfx"
libavcodec/qsvdec.c: In function "alloc_frame":
libavcodec/qsvdec.c:127: error: "mfxFrameInfo" has no member named "Width"
libavcodec/qsvdec.c:128: error: "mfxFrameInfo" has no member named "Height"
libavcodec/qsvdec.c:131: error: "mfxFrameData" has no member named
"PitchLow"
libavcodec/qsvdec.c:132: error: "mfxFrameData" has no member named "Y"
libavcodec/qsvdec.c:133: error: "mfxFrameData" has no member named "UV"
libavcodec/qsvdec.c: In function "ff_qsv_decode":
libavcodec/qsvdec.c:212: warning: braces around scalar initializer
libavcodec/qsvdec.c:212: warning: (near initialization for
"bs.DecodeTimeStamp")
libavcodec/qsvdec.c:212: warning: braces around scalar initializer
libavcodec/qsvdec.c:212: warning: (near initialization for
"bs.DecodeTimeStamp")
make: *** [libavcodec/qsvdec.o] Error 1


It seems like a MFX build error, but everything compiles and installs
fine...

Not sure if there should be a special  build instruction for MFX lib for
*NIX and for WIN32. As they seem different.

It'd be great if FFmpeg could support MFXLIB from Intel SDK as it builds
with one command with all its dependencies. https://trac.ffmpeg.org/ticket/
*4659*

If anyone has any word of advise, please share it.


Regards,
Dennis


More information about the ffmpeg-user mailing list