Compilation encounters many errors

42 views
Skip to first unread message

gz83

unread,
Nov 8, 2022, 9:37:39 AM11/8/22
to Chromium-dev
I am now cross-compiling the latest Chromium browser for windows using VS2022+SDK22621 on Ubuntu 22.04 system, but I encountered many errors during the compilation process, the specific error report and args information are below, the source code has been modified but not Modify those files with errors

../../third_party/ffmpeg/libavformat/flac_picture.c(49,36): error: use of undeclared identifier 'AV_EF_EXPLODE'
        if (s->error_recognition & AV_EF_EXPLODE)
                                   ^
../../third_party/ffmpeg/libavformat/flac_picture.c(60,36): error: use of undeclared identifier 'AV_EF_EXPLODE'
        if (s->error_recognition & AV_EF_EXPLODE) {
                                   ^
../../third_party/ffmpeg/libavformat/flac_picture.c(71,36): error: use of undeclared identifier 'AV_EF_EXPLODE'
        if (s->error_recognition & AV_EF_EXPLODE)
                                   ^
../../third_party/ffmpeg/libavformat/flac_picture.c(77,36): error: use of undeclared identifier 'AV_EF_EXPLODE'
        if (s->error_recognition & AV_EF_EXPLODE)
                                   ^
../../third_party/ffmpeg/libavformat/flac_picture.c(94,36): error: use of undeclared identifier 'AV_EF_EXPLODE'
        if (s->error_recognition & AV_EF_EXPLODE)
                                   ^
../../third_party/ffmpeg/libavformat/flac_picture.c(103,36): error: use of undeclared identifier 'AV_EF_EXPLODE'
        if (s->error_recognition & AV_EF_EXPLODE)
                                   ^
../../third_party/ffmpeg/libavformat/flac_picture.c(125,40): error: use of undeclared identifier 'AV_EF_EXPLODE'
            if (s->error_recognition & AV_EF_EXPLODE)
                                       ^
../../third_party/ffmpeg/libavformat/flac_picture.c(134,41): error: use of undeclared identifier 'FF_COMPLIANCE_NORMAL'
            s->strict_std_compliance <= FF_COMPLIANCE_NORMAL &&
                                        ^
../../third_party/ffmpeg/libavformat/flac_picture.c(140,40): error: use of undeclared identifier 'AV_EF_EXPLODE'
            if (s->error_recognition & AV_EF_EXPLODE)

../../third_party/ffmpeg/libavformat/isom_tags.c(277,7): error: use of undeclared identifier 'AV_CODEC_ID_MEDIA100'
    { AV_CODEC_ID_MEDIA100, MKTAG('6', '0', '1', 'N') },
      ^
../../third_party/ffmpeg/libavformat/isom_tags.c(278,7): error: use of undeclared identifier 'AV_CODEC_ID_MEDIA100'
    { AV_CODEC_ID_MEDIA100, MKTAG('6', '0', '1', 'P') },
      ^
../../third_party/ffmpeg/libavformat/isom_tags.c(279,7): error: use of undeclared identifier 'AV_CODEC_ID_MEDIA100'
    { AV_CODEC_ID_MEDIA100, MKTAG('d', 't', 'n', 't') },
      ^
../../third_party/ffmpeg/libavformat/isom_tags.c(280,7): error: use of undeclared identifier 'AV_CODEC_ID_MEDIA100'
    { AV_CODEC_ID_MEDIA100, MKTAG('d', 't', 'N', 'T') },
      ^
../../third_party/ffmpeg/libavformat/isom_tags.c(281,7): error: use of undeclared identifier 'AV_CODEC_ID_MEDIA100'
    { AV_CODEC_ID_MEDIA100, MKTAG('d', 't', 'p', 'a') },
      ^
../../third_party/ffmpeg/libavformat/isom_tags.c(282,7): error: use of undeclared identifier 'AV_CODEC_ID_MEDIA100'
    { AV_CODEC_ID_MEDIA100, MKTAG('d', 't', 'P', 'A') },

../../third_party/ffmpeg/libavformat/matroskadec.c(2733,56): error: use of undeclared identifier 'AV_EF_EXPLODE'
                if (matroska->ctx->error_recognition & AV_EF_EXPLODE)
                                                       ^
../../third_party/ffmpeg/libavformat/matroskadec.c(3057,48): error: use of undeclared identifier 'AV_EF_EXPLODE'
        if (matroska->ctx->error_recognition & AV_EF_EXPLODE) {

../../third_party/ffmpeg/libavformat/oggdec.c(770,40): error: use of undeclared identifier 'AV_EF_EXPLODE'
            if (s->error_recognition & AV_EF_EXPLODE)

../../third_party/ffmpeg/libavformat/riff.c(502,7): error: use of undeclared identifier 'AV_CODEC_ID_VQC'; did you mean 'AV_CODEC_ID_VVC'?
    { AV_CODEC_ID_VQC,          MKTAG('V', 'Q', 'C', '1') },
      ^~~~~~~~~~~~~~~
      AV_CODEC_ID_VVC
../../third_party/ffmpeg/libavcodec/codec_id.h(250,5): note: 'AV_CODEC_ID_VVC' declared here
    AV_CODEC_ID_VVC,
    ^
../../third_party/ffmpeg/libavformat/riff.c(503,7): error: use of undeclared identifier 'AV_CODEC_ID_VQC'; did you mean 'AV_CODEC_ID_VVC'?
    { AV_CODEC_ID_VQC,          MKTAG('V', 'Q', 'C', '2') },
      ^~~~~~~~~~~~~~~
      AV_CODEC_ID_VVC
../../third_party/ffmpeg/libavcodec/codec_id.h(250,5): note: 'AV_CODEC_ID_VVC' declared here
    AV_CODEC_ID_VVC,
    ^
../../third_party/ffmpeg/libavformat/riff.c(563,7): error: use of undeclared identifier 'AV_CODEC_ID_FTR'
    { AV_CODEC_ID_FTR,             0x0180 },
      ^
../../third_party/ffmpeg/libavformat/riff.c(590,7): error: use of undeclared identifier 'AV_CODEC_ID_FTR'
    { AV_CODEC_ID_FTR,             0x4180 },
      ^
../../third_party/ffmpeg/libavformat/riff.c(593,7): error: use of undeclared identifier 'AV_CODEC_ID_FTR'
    { AV_CODEC_ID_FTR,             0x8180 },

google_api_key = ""
google_default_client_id = ""
google_default_client_secret = ""
visual_studio_version = "2022"
target_os = "win"
target_cpu = "x64"
enable_stripping = true
is_official_build = true
is_debug = false
dcheck_always_on = false
exclude_unwind_tables = true
# enable_debugallocation = false
enable_iterator_debugging = false
disable_fieldtrial_testing_config = true
enable_reporting = false
enable_resource_allowlist_generation = false
enable_profiling = false
is_component_build = false
symbol_level = 0
optimize_webui = true
enable_webui_tab_strip = true
use_lld = true
v8_symbol_level = 0
v8_enable_fast_torque = true
use_v8_context_snapshot = true
enable_nacl = false
blink_symbol_level = 0
enable_precompiled_headers = false
media_use_ffmpeg = true
media_use_libvpx = true
enable_hls_sample_aes = true
enable_hls_demuxer = true
enable_ink = false
enable_discovery = false
enable_cros_media_app = false
proprietary_codecs = true
ffmpeg_branding = "Chrome"
enable_ffmpeg_video_decoders = true
is_component_ffmpeg = false
use_webaudio_ffmpeg = false
use_webaudio_pffft = true
# enable_av1_decoder = true
# enable_dav1d_decoder = true
enable_widevine = true
bundle_widevine_cdm = false
ignore_missing_widevine_signing_cert = true
enable_media_drm_storage = true
enable_hangout_services_extension = true
rtc_use_h264 = true
rtc_include_ilbc = true
# rtc_build_with_neon = true
rtc_build_examples = false
rtc_enable_avx2 = true
enable_vr = true
use_vr_assets_component = true
enable_platform_hevc = true
enable_hevc_parser_and_hw_decoder = true
enable_platform_ac3_eac3_audio = true
enable_platform_dolby_vision = true
enable_platform_mpeg_h_audio = true
enable_platform_dts_audio = true
enable_mse_mpeg2ts_stream_parser = true
use_thin_lto = true
thin_lto_enable_optimizations = true
chrome_pgo_phase = 2
pgo_data_path = "/root/chromium/src/chrome/build/pgo_profiles/chrome-win64-main-1667865192-6f7585b7001e74640f371cf4d6b399f1222f29c8.profdata"

Dale Curtis

unread,
Nov 8, 2022, 12:57:05 PM11/8/22
to uiop...@gmail.com, media-dev
Do you have any modifications to ffmpeg or is this a clean build?

- dale

--
--
Chromium Developers mailing list: chromi...@chromium.org
View archives, change email options, or unsubscribe:
http://groups.google.com/a/chromium.org/group/chromium-dev
---
You received this message because you are subscribed to the Google Groups "Chromium-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-dev...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/chromium-dev/4a4dea35-4731-4deb-8069-847ae9c05732n%40chromium.org.

gz83

unread,
Nov 8, 2022, 1:01:51 PM11/8/22
to Chromium-dev, Dale Curtis, media-dev, gz83
I completely deleted the files generated by the previous compilation and re-synchronized the code, and found that the above problem disappeared, but a new problem appeared. Some source code files pulled to the local cannot be synchronized with the one on chromium code search. Not sure what went wrong.

Dale Curtis

unread,
Nov 8, 2022, 1:19:27 PM11/8/22
to gz83, Chromium-dev, media-dev
We just updated ffmpeg, so it probably got into a weird state somewhere. Glad to hear it resolved itself!

- dlae

gz83

unread,
Nov 8, 2022, 1:23:35 PM11/8/22
to Chromium-dev, Dale Curtis, Chromium-dev, media-dev, gz83
Thank you again for your help. The files that appeared in the CL probably need to be modified. I hope ffmpeg can deal with the problems in those files as soon as possible.
Reply all
Reply to author
Forward
0 new messages