简体   繁体   English

尝试在 Windows 上为 Android 构建 Chromium 时,gclient runhooks 抛出错误

[英]gclient runhooks throwing error when trying to build Chromium for Android on Windows

I've tried to build chromium android app on Windows.我试图在 Windows 上构建铬 android 应用程序。 I've run gclient sync then I tried to run gclient runhooks .我已经运行gclient sync然后我尝试运行gclient runhooks

I'm getting this error message我收到此错误消息

Running hooks:  52% (51/97) Fetch Android AFDO profile
________ running 'vpython.bat src/tools/download_optimization_profile.py --newest_state=src/chrome/android/profiles/newest.txt --local_state=src/chrome/android/profiles/local.txt --output_name=src/chrome/android/profiles/afdo.prof --gs_url_base=chromeos-prebuilt/afdo-job/llvm' in 'D:\chromium'
Traceback (most recent call last):
  File "src/tools/download_optimization_profile.py", line 125, in <module>
    sys.exit(main())
  File "src/tools/download_optimization_profile.py", line 121, in main
    RetrieveProfile(up_to_date_profile, new_tmpfile, args.gs_url_base)
  File "src/tools/download_optimization_profile.py", line 77, in RetrieveProfile
    CheckCallOrExit(['bzip2', '-d', out_path])
  File "src/tools/download_optimization_profile.py", line 37, in CheckCallOrExit
    proc = subprocess.Popen(cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
  File "D:\Android\depot_tools\bootstrap-3_8_0_chromium_8_bin\python\bin\Lib\subprocess.py", line 394, in __init__
    errread, errwrite)
  File "D:\Android\depot_tools\bootstrap-3_8_0_chromium_8_bin\python\bin\Lib\subprocess.py", line 644, in _execute_child
    startupinfo)
WindowsError: [Error 2] The system cannot find the file specified
Error: Command 'vpython.bat src/tools/download_optimization_profile.py --newest_state=src/chrome/android/profiles/newest.txt --local_state=src/chrome/android/profiles/local.txt --output_name=src/chrome/android/profiles/afdo.prof --gs_url_base=chromeos-prebuilt/afdo-job/llvm' returned non-zero exit status 1 in D:\chromium

You can view supported distros to build Chromium in src/build/install-build-deps.sh, as for now it can run on the following distros:您可以在 src/build/install-build-deps.sh 中查看支持的发行版来构建 Chromium,因为目前它可以在以下发行版上运行:

  • Ubuntu 14.04 LTS (trusty with EoL April 2022) Ubuntu 14.04 LTS(2022 年 4 月 EoL 受信任)
  • Ubuntu 16.04 LTS (xenial with EoL April 2024) Ubuntu 16.04 LTS(xenial,2024 年 4 月停产)
  • Ubuntu 18.04 LTS (bionic with EoL April 2028) Ubuntu 18.04 LTS(2028 年 4 月 EoL 仿生)
  • Ubuntu 20.04 LTS (focal with Eol April 2030) Ubuntu 20.04 LTS(2030 年 4 月停产)
  • Ubuntu 19.04 (disco) Ubuntu 19.04(迪斯科)
  • Ubuntu 19.10 (eoan) Ubuntu 19.10 (eoan)
  • Debian 8 (jessie) or later Debian 8(杰西)或更高版本

You are trying to build Chromium for Android using Windows, which is not supported at all .您正在尝试使用 Windows 为 Android 构建 Chromium,这根本不受支持 Even macOS is not supported for building Chromium for Android.甚至 macOS 也不支持为 Android 构建 Chromium。 You should try to build it from Linux, more specifically Ubuntu to build it.您应该尝试从 Linux 构建它,更具体地说是 Ubuntu 来构建它。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM