Page 1 of 1

Problem with building CEF

PostPosted: Thu Aug 05, 2021 2:27 pm
by ValentinNikin
Hello!

I trying to build CEF from source code.
My main goal is build CEF with proprietary codecs (h264/h265) supporting.
But I can't build CEF in base configuration, yet.

I work by step by step guide https://bitbucket.org/chromiumembedded/ ... QuickStart.
On the 7 point I have the next problem:

Code: Select all
Generating CEF project files...
Python Traceback (most recent call last):
  File "tools\gclient_hook.py", line 146, in <module>
    RunAction(src_dir, cmd)
  File "C:\CEF\chromium_git\chromium\src\cef\tools\gclient_util.py", line 36, in RunAction
    command, cwd=dir, always_show_header=True, print_stdout=True)
  File "C:\CEF\depot_tools\gclient_utils.py", line 673, in CheckCallAndFilter
    rv, args, kwargs.get('cwd', None), command_output.getvalue(), None)
subprocess2.CalledProcessError: Command 'gn gen out\\Debug_GN_x64 --ide=vs2019 --sln=cef --filters=//cef/*' returned non-zero exit status 9009 in C:\CEF\chromium_git\chromium\src
Python


Any idea would be appriciated. Thank you

Re: Problem with building CEF

PostPosted: Thu Aug 05, 2021 4:50 pm
by magreenblatt
Was there more to the error message? You can try running the gn command directly:
Code: Select all
cd C:\CEF\chromium_git\chromium\src
gn gen out\Debug_GN_x64 --ide=vs2019 --sln=cef --filters=//cef/*'

Re: Problem with building CEF

PostPosted: Fri Aug 06, 2021 1:44 am
by ValentinNikin
magreenblatt wrote:Was there more to the error message?


Full output
Code: Select all
Generating CEF version header file...

Patching build configuration and source files for CEF...

Apply gritsettings.patch in C:\CEF\chromium_git\chromium\src
        9       0       tools/gritsettings/resource_ids.spec
... already applied (skipping).

Apply gn_config.patch in C:\CEF\chromium_git\chromium\src
        2       0       .gn
        4       0       BUILD.gn
        5       7       build/config/win/visual_studio_version.gni
        5       0       chrome/app/framework.order
        5       0       chrome/chrome_paks.gni
        5       0       chrome/chrome_repack_locales.gni
        4       1       chrome/installer/mini_installer/BUILD.gn
        8       0       tools/grit/grit_defines.gni
... already applied (skipping).

Apply runhooks.patch in C:\CEF\chromium_git\chromium\src
        1       1       .vpython3
        9       5       build/toolchain/win/setup_toolchain.py
        11      0       build/vs_toolchain.py
... already applied (skipping).

Apply component_build.patch in C:\CEF\chromium_git\chromium\src
        1       1       content/browser/devtools/devtools_instrumentation.h
        3       1       content/browser/renderer_host/input/synthetic_gesture_target_base.h
        1       1       content/common/content_switches_internal.h
        3       0       third_party/blink/renderer/controller/BUILD.gn
        2       0       ui/events/keycodes/BUILD.gn
        2       1       ui/events/keycodes/keyboard_code_conversion_xkb.h
... already applied (skipping).

Apply message_loop.patch in C:\CEF\chromium_git\chromium\src
        12      1       base/message_loop/message_pump_win.cc
        2       0       base/task/current_thread.cc
        13      0       base/task/current_thread.h
... already applied (skipping).

Apply trace_event.patch in C:\CEF\chromium_git\chromium\src
        2       0       base/trace_event/builtin_categories.h
... already applied (skipping).

Apply webkit_popups.patch in C:\CEF\chromium_git\chromium\src
        1       0       third_party/blink/public/web/web_view.h
        8       2       third_party/blink/renderer/core/exported/web_view_impl.cc
        4       1       third_party/blink/renderer/core/exported/web_view_impl.h
        1       1       third_party/blink/renderer/core/page/chrome_client_impl.cc
... already applied (skipping).

Apply webkit_runtime_enabled_features.patch in C:\CEF\chromium_git\chromium\src
        3       0       third_party/blink/renderer/build/scripts/templates/runtime_enabled_features.h.tmpl
... already applied (skipping).

Apply underlay_1051.patch in C:\CEF\chromium_git\chromium\src
        1       1       ui/base/cocoa/underlay_opengl_hosting_window.h
... already applied (skipping).

