Personal tools

Log in

Changes

From IGEP - ISEE Wiki

Jump to: navigation, search

How to install Qt Creator

3,988 bytes added, 13:10, 20 August 2012
Created page with '= 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 fram…'
= 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 [http://qt.nokia.com/ 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|How to develop with Qt under IGEP Technology]]

== Requirements ==

*PC with Linux, for example [http://www.ubuntu.com/ Ubuntu] distribution.
*[http://www.isee.biz/component/zoo/item/igep-yocto-toolcahin-sdk IGEP YOCTO Toolchain SDK]
*[http://qt.nokia.com/downloads Qt SDK]<br>

== Install Qt SDK (Qt-Creator) ==

=== Before install ===

Download the latest release of Qt SDK: http://qt.nokia.com/downloads. Chose 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:
<pre>sudo apt-get install build-essential </pre>
=== 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:
<pre>chmod u+x &lt;downloaded_file.run&gt;</pre>
You should now be able to execute the file as normal. You can do this from the command line by typing:
<pre>./&lt;downloaded_file.run&gt; </pre>
Now follow this steps to install Qt Creator

{| cellspacing="1" cellpadding="1" border="1" width="200"
|-
| [[Image:Installqtsdk1.png|250px]]
| [[Image:Installqtsdk2.png|250px]]
| [[Image:Installqtsdk3.png|250px]]
|-
| [[Image:Installqtsdk4.png|250px]]
| [[Image:Installqtsdk5.png|250px]]
| [[Image:Installqtsdk6.png|250px]]
|}

'''<sup>Click to enlarge image</sup>'''

== 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 ===

{{#lst:How to setup a cross compiler|install_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:

{| cellspacing="1" cellpadding="1" border="1" width="800"
|-
| '''''#! /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&amp;Run. Select Qt versions flag, add qmake from Yocto SDK:

{| cellspacing="1" cellpadding="1" border="1" width="200"
|-
| [[Image:Qtversionssnapshoot.png|496px]]
|}

'''<sup>Click to enlarge image</sup>'''

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

*Go to Tools→ Options... → Build&amp;Run. Select Qt versions flag, add Gpp and Gdb from SDK:

{| cellspacing="1" cellpadding="1" border="1" width="200"
|-
| [[Image:Toolchainssnapshoot.png|496px]]
|}

'''<sup>Click to enlarge image</sup>'''

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]])''

{{#lst:How to develop with Qt under IGEP Technology|overview}}

...
4,199
edits