How to install Qt Creator

From IGEP - ISEE Wiki

Revision as of 12:32, 21 August 2012 by Pau (talk | contribs)

Jump to: navigation, search

How to install Qt Creator

Overview

This guide can be helpful to install and configure Qt SDK in your Linux Operating system. Qt is a cross-platform application framework that is widely used for developing application software with a graphical user interface, and also used for developing non-GUI programs such as command-line tools and consoles for servers. You can get more information here.

NOTE: If you use IGEP SDK Virtual Machine you don't need to follow this guide, go directly to How to develop with Qt under IGEP Technology


Requirements

Install Qt SDK (Qt-Creator)

Before install

Download the latest release of Qt SDK: http://qt.nokia.com/downloads. Choose Linux Operating System and 32 or 64 bits installer depends your machine. We recommend to use the Offline Installer because its faster than the other one.

Maybe you want to install build essential to test programs in your Host computer. Install it using the next command:

sudo apt-get install build-essential 

Installations steps

You need to make the downloaded file executable in order to run it. You can either do this with your desktop's file manager or, at the command line, type:

chmod u+x <downloaded_file.run>

You should now be able to execute the file as normal. You can do this from the command line by typing:

./<downloaded_file.run> 

Now follow this steps to install Qt Creator

Installqtsdk1.png Installqtsdk2.png Installqtsdk3.png
Installqtsdk4.png Installqtsdk5.png Installqtsdk6.png

Click to enlarge image

Configure Yocto SDK

By default Qt-Creator can compile programs for x86 systems and Harmattan platforms. Now, you need to add support for IGEP Platform using Yocto SDK.

Install Yocto SDK

Add extra environment variables

Yocto SDK uses some environment variables that are not load in Qt-creator by default, It is necessary to add these parameters when program starts up.

Close Qt-Creator and edit the following file: ~/QtSDK/QtCreator/bin/qtcreator.sh. Add the following bold lines at the begining and save changes:

#! /bin/bash

source /opt/poky/1.2/environment-setup-armv7a-vfp-neon-poky-linux-gnueabi

makeAbsolute() {

Now, you should run qtcreator.sh script to start up Qt-Creator.

Add Gpp, Gdb and Qmake to SDK.

  • Go to Tools→ Options... → Build&Run. Select Qt versions flag, add qmake from Yocto SDK:
Qtversionssnapshoot.png

Click to enlarge image

NOTE: Don't worry if Qt-creator don't recognize ABI.

  • Go to Tools→ Options... → Build&Run. Select Qt versions flag, add Gpp and Gdb from SDK:
Toolchainssnapshoot.png

Click to enlarge image

Compiler path: /opt/poky/1.2/sysroots/i686-pokysdk-linux/usr/bin/armv7a-vfp-neon-poky-linux-gnueabi/arm-poky-linux-gnueabi-g++

Debugger: /opt/poky/1.2/sysroots/i686-pokysdk-linux/usr/bin/armv7a-vfp-neon-poky-linux-gnueabi/arm-poky-linux-gnueabi-gdb

How to develop with Qt under IGEP Technology

(from How to develop with Qt under IGEP Technology)

This guide can be helpful to learnt to develop Qt applications under IGEP Boards. Qt is a cross-platform application framework that is widely used for developing application software with a graphical user interface, and also used for developing non-GUI programs such as command-line tools and consoles for servers. You can get more information here.

...