Apply views_widget.patch in C:\CEF\chromium_git\chromium\src
        8       0       content/browser/renderer_host/render_widget_host_view_base.cc
        13      0       content/browser/renderer_host/render_widget_host_view_base.h
        23      0       content/browser/renderer_host/render_widget_host_view_event_handler.cc
        8       0       content/public/browser/render_widget_host_view.h
        2       1       ui/platform_window/x11/x11_window.cc
        2       0       ui/views/widget/desktop_aura/desktop_screen_win.cc
        14      0       ui/views/widget/desktop_aura/desktop_window_tree_host_linux.cc
        7       0       ui/views/widget/desktop_aura/desktop_window_tree_host_linux.h
        11      3       ui/views/widget/desktop_aura/desktop_window_tree_host_win.cc
        4       0       ui/views/widget/desktop_aura/desktop_window_tree_host_win.h
        14      2       ui/views/widget/widget.cc
        2       0       ui/views/widget/widget.h
        4       0       ui/views/widget/widget_delegate.h
        1       1       ui/views/widget/widget_hwnd_utils.cc
        7       4       ui/views/win/hwnd_message_handler.cc
... already applied (skipping).

Apply web_contents_1257_1565.patch in C:\CEF\chromium_git\chromium\src
        19      0       content/browser/web_contents/web_contents_impl.cc
        1       0       content/public/browser/web_contents.cc
        6       0       content/public/browser/web_contents.h
        10      0       content/public/browser/web_contents_delegate.h
        4       0       content/public/browser/web_contents_observer.h
... already applied (skipping).

Apply mime_handler_view_guest_1565_2727.patch in C:\CEF\chromium_git\chromium\src
        1       1       content/browser/web_contents/web_contents_view.h
        11      0       extensions/browser/guest_view/mime_handler_view/mime_handler_view_guest.cc
        2       0       extensions/browser/guest_view/mime_handler_view/mime_handler_view_guest.h
        9       1       extensions/browser/guest_view/mime_handler_view/mime_handler_view_guest_delegate.h
... already applied (skipping).

Apply ui_dragdrop_355390.patch in C:\CEF\chromium_git\chromium\src
        2       1       ui/base/x/x11_os_exchange_data_provider.cc
... already applied (skipping).

Apply ime_1610.patch in C:\CEF\chromium_git\chromium\src
        2       1       ui/base/ime/win/input_method_win_base.cc
... already applied (skipping).

Apply content_main_654986.patch in C:\CEF\chromium_git\chromium\src
        42      19      content/app/content_main.cc
        6       0       content/app/content_main_runner_impl.cc
        3       1       content/app/content_main_runner_impl.h
        1       1       content/common/set_process_title.cc
        11      2       content/public/app/content_main.h
... already applied (skipping).

Apply content_mojo_3123.patch in C:\CEF\chromium_git\chromium\src
        5       0       content/public/browser/document_service_base.h
... already applied (skipping).

Apply renderer_preferences_util_545103.patch in C:\CEF\chromium_git\chromium\src
        4       2       chrome/browser/renderer_preferences_util.cc
... already applied (skipping).

Apply font_family_cache_1501.patch in C:\CEF\chromium_git\chromium\src
        2       0       chrome/browser/font_family_cache.h
... already applied (skipping).

Apply views_1749_2102.patch in C:\CEF\chromium_git\chromium\src
        24      0       ui/base/models/menu_model.h
        21      0       ui/gfx/render_text.cc
        6       0       ui/gfx/render_text.h
        2       0       ui/views/animation/ink_drop_host_view.h
        6       0       ui/views/controls/button/label_button.cc
        3       0       ui/views/controls/button/label_button.h
        34      0       ui/views/controls/label.cc
        5       0       ui/views/controls/label.h
        9       2       ui/views/controls/menu/menu_controller.cc
        21      0       ui/views/controls/menu/menu_delegate.h
        16      0       ui/views/controls/menu/menu_item_view.cc
        71      0       ui/views/controls/menu/menu_model_adapter.cc
        14      0       ui/views/controls/menu/menu_model_adapter.h
        5       0       ui/views/controls/menu/menu_scroll_view_container.cc
        0       4       ui/views/test/ui_controls_factory_desktop_aurax11.cc
        3       1       ui/views/view.h
... already applied (skipping).

Apply chrome_widevine.patch in C:\CEF\chromium_git\chromium\src
        1       0       third_party/widevine/cdm/BUILD.gn
... already applied (skipping).

Apply chrome_browser.patch in C:\CEF\chromium_git\chromium\src
        6       0       chrome/browser/BUILD.gn
... already applied (skipping).

Apply chrome_renderer.patch in C:\CEF\chromium_git\chromium\src
        6       0       chrome/renderer/BUILD.gn
... already applied (skipping).

Apply chrome_runtime.patch in C:\CEF\chromium_git\chromium\src
        11      0       chrome/app/chrome_main_delegate.cc
        8       2       chrome/browser/chrome_browser_main.cc
        5       0       chrome/browser/chrome_browser_main_mac.mm
        3       0       chrome/browser/chrome_content_browser_client.cc
        7       0       chrome/browser/notifications/alert_dispatcher_xpc.mm
        9       0       chrome/browser/prefs/browser_prefs.cc
... already applied (skipping).

