NOTE: When prompted you can leave "project-id" blank. Just hit enter.
******************************************************************************
Error: Command /usr/bin/python dart/tools/get_drt.py runhooks returned non-zero exit status 1 in /Users/shiori/chromium
おっと、エラーのようです。
gsutilの設定がなされていないために出るようです。
というわけで、gsutilの設定を行います。
$ dart/third_party/gsutil/20110627/gsutil config
- 略 -
Please navigate your browser to the following URL:
https://accounts.google.com/o/oauth2/auth? - 略 -
In your browser you should see a page that requests you to authorize gsutil to access
Google Storage on your behalf. After you approve, an authorization code will be displayed.
Enter the authorization code:
と表示されて、止まると思います。
URLをコピーしてブラウザでアクセスすると、コードが手に入ります。
コードを貼りつけて、リターンを押すと・・・
What is your project-id?
で、また止まると思います。
ここは、そのままリターンでもOKぽいのでスルーします。
設定が終わったら、
$ gclient sync
無事、ダウンロードが完了です。
つづいて、Dartをビルドします。
$ cd dart
$ ./tools/build.py --arch=ia32
xcodebuild -project dart.xcodeproj -target All -parallelizeTargets -configuration Debug_ia32 SYMROOT=/Users/shiori/chromium/dart/xcodebuild
Build settings from command line:
SYMROOT = /Users/shiori/chromium/dart/xcodebuild
=== BUILD AGGREGATE TARGET js2c OF PROJECT v8 WITH CONFIGURATION Debug_ia32 ===
Check dependencies
=== BUILD AGGREGATE TARGET generate_corelib_cc_file OF PROJECT dart-runtime WITH CONFIGURATION Debug_ia32 ===
=== BUILD AGGREGATE TARGET generate_corelib_impl_cc_file OF PROJECT dart-runtime WITH CONFIGURATION Debug_ia32 ===
=== BUILD NATIVE TARGET v8_base OF PROJECT v8 WITH CONFIGURATION Debug_ia32 ===
BUILD FAILED **
BUILD FAILED
はい、失敗。
非推奨であるXcode4以降を使っているのが原因みたいです。
dart/tools/build.pyの108行目を次のように変更します。
args = ['xcodebuild',
'-sdk',
'macosx10.6',
'-project',
project_file,
'-target',
target,
'-parallelizeTargets',
'-configuration',
build_config,
再び、
$ ./tools/build.py --arch=ia32
- 略 -
=== BUILD AGGREGATE TARGET All OF PROJECT dart WITH CONFIGURATION Debug_ia32 ===
Check dependencies