This tutorial provides Raspberry Pi specific installation instructions and general remarks to work with the SmartMDSD Toolchain and the Raspberry Pi.
|Assumptions||Basic understanding of Raspberry Pi Operating System is beneficial, but not required|
|System Requirements||Having a configured Raspberry Pi with an internet connection. This tutorial has been tested with Raspbian GNU/Linux 9 and 10 Operating System, running on Raspberry Pi 2 Model B v1.1 and Pi 4|
|You will learn||How to install the SmartMDSD Toolchain on a Raspberry Pi|
This tutorial will install SmartSoft on the RaspberryPi. The installation is based on Raspbian Stretch Operating System with desktop for the RaspberryPi.
This tutorial uses the official installer but adapts some steps specifically for the RaspberryPi. In summary, it differs as follows:
Note: Development of software components on the PI will not work with the binary release of the SmartMDSD Toolchain as they are compiled for i86 architectures, not for ARM.
Skipp this section for newer Raspbian versions, default compiler is working fine!
Before we install SmartSoft, open a terminal and execute the following commands in order to install a compatible C++ compiler and Xterm on your Raspberry Pi:
- sudo apt-get install xterm
- sudo apt-get install gcc-5 g++-5
- sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-5 1
- sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-5 1
Verify that your compiler is g++ version 5 by writing in terminal “g++ -v”
If you see the gcc version 5.* you are ready to proceed
Create a folder in your home directory on Raspberry Pi and start the installation by writing in a terminal:
mkdir ~/SOFTWARE/ cd ~/SOFTWARE/ wget https://github.com/Servicerobotics-Ulm/UtilityRepository/raw/master/smartsoft-install-updatescript.sh bash smartsoft-install-updatescript.sh
In the installer menu, uncheck option 2 “Update/Install SmartMDSD Toolchain to latest version”, since the precompiled binary will not work on ARM. Press 'OK'.
A similarly looking window will pop up. In the Install ACE/SmartSoft and dependencies on a clean system window, uncheck option 1.4)Install additional generic packages (optional) and press 'OK'.
The installation will take some time.
The support for Raspberry Pi is experimental. Some software components are not going to compile on the RaspberryPi. If this is the case, do not abort the script, but choose to proceed in any error message:
If you see the following selected line, your installation is complete:
Go to ~/SOFTWARE/smartsoft directory
Start the naming service using the following command:
Once the naming service is running, start exampleComponent101 by writing in terminal:
If you see this, you have successfully installed SmartSoft on your Raspberry Pi!
Now you can proceed with tutorial Developing Software Components for the Raspberry Pi using GPIO Pins