Apply chrome_runtime_views.patch in C:\CEF\chromium_git\chromium\src
        7       3       chrome/browser/ui/browser_command_controller.cc
        24      3       chrome/browser/ui/views/frame/browser_frame.cc
        2       0       chrome/browser/ui/views/frame/browser_frame.h
        36      13      chrome/browser/ui/views/frame/browser_view.cc
        8       0       chrome/browser/ui/views/frame/browser_view.h
        6       0       chrome/browser/ui/views/frame/browser_view_layout.cc
        16      0       chrome/browser/ui/views/tabs/browser_tab_strip_controller.cc
        4       3       chrome/browser/ui/views/toolbar/toolbar_view.cc
        2       1       chrome/browser/ui/views/toolbar/toolbar_view.h
... already applied (skipping).

Apply chrome_browser_browser.patch in C:\CEF\chromium_git\chromium\src
        3       0       chrome/browser/browser_about_handler.cc
        85      2       chrome/browser/ui/browser.cc
        34      0       chrome/browser/ui/browser.h
        7       0       chrome/browser/ui/browser_navigator.cc
        5       1       chrome/browser/ui/browser_tabstrip.cc
... already applied (skipping).

Apply chrome_browser_content_settings.patch in C:\CEF\chromium_git\chromium\src
        17      0       chrome/browser/content_settings/host_content_settings_map_factory.cc
        1       1       components/content_settings/renderer/content_settings_agent_impl.cc
... already applied (skipping).

Apply chrome_browser_context_menus.patch in C:\CEF\chromium_git\chromium\src
        31      0       chrome/browser/renderer_context_menu/render_view_context_menu.cc
        9       0       chrome/browser/renderer_context_menu/render_view_context_menu.h
        3       0       chrome/browser/ui/views/renderer_context_menu/render_view_context_menu_views.cc
        11      0       components/renderer_context_menu/render_view_context_menu_base.cc
        9       3       components/renderer_context_menu/render_view_context_menu_base.h
        5       0       components/renderer_context_menu/render_view_context_menu_observer.cc
        6       0       components/renderer_context_menu/render_view_context_menu_observer.h
... already applied (skipping).

Apply chrome_browser_themes.patch in C:\CEF\chromium_git\chromium\src
        13      0       chrome/browser/themes/theme_service.cc
        13      0       chrome/browser/themes/theme_service_factory.cc
... already applied (skipping).

Apply chrome_browser_profiles.patch in C:\CEF\chromium_git\chromium\src
        3       1       chrome/browser/profiles/off_the_record_profile_impl.cc
        13      0       chrome/browser/profiles/profile.cc
        6       2       chrome/browser/profiles/profile.h
        3       1       chrome/browser/profiles/profile_impl.cc
        1       1       chrome/browser/profiles/profile_manager.cc
        2       2       chrome/browser/profiles/profile_manager.h
        5       0       chrome/browser/profiles/renderer_updater.cc
... already applied (skipping).

Apply chrome_browser_profile_menu.patch in C:\CEF\chromium_git\chromium\src
        3       1       chrome/browser/profiles/profile_window.cc
        3       1       chrome/browser/ui/views/profiles/incognito_menu_view.cc
        3       1       chrome/browser/ui/views/profiles/profile_menu_view_base.cc
... already applied (skipping).

Apply chrome_browser_net_export.patch in C:\CEF\chromium_git\chromium\src
        7       0       chrome/browser/ui/BUILD.gn
        53      0       chrome/browser/ui/webui/net_export_ui.cc
... already applied (skipping).

Apply embedder_product_override.patch in C:\CEF\chromium_git\chromium\src
        7       0       components/embedder_support/user_agent_utils.cc
... already applied (skipping).

Apply chrome_browser_safe_browsing.patch in C:\CEF\chromium_git\chromium\src
        1       0       chrome/browser/safe_browsing/BUILD.gn
... already applied (skipping).

Apply chrome_plugins.patch in C:\CEF\chromium_git\chromium\src
        51      5       chrome/browser/plugins/plugin_info_host_impl.cc
        11      0       chrome/browser/plugins/plugin_utils.cc
        10      0       chrome/common/google_url_loader_throttle.cc
        9       4       chrome/renderer/chrome_content_renderer_client.cc
        2       0       content/browser/browser_plugin/browser_plugin_guest.h
... already applied (skipping).

Apply storage_incognito_2289.patch in C:\CEF\chromium_git\chromium\src
        2       1       content/browser/blob_storage/chrome_blob_storage_context.cc
        3       2       content/browser/browser_context.cc
        3       1       content/public/browser/storage_partition_config.cc
        1       1       storage/browser/database/database_tracker.cc
... already applied (skipping).

Apply webview_plugin_2020.patch in C:\CEF\chromium_git\chromium\src
        1       1       chrome/app/generated_resources.grd
... already applied (skipping).

Apply webui_2037.patch in C:\CEF\chromium_git\chromium\src
        16      1       chrome/browser/feedback/system_logs/log_sources/chrome_internal_log_source.cc
        5       1       chrome/browser/memory_details.cc
... already applied (skipping).

