Getting error: use of undeclared identifier 'kCMVideoCodecType_VP9';

207 views
Skip to first unread message

VA

unread,
Dec 10, 2020, 7:39:55 AM12/10/20
to Chromium-discuss

When building for macOS Catalina Version 10.15.6, I see following errors.

It looks like this variable was defined in later versions of macOS.

Any advice on how to go about running correct chromium version corresponding to my os version?

$ autoninja -C out/Default chrome

throws errors:

../../media/gpu/mac/vt_video_decode_accelerator_mac.cc:200:30: error: use of undeclared identifier 'kCMVideoCodecType_VP9'; did you mean 'kCMVideoCodecType_JPEG'?

      CreateFormatExtensions(kCMVideoCodecType_VP9, profile, color_space,

                             ^~~~~~~~~~~~~~~~~~~~~

                             kCMVideoCodecType_JPEG

../../../../../../../../../Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreMedia.framework/Headers/CMFormatDescription.h:607:2: note: 'kCMVideoCodecType_JPEG' declared here

        kCMVideoCodecType_JPEG             = 'jpeg',

        ^

../../media/gpu/mac/vt_video_decode_accelerator_mac.cc:210:28: error: use of undeclared identifier 'kCMVideoCodecType_VP9'; did you mean 'kCMVideoCodecType_JPEG'?

      kCFAllocatorDefault, kCMVideoCodecType_VP9, coded_size.width(),

                           ^~~~~~~~~~~~~~~~~~~~~

                           kCMVideoCodecType_JPEG

../../../../../../../../../Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreMedia.framework/Headers/CMFormatDescription.h:607:2: note: 'kCMVideoCodecType_JPEG' declared here

        kCMVideoCodecType_JPEG             = 'jpeg',

        ^

../../media/gpu/mac/vt_video_decode_accelerator_mac.cc:321:51: error: use of undeclared identifier 'kCMVideoCodecType_VP9'

    VTRegisterSupplementalVideoDecoderIfAvailable(kCMVideoCodecType_VP9);

                                                  ^

../../media/gpu/mac/vt_video_decode_accelerator_mac.cc:1711:42: error: use of undeclared identifier 'kCMVideoCodecType_VP9'; did you mean 'kCMVideoCodecType_JPEG'?

            !VTIsHardwareDecodeSupported(kCMVideoCodecType_VP9)) {

                                         ^~~~~~~~~~~~~~~~~~~~~

                                         kCMVideoCodecType_JPEG

../../../../../../../../../Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreMedia.framework/Headers/CMFormatDescription.h:607:2: note: 'kCMVideoCodecType_JPEG' declared here

        kCMVideoCodecType_JPEG             = 'jpeg',

        ^

4 errors generated.



lewis wei

unread,
Nov 4, 2022, 7:24:53 PM11/4/22
to Chromium-discuss, VA
Have you solved it? I also found this issue
Reply all
Reply to author
Forward
0 new messages