Open main menu

DAVE Developer's Wiki β

Changes

Building the SDK
=== Preparing the building environment ===
* Ubuntu cross-toolchain for ARM has to be installed, using <code>apt-get</code>
sudo apt-get install git python3 curl xz-utils sudo apt-get install gcc-arm-linux-gnueabihf g++-9-arm-linux-gnueabihf gcc-multilib sudo apt-get install g++-arm-linux-gnueabihf g++-multilib zip 
=== Building the SDK ===
The git repository from Google source can be cloned
Receiving objects: 100% (51219/51219), 37.00 MiB | 3.71 MiB/s, done.
Resolving deltas: 100% (37978/37978), done.
dvdk@vagrant:~/dart$ export PATH="$PATH:$PWD/depot_tools"
dvdk@vagrant:~/dart$
</pre>
fetch dart
</pre>
* now it is possible to checkout the <code>master</code> branch
git checkout master
* then, the <code>linux</code> target can be selected and synced
<pre class="workstation-terminal">
* ''for building'' the SDK, a dedicated Python script can be used
<pre>
export PATH="$PATH:$PWD/depot_tools"cd dart-sdk/sdk
./tools/build.py
</pre>
''You can also produce only a Dart VM runtime, no SDK, by replacing create_sdk with runtime. This process involves also building a VM that targets ia32/x64, which is used to generate a few parts of the SDK''
 
== Installing the SDK in the target ==
Once the SDK image has been created, it is possible to create an archive and copy it in the target (for example using ''scp'' or ''ftp''):
8,186
edits