Apply crashpad_1995.patch in C:\CEF\chromium_git\chromium\src
        13      3       chrome/chrome_elf/BUILD.gn
        9       0       chrome/chrome_elf/crash/crash_helper.cc
        4       2       chrome/common/crash_keys.cc
        4       0       chrome/common/crash_keys.h
        31      4       components/crash/core/app/breakpad_linux.cc
        3       0       components/crash/core/app/breakpad_linux.h
        30      4       components/crash/core/app/crash_reporter_client.cc
        26      1       components/crash/core/app/crash_reporter_client.h
        2       1       components/crash/core/app/crashpad.cc
        41      14      components/crash/core/app/crashpad_mac.mm
        20      10      components/crash/core/app/crashpad_win.cc
... already applied (skipping).

Apply crashpad_tp_1995.patch in C:\CEF\chromium_git\chromium\src
        9       3       third_party/crashpad/crashpad/client/prune_crash_reports.cc
        2       1       third_party/crashpad/crashpad/client/prune_crash_reports.h
        57      1       third_party/crashpad/crashpad/client/settings.cc
        5       0       third_party/crashpad/crashpad/client/settings.h
        13      0       third_party/crashpad/crashpad/handler/BUILD.gn
        2       0       third_party/crashpad/crashpad/handler/crash_report_upload_thread.cc
        9       3       third_party/crashpad/crashpad/handler/crash_report_upload_thread.h
        43      1       third_party/crashpad/crashpad/handler/handler_main.cc
... already applied (skipping).

Apply rwh_background_color_1984.patch in C:\CEF\chromium_git\chromium\src
        16      4       content/browser/renderer_host/render_widget_host_view_aura.cc
... already applied (skipping).

Apply content_2015.patch in C:\CEF\chromium_git\chromium\src
        1       1       chrome/browser/download/download_target_determiner.cc
        1       0       chrome/browser/plugins/chrome_plugin_service_filter.cc
        1       0       chrome/browser/plugins/chrome_plugin_service_filter.h
        1       1       chrome/browser/plugins/pdf_iframe_navigation_throttle.cc
        1       1       chrome/browser/ui/views/frame/browser_root_view.cc
        1       1       content/browser/devtools/devtools_http_handler.cc
        8       1       content/browser/loader/navigation_url_loader_impl.cc
        3       1       content/browser/plugin_service_impl.cc
        1       0       content/browser/plugin_service_impl.h
        4       1       content/browser/renderer_host/plugin_registry_impl.cc
        3       1       content/browser/renderer_host/plugin_registry_impl.h
        3       1       content/browser/renderer_host/render_frame_host_impl.cc
        1       0       content/browser/renderer_host/render_frame_host_impl.h
        1       0       content/common/pepper_plugin.mojom
        1       1       content/public/browser/content_browser_client.cc
        13      0       content/public/browser/content_browser_client.h
        1       0       content/public/browser/plugin_service.h
        1       0       content/public/browser/plugin_service_filter.h
        7       0       content/public/renderer/content_renderer_client.h
        2       1       content/renderer/render_frame_impl.cc
        2       0       content/renderer/render_thread_impl.cc
        9       0       content/renderer/renderer_blink_platform_impl.cc
        3       0       content/renderer/renderer_blink_platform_impl.h
        1       0       content/shell/browser/shell_plugin_service_filter.cc
        1       0       content/shell/browser/shell_plugin_service_filter.h
... already applied (skipping).

Apply webkit_plugin_info_2015.patch in C:\CEF\chromium_git\chromium\src
        1       1       third_party/blink/public/mojom/plugins/plugin_registry.mojom
        5       0       third_party/blink/public/platform/platform.h
        2       2       third_party/blink/renderer/core/dom/document_init.cc
        1       1       third_party/blink/renderer/core/frame/local_frame.cc
        3       0       third_party/blink/renderer/core/inspector/devtools_session.cc
        33      11      third_party/blink/renderer/core/page/page.cc
        4       2       third_party/blink/renderer/core/page/page.h
        5       3       third_party/blink/renderer/core/page/plugin_data.cc
        2       1       third_party/blink/renderer/core/page/plugin_data.h
... already applied (skipping).

Apply printing_context_2196.patch in C:\CEF\chromium_git\chromium\src
        1       0       chrome/browser/printing/print_job_worker.cc
        11      0       printing/printing_context.h
... already applied (skipping).

Apply build.patch in C:\CEF\chromium_git\chromium\src
        0       2       build/config/compiler/BUILD.gn
... already applied (skipping).

Apply extensions_1947.patch in C:\CEF\chromium_git\chromium\src
        19      3       chrome/browser/extensions/api/streams_private/streams_private_api.cc
        42      3       extensions/browser/extension_host.cc
        9       2       extensions/browser/extension_host.h
        10      0       extensions/browser/extensions_browser_client.h
        9       1       extensions/browser/process_manager.cc
... already applied (skipping).

Apply mac_gpu.patch in C:\CEF\chromium_git\chromium\src
        2       5       ui/gl/init/gl_initializer_mac.cc
