Setting up DevTools on Raspberry PI OS

Examples and getting started

Download the example source files here

Java , C++ and Python examples will assemble with no extra work, but C# and FreeBasic need installing

Scratch is included as a desktop app on the latest PIs, You can download it for your desktop here,
however it doesn't need installing, You can use scratch online Here

Downloading a Raspberry pi OS image

On a Raspberry Pi On a desktop PC
Download for the raspberry Pi here

You will only need a 16 gb or so SD card
We can install the PC version of the raspberry OS onto a virtual machine...

Download the ISO here

You can download a pre-installed VMware disk image here

Compiling an example

We can run all of our programs using Geany.

It can be found on the Programming menu.
There are three stages to running a program.

1. Compile it
2. Build the executable
3. Run it with the Run/Stop button.

Note: Some languages don't need stage 2

Installing C# support

To compile C# we must install Mono!

This can be done with 'Add / Remove Software' from the preferences menu


Alternatively, You can install from the command line with:

sudo apt-get install mono-complete


Installing FreeBasic support

Freebasic has quite a few dependencies which probably aren't installed!

Check these are installed in 'Add / Remove software'

libncurses5
libncurses5-dev
libX11-dev
libXext-dev
libXpm-dev
libXrandr-dev









Download the latest FreeBasic build here for ARM Rasperry PI, or here for x86 PC

Extract the zip file, and install from the terminal with:
chmod 777 install.sh
sudo ./install.sh -i



Extra stuff you don't need!...

Creating ASM files when compiling C


C code compiles to Assembly language machine code.

We won't be covering Assembly in these tutorials, but if you want to see how C code compiles to Assembly, you can set up GCC to export the compiled ASM file as a .S file.

With a .C file open in the editor

Select Build menu -> Set Build commands

replace the compile command with

gcc -Wall -fverbose-asm -S -c "%f"

When you build a .C file, an .S file will be created containing the assembly source code.