My favorites | Sign in
Project Home Wiki Issues Source
Search
for
GettingTheSource  
How to see, download, and build the Dart source code
Updated Oct 25, 2011 by iposva@google.com

This page tells you how to get and build the Dart source code. You can also browse the repository or list the changes.

If your machine is already set up to build Chromium, then you should have all the prerequisites for building Dart. Otherwise prepare your machine according to these instructions: PreparingYourMachine.

Getting the source

Create a directory into which you want to checkout the Dart sources and change into that directory.

Getting everything

gclient config http://dart.googlecode.com/svn/trunk/deps/all.deps
gclient sync

For instructions on how to build and test, refer to Building everything.

Getting the standalone VM

gclient config http://dart.googlecode.com/svn/trunk/deps/standalone.deps
gclient sync

For instructions on how to build and test, refer to Building the standalone VM.

Attention Committers:

For all instructions above, use https instead of http, and replace trunk with branches/bleeding_edge or use the instructions from the Contributing wiki page. Also use your Google Code password when prompted.

Comment by hancock.robert, Oct 10, 2011

Any suggestions on how to cure this?

gclient config http://dart.googlecode.com/svn/trunk/deps/standalone.deps gclient sync

Traceback (most recent call last):

File "dart/tools/get_drt.py", line 164, in <module>
sys.exit(main())
File "dart/tools/get_drt.py", line 125, in main
pattern, str(out)))
Exception: Couldn't retrieve DumpRenderTree?: gs://dart-dump-render-tree/latest/chromium-lucid64-103752.zip

Error: Command /usr/local/bin/python dart/tools/get_drt.py runhooks returned non-zero exit status 1 in /home/rhancock

Comment by philip...@gmail.com, Oct 10, 2011

I just got the same error...==!

Comment by droi...@gmail.com, Oct 10, 2011

On CentOS 5.7 I had to build a local copy of Python 2.7.2 to get gclient working. The default version installed (2.4.3) was causing the following error:

Traceback (most recent call last):
  File "/home/andy/code/depot_tools/gclient.py", line 68, in ?
    import gclient_scm
  File "/home/andy/code/depot_tools/gclient_scm.py", line 14, in ?
    import gclient_utils
  File "/home/andy/code/depot_tools/gclient_utils.py", line 17, in ?
    import subprocess2
  File "/home/andy/code/depot_tools/subprocess2.py", line 228
    with tempfile.TemporaryFile() as buff:
                ^
SyntaxError: invalid syntax
Comment by rodri...@gmail.com, Oct 10, 2011

Using Python 2.7.2 and I'm getting:

Traceback (most recent call last):
  File "C:\Users\Rokko\depot_tools\bootstrap\\..\gclient.py", line 54, in <module>
    import copy
  File "C:\Python\lib\copy.py", line 52, in <module>
    import weakref
  File "C:\Python\lib\weakref.py", line 12, in <module>
    import UserDict
  File "C:\Python\lib\UserDict.py", line 84, in <module>
    _abcoll.MutableMapping.register(IterableUserDict)
  File "C:\Python\lib\abc.py", line 109, in register
    if issubclass(subclass, cls):
  File "C:\Python\lib\abc.py", line 184, in __subclasscheck__
    cls._abc_negative_cache.add(subclass)
  File "C:\Python\lib\_weakrefset.py", line 84, in add
    self.data.add(ref(item, self._remove))
TypeError: cannot create weak reference to 'classobj' object
Comment by brycehen...@gmail.com, Oct 11, 2011

Re: DumpRenderTree?- I followed the instructions on the console and the problem was resolved

*******************************************************************************
* WARNING: Can't download DumpRenderTree! This is required to test client apps.
* You need to do a one-time configuration step to access Google Storage.
* Please run this command and follow the instructions:
*     third_party/gsutil/20110627/gsutil config
*
* NOTE: When prompted you can leave "project-id" blank. Just hit enter.
*******************************************************************************
Comment by qbr...@gmail.com, Oct 15, 2011

Sync will fail on windows as of today. To work around, see  issue 109  .

Comment by arun.tay...@gmail.com, Oct 20, 2011

Re: DumpRenderTree? -- I encountered the same problem. In my case here is no gsutil directory in third_party. I have the following

init.py pymox repo simplejson upload.py

Any ideas on how to move forward?

Comment by sta...@gmail.com, Nov 23, 2011

Re: Above

sudo apt-get install gsutil

gclient sync

Comment by Anwu...@gmail.com, Nov 24, 2011

my python.bat @echo off setlocal set PATH=%~dp0python_bin;%PATH% set PYTHONHOME=%~dp0python_bin "%~dp0python_bin\python.exe" %

Comment by nitisha...@gmail.com, Nov 27, 2011

The sync stops after 88% it stops after 88% 1>At revision 1856. 1>Syncing projects: 0% ( 0/ 3) 2> running 'svn update /home/nitish/dart --non-interactive --accept postpone --ignore-externals' in '/home/nitish' 2>At revision 1856. 8> running 'svn update /home/nitish/dart/third_party/v8 --non-interactive --accept postpone --ignore-externals' in '/home/nitish' 8>At revision 10072. Syncing projects: 88% (8/9), done./third_party/v8 nitish@nitish-VGN-SR46GD-B:~$ mv gsutil ./depot_tools/third_party/ gsutil' -> ./depot_tools/third_party/gsutil' nitish@nitish-VGN-SR46GD-B:~$ gclient sync 1> running 'svn update /home/nitish/all.deps --non-interactive --accept postpone --ignore-externals' in '/home/nitish' 1>At revision 1856. 1>Syncing projects: 0% ( 0/ 3) 2> running 'svn update /home/nitish/dart --non-interactive --accept postpone --ignore-externals' in '/home/nitish' 2>At revision 1856. 8> running 'svn update /home/nitish/dart/third_party/v8 --non-interactive --accept postpone --ignore-externals' in '/home/nitish'

previously i had to install gsutil for gsutil config but now it's not completing


Sign in to add a comment
Powered by Google Project Hosting