-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Contributing
Tip: Don't want to build Dart from source? Grab binaries of the Dart SDK, or Dartium.
Dart is built using much of the same tools as Chromium, so the steps here are similar to what you'll find for setting that up. If your machine is already setup to build Chromium you should be good to go and can skip the steps below.
- Install the Linux build prerequisites. In particular you might need to install the 32-bit libraries on a 64-bit Linux system by following the Automated Setup instructions.
If you run Ubuntu, you can try this script that should install all of the dependencies for you. This script is optional; you can always install all the build tools by hand.
You might need to get GCC 4.6 to compile the 64 bit version of the VM. These instructions helped me, when on Ubuntu 10.04: http://www.faqoverflow.com/superuser/310809.html
$ wget http://src.chromium.org/svn/trunk/src/build/install-build-deps.sh
OR
$ svn co http://src.chromium.org/chrome/trunk/src/build; cd build
Then,
$ chmod u+x install-build-deps.sh
$ ./install-build-deps.sh --no-chromeos-fonts
- If using 64-bit Ubuntu, install the 32-bit development libraries.
$ sudo apt-get install libc6-dev-i386 g++-multilib
- Install depot tools, adding it to your
PATH
environment variable:
$ cd <directory where you want the depot_tools to live>
$ git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git
$ export PATH=$PATH:`pwd`//depot_tools
Other notes:
- If cross-compiling for ARM, also pass --arm to install-build-deps.sh
- If the include directory /usr/include/openssl/ is missing, you need to install the libssl-dev package (sudo apt-get install libssl-dev).
- More details can be found in chromium's build instructions for linux.
- You might way to try this script to install depot_tools.
- Install Xcode
- Install depot_tools by following the Chrome Mac Build Instructions. Or, try this script to install depot_tools.
- Install any version of Visual Studio. * Follow the instructions here to setup chromium specific dependencies.
- Install depot_tools.
- If you are planning on running the test suite it is beneficial to disable crash pop ups, see here
Important
The wiki has moved to https://github.com/dart-lang/sdk/tree/main/docs; please don't edit the pages here.