Menu

BuildScript Log in to Edit

Building and Installing an Ada Cross Compiler using the Build Script

The AVR-Ada build script is designed to make it as easy as possible for beginners and experts alike to build the cross compiler for AVR-Ada. In the source package, avr-ada-1.2.1.tar.bz2, it is found in the "tools/build" folder.

With the default values the build script will download the required files using wget and cvs then prepare the files and build the cross compiler without any interaction from the user. To invoke this behaviour simply create an empty directory that the script can use to save files and create temporary files in.

mkdir AVR-ADA

Then save the script to the empty directory (in the example AVR-ADA) and change directories into it. (N.B. This step is important as the script automatically detects and uses the current directory)

cd AVR-ADA

Simply invoke the script with:

./build-avr-ada.sh

N.B. The build script is written for BASH, if you use another shell then invoke the script with:

bash ./build-avr-ada.sh

The script relies on some common tools available on most Unix systems such as wget, cvs, tar, flex, bison, regex, gettext, autoconf & automake. Although these tools are available on most *nix systems they are not generally available on Windows. To build AVR-Ada on Windows you are going to need to install a Unix like environment such as MinGW/MSYS (www.mingw.org).

This script has been tested on Windows XP with the following tools for AVR-Ada V1.1. (Update required for V1.2!)

The installers should be run and installed (in the example in C:msys1.0) and the tarballs should be extracted (in the example they should be extracted to C:msys1.0).

N.B. The order is important so install/extract the files in order from first listed through to last.

7-Zip is a great Windows utility to handle Unix style archives and is required to open 7z archives (eg. gcc-4.3.0).


Related

Wiki: Setup

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.