Difference between revisions of "How to install Qt Creator"

From IGEP - ISEE Wiki

Jump to: navigation, search
 
(3 intermediate revisions by the same user not shown)
Line 3: Line 3:
 
== Overview  ==
 
== Overview  ==
 
<section begin=overview />
 
<section begin=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 [http://qt.nokia.com/ here].  
+
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 [http://www.qt.io/ here].  
  
 
'''NOTE:''' If you use IGEP&nbsp;SDK&nbsp;Virtual Machine you don't need to follow this guide, go directly to [[How to develop with Qt under IGEP Technology|How to develop with Qt under IGEP Technology]]
 
'''NOTE:''' If you use IGEP&nbsp;SDK&nbsp;Virtual Machine you don't need to follow this guide, go directly to [[How to develop with Qt under IGEP Technology|How to develop with Qt under IGEP Technology]]
Line 12: Line 12:
 
*PC with Linux, for example [http://www.ubuntu.com/ Ubuntu] distribution.  
 
*PC with Linux, for example [http://www.ubuntu.com/ Ubuntu] distribution.  
 
*[https://www.isee.biz/support/downloads/item/igep-sdk-yocto-toolchain-1-2-2-3 IGEP SDK Yocto Toolchain ]  
 
*[https://www.isee.biz/support/downloads/item/igep-sdk-yocto-toolchain-1-2-2-3 IGEP SDK Yocto Toolchain ]  
*[https://qt-project.org/downloads Qt SDK]<br>
+
*[http://www.qt.io/ Qt SDK]<br>
  
 
== Install Qt SDK (Qt-Creator)  ==
 
== Install Qt SDK (Qt-Creator)  ==
Line 18: Line 18:
 
=== Before install  ===
 
=== Before install  ===
  
Download the latest release of Qt SDK: https://qt-project.org/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.  
+
Download the latest release of Qt SDK: http://www.qt.io/download/. 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:  
 
Maybe you want to install build essential to test programs in your Host computer. Install it using the next command:  

Latest revision as of 11:26, 1 July 2015

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://www.qt.io/download/. 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 Gcc, 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.

...


Igep forum.png If you have any question, don't ask to ask at the IGEP Community Forum or the IGEP Community Chat Irc.png