... already applied (skipping).

Apply mac_event_observer_2539.patch in C:\CEF\chromium_git\chromium\src
        4       2       content/browser/scheduler/responsiveness/native_event_observer_mac.mm
... already applied (skipping).

Apply mac_fling_scheduler_2540.patch in C:\CEF\chromium_git\chromium\src
        4       0       content/browser/renderer_host/input/fling_scheduler_mac.mm
... already applied (skipping).

Apply linux_poll_2466.patch in C:\CEF\chromium_git\chromium\src
        9       10      base/files/file_path_watcher_linux.cc
... already applied (skipping).

Apply resource_bundle_2512.patch in C:\CEF\chromium_git\chromium\src
        11      0       ui/base/resource/resource_bundle.cc
        5       0       ui/base/resource/resource_bundle.h
... already applied (skipping).

Apply message_pump_mac_2495.patch in C:\CEF\chromium_git\chromium\src
        4       2       base/message_loop/message_pump_mac.mm
... already applied (skipping).

Apply linux_assets_path_1936.patch in C:\CEF\chromium_git\chromium\src
        1       1       content/browser/child_process_launcher_helper_linux.cc
        1       1       sandbox/linux/suid/client/setuid_sandbox_host.cc
        2       2       ui/gl/init/gl_initializer_linux_x11.cc
... already applied (skipping).

Apply services_network_2622.patch in C:\CEF\chromium_git\chromium\src
        16      1       chrome/browser/net/profile_network_context_service.cc
        19      0       net/cookies/cookie_monster.cc
        2       0       net/cookies/cookie_monster.h
        5       0       net/cookies/cookie_store.h
        3       8       services/network/cookie_manager.cc
        13      2       services/network/network_context.cc
        3       0       services/network/public/mojom/network_context.mojom
... already applied (skipping).

Apply services_network_2718.patch in C:\CEF\chromium_git\chromium\src
        10      11      content/browser/storage_partition_impl.cc
... already applied (skipping).

Apply net_cookie_flags.patch in C:\CEF\chromium_git\chromium\src
        3       0       net/base/load_flags_list.h
        2       1       net/url_request/url_request_http_job.cc
        2       1       services/network/public/cpp/resource_request.cc
... already applied (skipping).

Apply set_resize_background_color.patch in C:\CEF\chromium_git\chromium\src
        1       1       ui/views/controls/native/native_view_host.cc
        9       0       ui/views/controls/native/native_view_host.h
        4       0       ui/views/controls/webview/webview.cc
        4       0       ui/views/controls/webview/webview.h
... already applied (skipping).

Apply web_url_loader_cancel_1617042.patch in C:\CEF\chromium_git\chromium\src
        4       2       third_party/blink/public/platform/web_url_loader.h
... already applied (skipping).

Apply browser_scheduler.patch in C:\CEF\chromium_git\chromium\src
        1       1       content/browser/scheduler/browser_task_executor.cc
... already applied (skipping).

Apply browser_web_ui_controller_factory.patch in C:\CEF\chromium_git\chromium\src
        0       3       content/public/browser/web_ui_controller_factory.h
... already applied (skipping).

Apply chrome_pref_watcher.patch in C:\CEF\chromium_git\chromium\src
        1       1       chrome/browser/ui/prefs/pref_watcher.h
... already applied (skipping).

Apply viz_osr_2575.patch in C:\CEF\chromium_git\chromium\src
        7       2       components/viz/host/host_display_client.cc
        3       3       components/viz/host/host_display_client.h
        1       1       components/viz/host/layered_window_updater_impl.cc
        1       1       components/viz/host/layered_window_updater_impl.h
        2       0       components/viz/service/BUILD.gn
        15      0       components/viz/service/display_embedder/output_surface_provider_impl.cc
        3       2       components/viz/service/display_embedder/software_output_device_win.cc
        7       2       content/browser/compositor/viz_process_transport_factory.cc
        3       0       mojo/public/cpp/bindings/sync_call_restrictions.h
        3       1       services/viz/privileged/mojom/compositing/display_private.mojom
        1       1       services/viz/privileged/mojom/compositing/layered_window_updater.mojom
        15      0       ui/compositor/compositor.h
... already applied (skipping).

Apply print_preview_123.patch in C:\CEF\chromium_git\chromium\src
        10      0       chrome/browser/download/download_prefs.cc
        4       0       chrome/browser/printing/print_preview_dialog_controller.cc
        12      2       chrome/browser/printing/print_view_manager_base.cc
        0       3       chrome/browser/printing/print_view_manager_base.h
        1       4       chrome/browser/resources/print_preview/ui/destination_dialog.html
        4       0       chrome/browser/ui/webui/constrained_web_dialog_ui.cc
        57      4       chrome/browser/ui/webui/print_preview/pdf_printer_handler.cc
        12      1       chrome/browser/ui/webui/print_preview/pdf_printer_handler.h
        5       0       chrome/browser/ui/webui/print_preview/print_preview_handler.cc
        9       1       chrome/browser/ui/webui/print_preview/print_preview_ui.cc
