Difference between revisions of "Configuring Qt Creator"

From wiki.emacinc.com
Jump to: navigation, search
m (Marked Buggy due to too many issues.)
Line 1: Line 1:
{{todo| Final Draft (11.09.2015-13:55->KY+)(11.13.2015-13:00->MG+)|Brian Serrano|project=oe 5,bs,ky,mg,Final Draft}}
+
{{todo| Buggy (11.09.2015-13:55->KY+)(11.13.2015-13:00->MG+)|Brian Serrano|project=oe 5,bs,ky,mg,md,Buggy}}
  
 
{{#seo:
 
{{#seo:
Line 10: Line 10:
  
 
==Configure Kits in Qt Creator==
 
==Configure Kits in Qt Creator==
 +
 +
{{ warning | This assumes the Qt Creator install is in the user's home directory, but it doesn't say anything about that ahead of time.  There's no background information, pre-reqs, etc.  This page is unfinished.}}
 +
 
<cl>
 
<cl>
 
1. Open Qt Creator
 
1. Open Qt Creator
<syntaxhighlight lang="console">
+
{{cli | username=developer | hostname=ldc |/home/developer/qtcreator-3.1.0/bin/qtcreator}}
developer@ldc:~$ /home/developer/qtcreator-3.1.0/bin/qtcreator
 
</syntaxhighlight>
 
  
 
* Click Tools->Options...
 
* Click Tools->Options...
Line 75: Line 76:
 
<br clear=all>
 
<br clear=all>
 
</cl>
 
</cl>
 +
 +
{{ warning | There's no conclusion}}
 +
 +
{{ warning | There's no, "Where to Go Next."}}

Revision as of 16:42, 13 November 2015

TODO: {{#todo: Buggy (11.09.2015-13:55->KY+)(11.13.2015-13:00->MG+)|Brian Serrano|oe 5,bs,ky,mg,md,Buggy}}



NOTE
The target_arch variable referenced below can either be armv5e-emac-linux-gnueabi for ARM targets or i586-emac-linux for x86 targets.


Configure Kits in Qt Creator

WARNING!
This assumes the Qt Creator install is in the user's home directory, but it doesn't say anything about that ahead of time. There's no background information, pre-reqs, etc. This page is unfinished.



  1. Open Qt Creator

    developer@ldc:~# /home/developer/qtcreator-3.1.0/bin/qtcreator
  2. Click Tools->Options...

  3. Select Devices from the left pane

    1. Press the Add... button

    2. Select Generic Linux Device then press Start Wizard

    3. Type in a name, the IP address, user name and password for the device

    4. Click Next >

    5. Click Finish

    6. A connection will be established with the target device

    7. Click Apply

  4. Select Build & Run from the left pane

  5. Select the Qt Versions tab

    1. Press the Add... button

    2. Navigate to /opt/emac/5.0/sysroots/x86_64-emacsdk-linux/usr/bin/

    3. Select qmake

    4. Press apply

    Figure 1: Qt Creator Kit Qmake


  6. Select the Compilers tab

    1. Press Add->GCC

    2. Type in a name such as OE5 ARM GCC

    3. Click Browse...

    4. Navigate to /opt/emac/5.0/sysroots/x86_64-emacsdk-linux/usr/bin/target_arch/

    5. Select target_arch-gcc

    Figure 2: Qt Creator Kit Compiler


  7. Select the Debuggers tab

    1. Press Add

    2. Type in a name such as GDB OE5 ARM

    3. Click Browse...

    4. Navigate to /opt/emac/5.0/sysroots/x86_64-emacsdk-linux/usr/bin/target_arch/

    5. Select target_arch-gdb

    Figure 3: Qt Creator Kit Debugger


  8. Select the Kits tab

    1. Press the Add button

    2. Type in a name such as OE 5.0 arm

    3. Change the Device type: to Generic Linux Device

    4. Change the Device: to the one configured in step 3

    5. Type /opt/emac/5.0/sysroots/target_arch into the Sysroot line

    6. Change the Compiler: to the one created in step 6

    7. Change the Debugger: to the one created in step 7

    8. Change the Qt version: to the one created in step 5

    9. Type target_arch-g++ into the Qt mkspec line

    10. Press Apply then Ok


    Figure 4: Qt Creator Kit




WARNING!
There's no conclusion




WARNING!
There's no, "Where to Go Next."