Difference between revisions of "Configuring Qt Creator"
Kyoungmeyer (talk | contribs) |
|||
(6 intermediate revisions by 4 users not shown) | |||
Line 1: | Line 1: | ||
− | {{todo| | + | {{todo| Complete (11.09.2015-13:55->KY+)(11.13.2015-13:00->MG+)(11.17.2015-11:25->KY+)(11.17.2015-12:25->MD+)(11.17.2015-14:30->MG+)|Brian Serrano|project=oe 5,bs,KY,MG,MD,Complete}} |
{{#seo: | {{#seo: | ||
Line 7: | Line 7: | ||
|description= | |description= | ||
}} | }} | ||
− | {{ | + | {{note| This page is written for customers that have installed Qt Creator using the installer directly from the Qt website or from the host distribution's package manager, as described on [[Installing_QtCreator | this page]]. }} |
+ | <br /> | ||
==Configure Kits in Qt Creator== | ==Configure Kits in Qt Creator== | ||
<cl> | <cl> | ||
− | 1. [[Installing_QtCreator | Install Qt Creator]], which by default is installed in the user's home directory. | + | 1. [[Installing_QtCreator | Install Qt Creator]], which, by default, is installed in the user's home directory. |
* Open Qt Creator | * Open Qt Creator | ||
− | {{cli | username=developer | hostname=ldc | | + | {{cli | username=developer | hostname=ldc |$HOME/qtcreator-4.3.0/bin/qtcreator}} |
* Click Tools->Options... | * Click Tools->Options... | ||
* Select '''Devices''' from the left pane | * Select '''Devices''' from the left pane | ||
i. Press the '''Add...''' button | i. Press the '''Add...''' button | ||
− | * Select Generic Linux Device then press '''Start Wizard''' | + | * Select Generic Linux Device, then press '''Start Wizard''' |
− | * Type in a name, the IP address, user name and password for the device | + | * Type in a name, the IP address, user name, and password for the device |
* Click '''Next >''' | * Click '''Next >''' | ||
* Click '''Finish''' | * Click '''Finish''' | ||
Line 28: | Line 29: | ||
* Select the '''Qt Versions''' tab | * Select the '''Qt Versions''' tab | ||
i. Press the '''Add...''' button | i. Press the '''Add...''' button | ||
− | * Navigate to /opt/emac/5. | + | * Navigate to <code>/opt/emac/5.X/sysroots/x86_64-emacsdk-linux/usr/bin/</code> |
* Select qmake | * Select qmake | ||
* Press apply | * Press apply | ||
Line 35: | Line 36: | ||
<br clear=all> | <br clear=all> | ||
− | {{note| The ''target_arch'' variable referenced below can either be '' | + | {{note| The ''target_arch'' variable referenced below can either be ''arm-emac-linux'' for ARM targets or ''i586-emac-linux'' for x86 targets.}} |
* Select the '''Compilers''' tab | * Select the '''Compilers''' tab | ||
− | i. Press '''Add->GCC''' | + | i. Press '''Add->GCC->C''' |
* Type in a name such as OE5 ARM GCC | * Type in a name such as OE5 ARM GCC | ||
* Click Browse... | * Click Browse... | ||
− | * Navigate to /opt/emac/5. | + | * Navigate to <code>/opt/emac/5.X/sysroots/x86_64-emacsdk-linux/usr/bin/'''''target_arch'''''/</code> |
* Select '''''target_arch'''''-gcc | * Select '''''target_arch'''''-gcc | ||
+ | * Repeat for the C++ compiler selecting '''''target_arch'''''-g++ | ||
− | [[File: | + | [[File:QtCompilers.jpg|500px|thumb|left|Figure 2: Qt Creator Kit Compiler]] |
<br clear=all> | <br clear=all> | ||
Line 52: | Line 54: | ||
* Type in a name such as GDB OE5 ARM | * Type in a name such as GDB OE5 ARM | ||
* Click '''Browse...''' | * Click '''Browse...''' | ||
− | * Navigate to /opt/emac/5. | + | * Navigate to <code>/opt/emac/5.X/sysroots/x86_64-emacsdk-linux/usr/bin/'''''target_arch'''''/</code> |
* Select '''''target_arch'''''-gdb | * Select '''''target_arch'''''-gdb | ||
Line 63: | Line 65: | ||
* Type in a name such as OE 5.0 arm | * Type in a name such as OE 5.0 arm | ||
* Change the '''Device type:''' to Generic Linux Device | * Change the '''Device type:''' to Generic Linux Device | ||
− | * Change the '''Device:''' to the one configured in step | + | * Change the '''Device:''' to the one configured in step 4 |
− | * Type /opt/emac/5. | + | * Type the location of the SDK target sysroot into the '''Sysroot''' line. |
− | * Change the ''' | + | * This will be a subdirectory of either: |
− | * Change the '''Debugger:''' to the one created in step | + | * <code>$HOME/EMAC-SDK/sysroots</code> |
− | * Change the '''Qt version:''' to the one created in step | + | * <code>/opt/emac/5.X/sysroots/</code> |
− | * | + | * Change the '''Compilers:''' to the ones created in step 7 |
+ | * Change the '''Debugger:''' to the one created in step 8 | ||
+ | * Change the '''Qt version:''' to the one created in step 6 | ||
+ | * Fill in the '''Qt mkspec''' line: | ||
+ | * armv5e-emac-linux-gnueabi-g++ for ARM | ||
+ | * i586-emac-linux-g++ for X86 | ||
* Press '''Apply''' then '''Ok''' | * Press '''Apply''' then '''Ok''' | ||
Latest revision as of 10:43, 12 July 2017
NOTE |
This page is written for customers that have installed Qt Creator using the installer directly from the Qt website or from the host distribution's package manager, as described on this page. |
Configure Kits in Qt Creator
-
Install Qt Creator, which, by default, is installed in the user's home directory.
-
Open Qt Creator
developer
@
ldc
:
~
#
$HOME/qtcreator-4.3.0/bin/qtcreator
-
Click Tools->Options...
-
Select Devices from the left pane
-
Press the Add... button
-
Select Generic Linux Device, then press Start Wizard
-
Type in a name, the IP address, user name, and password for the device
-
Click Next >
-
Click Finish
-
A connection will be established with the target device
-
Click Apply
-
-
Select Build & Run from the left pane
-
Select the Qt Versions tab
-
Press the Add... button
-
Navigate to
/opt/emac/5.X/sysroots/x86_64-emacsdk-linux/usr/bin/
-
Select qmake
-
Press apply
NOTE The target_arch variable referenced below can either be arm-emac-linux for ARM targets or i586-emac-linux for x86 targets.
-
-
Select the Compilers tab
-
Press Add->GCC->C
-
Type in a name such as OE5 ARM GCC
-
Click Browse...
-
Navigate to
/opt/emac/5.X/sysroots/x86_64-emacsdk-linux/usr/bin/target_arch/
-
Select target_arch-gcc
-
Repeat for the C++ compiler selecting target_arch-g++
-
-
Select the Debuggers tab
-
Press Add
-
Type in a name such as GDB OE5 ARM
-
Click Browse...
-
Navigate to
/opt/emac/5.X/sysroots/x86_64-emacsdk-linux/usr/bin/target_arch/
-
Select target_arch-gdb
-
-
Select the Kits tab
-
Press the Add button
-
Type in a name such as OE 5.0 arm
-
Change the Device type: to Generic Linux Device
-
Change the Device: to the one configured in step 4
-
Type the location of the SDK target sysroot into the Sysroot line.
-
This will be a subdirectory of either:
-
$HOME/EMAC-SDK/sysroots
-
/opt/emac/5.X/sysroots/
-
-
Change the Compilers: to the ones created in step 7
-
Change the Debugger: to the one created in step 8
-
Change the Qt version: to the one created in step 6
-
Fill in the Qt mkspec line:
-
armv5e-emac-linux-gnueabi-g++ for ARM
-
i586-emac-linux-g++ for X86
-
-
Press Apply then Ok
-
Conclusion
At this time, Qt Creator is configured similarly to the pre-configured version of Qt Creator that is distributed by EMAC. All other pages referencing Qt Creator should apply to this configured version as well.