Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
344 views
in Technique[技术] by (71.8m points)

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

I've tried to build chromium android app on Windows. I've run gclient sync then I tried to run 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:Androiddepot_toolsootstrap-3_8_0_chromium_8_binpythoninLibsubprocess.py", line 394, in __init__
    errread, errwrite)
  File "D:Androiddepot_toolsootstrap-3_8_0_chromium_8_binpythoninLibsubprocess.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

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

You are trying to build Chromium for Android using Windows, which is not supported at all. Even macOS is not supported for building Chromium for Android. You should try to build it from Linux, more specifically Ubuntu to build it.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...