Posts tagged: google

Getting Googles Dart installed on MacOS X

So, today it finally became available for the public. And since it sounds really promising, I thought it might be good to get it going right away. Oh, btw, in my opinion the possibility to switch from a quick-and-dirty approach with dynamically typed variables at the beginning for prototyping to statically typed variables as the project evolves sounds just right. No need to decide upfront whether to go for the big-overhead-framework or the simplest possible approach as this simply develops as needed by adding libraries or adding domain specific features. Sounds great, let’s see if they can get some grip soon. For those interested in finding out more, read the introduction to Dart.

On their pages they do also explain how to get Dart up and running, I will follow those instructions and will summarize the steps necessary:

  1. Install XCode >= 3.2 (I assume you have this already, if not, install it from your MacOS X installation DVD)
  2. Install the depot_tools and add them to your path:
    cd ~/workspace/dart
    svn co http://src.chromium.org/svn/trunk/tools/depot_tools
    export PATH="$PATH":`~/workspace/dart/depot_tools
  3. checkout the Dart sources (this may take a while depending on your connection):
    gclient config http://dart.googlecode.com/svn/trunk/deps/all.deps
    gclient sync
  4. at the end of the sync I get a message that DumpRenderTree could not be downloaded and I need to execute another command. So I do:
    third_party/gsutil/20110627/gsutil config
  5. This tool prompts for a lot of setup and configuration, such as setting up your Google Account for use with Dart. I won’t repeat all the steps here as they may not be applicable to you. But you will need a Google Account and the Cloud Storage activated.
  6. Ok, building Dart now:
    ./tools/build.py --arch=ia32
    
  7. That is just what I want to see:
    === BUILD AGGREGATE TARGET All OF PROJECT dart WITH CONFIGURATION Debug_ia32 ===
    Check dependencies
    ** BUILD SUCCEEDED **
    
  8. Now I’m running the tests to check whether all is fine:
    ./tools/test.py --arch=ia32,dartc,chromium
  9. This did not go through completely and it seems DumpRenderTree has not been installed properly. I got to check this out, but hope you’ve been more successful so far. I will be back. Nevertheless I can run the other tests separately:
    ./tools/test.py --arch=ia32,dartc
    
Use a Highlighter on this page