... already applied (skipping).

Apply base_sandbox_2743.patch in C:\CEF\chromium_git\chromium\src
        12      1       base/BUILD.gn
        2       1       base/hash/md5.h
        3       1       base/hash/sha1.h
... already applied (skipping).

Apply osr_fling_2745.patch in C:\CEF\chromium_git\chromium\src
        3       0       content/browser/renderer_host/input/fling_scheduler.cc
        11      0       content/browser/renderer_host/input/fling_scheduler_base.h
        5       0       content/browser/renderer_host/render_widget_host_impl.cc
        1       0       content/browser/renderer_host/render_widget_host_impl.h
... already applied (skipping).

Apply win_cpp17_msvc_sandbox_2819.patch in C:\CEF\chromium_git\chromium\src
        5       0       base/third_party/double_conversion/BUILD.gn
        3       0       base/win/BUILD.gn
... already applied (skipping).

Apply libxml_visibility.patch in C:\CEF\chromium_git\chromium\src
        1       0       third_party/libxml/BUILD.gn
... already applied (skipping).

Apply renderer_host_1070713.patch in C:\CEF\chromium_git\chromium\src
        2       0       content/browser/renderer_host/render_view_host_impl.cc
... already applied (skipping).

Apply browser_security_policy_1081397.patch in C:\CEF\chromium_git\chromium\src
        10      0       content/browser/child_process_security_policy_impl.cc
        15      0       content/browser/renderer_host/navigation_request.cc
... already applied (skipping).

Apply linux_chrome_page_info_1099927.patch in C:\CEF\chromium_git\chromium\src
        4       0       chrome/browser/ui/page_info/chrome_page_info_client.cc
... already applied (skipping).

Apply chrome_browser_background_mode_1100085.patch in C:\CEF\chromium_git\chromium\src
        7       0       chrome/browser/app_controller_mac.mm
        1       1       chrome/browser/browser_process.h
        1       5       chrome/browser/browser_process_impl.cc
        1       1       chrome/browser/browser_process_impl.h
        2       0       chrome/browser/lifetime/browser_close_manager.cc
... already applied (skipping).

Apply base_string_piece_1049498.patch in C:\CEF\chromium_git\chromium\src
        1       0       base/strings/string_piece.h
... already applied (skipping).

Apply linux_atk_1123214.patch in C:\CEF\chromium_git\chromium\src
        1       1       build/config/linux/atk/BUILD.gn
        1       1       build/config/linux/atspi2/BUILD.gn
... already applied (skipping).

Apply chrome_browser_privacy_1119417.patch in C:\CEF\chromium_git\chromium\src
        4       0       chrome/browser/privacy/BUILD.gn
        13      3       third_party/protobuf/proto_library.gni
... already applied (skipping).

73 patches total (0 applied, 73 skipped, 0 failed)

Generating CEF project files...
Python Traceback (most recent call last):
  File "tools\gclient_hook.py", line 146, in <module>
    RunAction(src_dir, cmd)
  File "C:\CEF\chromium_git\chromium\src\cef\tools\gclient_util.py", line 36, in RunAction
    command, cwd=dir, always_show_header=True, print_stdout=True)
  File "C:\CEF\depot_tools\gclient_utils.py", line 673, in CheckCallAndFilter
    rv, args, kwargs.get('cwd', None), command_output.getvalue(), None)
subprocess2.CalledProcessError: Command 'gn gen out\\Debug_GN_x64 --ide=vs2019 --sln=cef --filters=//cef/*' returned non-zero exit status 9009 in C:\CEF\chromium_git\chromium\src
Python

Re: Problem with building CEF

PostPosted: Fri Aug 06, 2021 1:45 am
by ValentinNikin
magreenblatt wrote:You can try running the gn command directly:


I tried but nothing happened:
Code: Select all
C:\CEF\chromium_git\chromium\src>gn gen out\Debug_GN_x64 --ide=vs2019 --sln=cef --filters=//cef/*'
Python


File chromium_git\chromium\src\out\Debug_GN_x86\cef.sln doesn't created

Re: Problem with building CEF

PostPosted: Fri Aug 06, 2021 1:59 am
by amaitland
The master build quick start guide is for producing a development build . You cannot use a development build in another application.

Use the arguments at https://bitbucket.org/chromiumembedded/ ... figuration

Re: Problem with building CEF

PostPosted: Fri Aug 06, 2021 6:26 am
by ValentinNikin
Hello, @amaitland Yes, I already see it.

