Arduino 1.0.5 and Atmel templates for Qt Creator 3.0.1 and Ubuntu 14.04

This article explains how to install Arduino Templates for Qt-Creator. This tutorial is based on the following versions of software:

Install packet

First, launch a terminal (ctrl-alt-t) and install Qt Creator:

sudo apt-get install qtcreator

Now install Arduino core:

sudo apt-get install arduino-core

Install Arduino Makefile:

sudo apt-get install arduino-mk

In the same way, install GTK terminal:

sudo apt-get install gtkterm

Installing the templates

Download and extract this archive:

Arduino and AVR template for Qt Creator

Copy folders in the Qt Creator Template directory:

cd path/to/downloaded/archive
sudo cp -R atmega/ /usr/share/qtcreator/templates/wizards/
sudo cp -R arduino/ /usr/share/qtcreator/templates/wizards/

Change read-acess rights for any user to the template folder:

sudo chmod -R 755 /usr/share/qtcreator/templates/wizards/arduino/

Start or restart Qt Creator for the new templates to be available:

Qt Wizard for arduino and Amega projects

USB rights

Some programming devices like AVRISPmkII requires rights on USB devices. This can be done by adding a rules file (provided in the archive):

sudo cp 60-avrisp.rules /etc/udev/rules.d/

For changes to be applied, restart USB services:

sudo service udev restart

Note that if an AVRISPmkII device is connected, unplug and replug.

Add the current user to the dialout group:

sudo usermod -a -G dialout $(whoami)

Close your session to apply changes.

Qt Creator project configuration

Previous steps have to be done only once. But the following has to be done every time a new project is created. Create a new Arduino project through the Wizard. Once the project is created, go in the menu Tools>Option, change the terminal to xterm:

Change terminal configuration in Qt Creator

In the project Tab (left of the screen) select Build Settings. Add /src at the end of the build directory :

Set generic manager in Qt Creator

In build steps (if it not already done) select make all:

Select Make all in build steps in Qt Creator

In Clean steps, select make clean:

Select Make all in clean steps in Qt Creator

Go to the second tab : Run Settings, and set the following parameters:

Set parameters in the Run settings of Qt creator project

Click run, the program should compile and upload in the Arduino.

Acknoledgments

Thanks to Mauro Giampieri for his proposal and improvements.

See also


Last update : 10/13/2021