Now I try to build with the next update.bat file (step 6, from here https://bitbucket.org/chromiumembedded/ ... ckStart.md)

Code: Select all
set CEF_USE_GN=1
set GN_DEFINES=is_official_build=true proprietary_codecs=true ffmpeg_branding=Chrome
set GN_ARGUMENTS=--ide=vs2019 --sln=cef --filters=//cef/*
C:\Users\nikin\AppData\Local\Programs\Python\Python39\python.exe ..\automate\automate-git.py --download-dir=c:\CEF\chromium_git --branch=4577 --minimal-distrib --client-distrib --x64-build --depot-tools-dir=c:\CEF\depot_tools



But I ran into the following problem

Code: Select all
Apply browser_security_policy_1081397.patch in c:\CEF\chromium_git\chromium\src
        10      0       content/browser/child_process_security_policy_impl.cc
        15      0       content/browser/renderer_host/navigation_request.cc
... successfully applied.

Apply linux_chrome_page_info_1099927.patch in c:\CEF\chromium_git\chromium\src
        4       0       chrome/browser/ui/page_info/chrome_page_info_client.cc
... successfully applied.

Apply chrome_browser_background_mode_1100085.patch in c:\CEF\chromium_git\chromium\src
        7       0       chrome/browser/app_controller_mac.mm
        1       1       chrome/browser/browser_process.h
        1       5       chrome/browser/browser_process_impl.cc
        1       1       chrome/browser/browser_process_impl.h
        2       0       chrome/browser/lifetime/browser_close_manager.cc
... successfully applied.

Apply base_string_piece_1049498.patch in c:\CEF\chromium_git\chromium\src
        1       0       base/strings/string_piece.h
... successfully applied.

Apply linux_atk_1123214.patch in c:\CEF\chromium_git\chromium\src
        1       1       build/config/linux/atk/BUILD.gn
        1       1       build/config/linux/atspi2/BUILD.gn
... successfully applied.

Apply chrome_browser_privacy_1119417.patch in c:\CEF\chromium_git\chromium\src
        4       0       chrome/browser/privacy/BUILD.gn
        13      3       third_party/protobuf/proto_library.gni
... successfully applied.

73 patches total (72 applied, 1 skipped, 0 failed)

Generating CEF project files...
Creating c:\CEF\chromium_git\chromium\src\out\Debug_GN_x64 directory.
Traceback (most recent call last):
  File "c:/CEF/chromium_git/chromium/src/build/vs_toolchain.py", line 584, in <module>
    sys.exit(main())
  File "c:/CEF/chromium_git/chromium/src/build/vs_toolchain.py", line 580, in main
    return commands[sys.argv[1]](*sys.argv[2:])
  File "c:/CEF/chromium_git/chromium/src/build/vs_toolchain.py", line 411, in CopyDlls
    _CopyDebugger(target_dir, target_cpu)
  File "c:/CEF/chromium_git/chromium/src/build/vs_toolchain.py", line 444, in _CopyDebugger
    raise Exception('%s not found in "%s"\r\nYou must install'
Exception: dbghelp.dll not found in "C:\Program Files (x86)\Windows Kits\10\Debuggers\x64\dbghelp.dll"
You must installWindows 10 SDK version 10.0.19041.0 including the "Debugging Tools for Windows" feature.
ERROR at //build/toolchain/win/BUILD.gn:54:3: Script returned non-zero exit code.
  exec_script("../../vs_toolchain.py",
  ^----------
Current dir: c:/CEF/chromium_git/chromium/src/out/Debug_GN_x64/
Command: c:/CEF/depot_tools/bootstrap-2@3_8_10_chromium_20_bin/python3/bin/python3.exe c:/CEF/chromium_git/chromium/src/build/vs_toolchain.py copy_dlls c:/CEF/chromium_git/chromium/src/out/Debug_GN_x64 Release x64
Returned 1 and printed out:

Copying C:\Windows\System32\msvcp140.dll to c:/CEF/chromium_git/chromium/src/out/Debug_GN_x64\msvcp140.dll...
Copying C:\Windows\System32\vccorlib140.dll to c:/CEF/chromium_git/chromium/src/out/Debug_GN_x64\vccorlib140.dll...
Copying C:\Windows\System32\vcruntime140.dll to c:/CEF/chromium_git/chromium/src/out/Debug_GN_x64\vcruntime140.dll...
Copying C:\Windows\System32\vcruntime140_1.dll to c:/CEF/chromium_git/chromium/src/out/Debug_GN_x64\vcruntime140_1.dll...
Copying C:\Windows\System32\ucrtbase.dll to c:/CEF/chromium_git/chromium/src/out/Debug_GN_x64\ucrtbase.dll...

See //BUILD.gn:73:1: which caused the file to be included.
group("gn_all") {
^----------------
Traceback (most recent call last):
  File "c:\CEF\chromium_git\chromium\src\cef\tools\gclient_hook.py", line 146, in <module>
    RunAction(src_dir, cmd)
  File "c:\CEF\chromium_git\chromium\src\cef\tools\gclient_util.py", line 35, in RunAction
    gclient_utils.CheckCallAndFilter(
  File "c:\CEF\depot_tools\gclient_utils.py", line 672, in CheckCallAndFilter
    raise subprocess2.CalledProcessError(
subprocess2.CalledProcessError: Command 'gn gen out\\Debug_GN_x64 --ide=vs2019 --sln=cef --filters=//cef/*' returned non-zero exit status 1 in c:\CEF\chromium_git\chromium\src
Traceback (most recent call last):
  File "c:/CEF/chromium_git/chromium/src/build/vs_toolchain.py", line 584, in <module>
    sys.exit(main())
  File "c:/CEF/chromium_git/chromium/src/build/vs_toolchain.py", line 580, in main
    return commands[sys.argv[1]](*sys.argv[2:])
  File "c:/CEF/chromium_git/chromium/src/build/vs_toolchain.py", line 411, in CopyDlls
    _CopyDebugger(target_dir, target_cpu)
  File "c:/CEF/chromium_git/chromium/src/build/vs_toolchain.py", line 444, in _CopyDebugger
    raise Exception('%s not found in "%s"\r\nYou must install'
Exception: dbghelp.dll not found in "C:\Program Files (x86)\Windows Kits\10\Debuggers\x64\dbghelp.dll"
You must installWindows 10 SDK version 10.0.19041.0 including the "Debugging Tools for Windows" feature.
ERROR at //build/toolchain/win/BUILD.gn:54:3: Script returned non-zero exit code.
  exec_script("../../vs_toolchain.py",
  ^----------
Current dir: c:/CEF/chromium_git/chromium/src/out/Debug_GN_x64/
Command: c:/CEF/depot_tools/bootstrap-2@3_8_10_chromium_20_bin/python3/bin/python3.exe c:/CEF/chromium_git/chromium/src/build/vs_toolchain.py copy_dlls c:/CEF/chromium_git/chromium/src/out/Debug_GN_x64 Release x64
Returned 1 and printed out:

Copying C:\Windows\System32\msvcp140.dll to c:/CEF/chromium_git/chromium/src/out/Debug_GN_x64\msvcp140.dll...
Copying C:\Windows\System32\vccorlib140.dll to c:/CEF/chromium_git/chromium/src/out/Debug_GN_x64\vccorlib140.dll...
Copying C:\Windows\System32\vcruntime140.dll to c:/CEF/chromium_git/chromium/src/out/Debug_GN_x64\vcruntime140.dll...
Copying C:\Windows\System32\vcruntime140_1.dll to c:/CEF/chromium_git/chromium/src/out/Debug_GN_x64\vcruntime140_1.dll...
Copying C:\Windows\System32\ucrtbase.dll to c:/CEF/chromium_git/chromium/src/out/Debug_GN_x64\ucrtbase.dll...

See //BUILD.gn:73:1: which caused the file to be included.
group("gn_all") {
^----------------

Traceback (most recent call last):
  File "C:\CEF\automate\automate-git.py", line 1462, in <module>
    run('%s %s' % (python_exe, tool), cef_src_dir, depot_tools_dir)
  File "C:\CEF\automate\automate-git.py", line 69, in run
    return subprocess.check_call(
  File "C:\Users\nikin\AppData\Local\Programs\Python\Python39\lib\subprocess.py", line 373, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['c:\\CEF\\depot_tools\\python3.bat', 'c:\\CEF\\chromium_git\\chromium\\src\\cef\\tools\\gclient_hook.py']' returned non-zero exit status 1.


My PC configuration just in case
Windows 10 Home,
AMD Ryzen 7 3700X 8-Core
32 GB RAM
Nvidia Geforce GT1030
Samsung SSD 970 EVO (500GB)
Visual Studio 2019 Community 16.10.4

Re: Problem with building CEF

PostPosted: Fri Aug 06, 2021 9:57 am
by ndesktop
Code: Select all
Exception: dbghelp.dll not found in "C:\Program Files (x86)\Windows Kits\10\Debuggers\x64\dbghelp.dll"
You must installWindows 10 SDK version 10.0.19041.0 including the "Debugging Tools for Windows" feature.

Either you did not installed SDK, or is it perhaps in a non-standard path?

Re: Problem with building CEF

PostPosted: Fri Aug 06, 2021 4:22 pm
by amaitland
ndesktop wrote:
Code: Select all
Exception: dbghelp.dll not found in "C:\Program Files (x86)\Windows Kits\10\Debuggers\x64\dbghelp.dll"
You must installWindows 10 SDK version 10.0.19041.0 including the "Debugging Tools for Windows" feature.

Either you did not installed SDK, or is it perhaps in a non-standard path?


If Visual Studio 2019 installed the Win 10 SDK, then you manually have to run the SDK installer and check the 'Debugging Tools for Windows'

Re: Problem with building CEF

PostPosted: Sat Aug 07, 2021 2:36 am
by amaitland

Re: Problem with building CEF

PostPosted: Mon Aug 09, 2021 4:58 am
by ValentinNikin
Hello, guys!

Thank you for help! Yes, problem was related with SDK. I removed version installed with Visual Studio, and install again from Microsoft official site.
Now project was build successfull.