Difference between revisions of "Qt Creator"
From ArmadeusWiki
(Qt Creator) |
(→Manual configuration) |
||
Line 51: | Line 51: | ||
* '''GDB server script''' can be manually modified. Is is located in ''buildroot/output/host/etc/Nokia/gdb_server_script''. | * '''GDB server script''' can be manually modified. Is is located in ''buildroot/output/host/etc/Nokia/gdb_server_script''. | ||
This script transfers the executable to debug to the remote system and launch the remote '''GDB server'''. | This script transfers the executable to debug to the remote system and launch the remote '''GDB server'''. | ||
− | The following variables can be changed according to the user needs: | + | The following variables can be changed according to the user needs: ''IP_ADDR'', ''EXEC_ARGUMENTS'', ''PRIVATE_KEY_PATH'', ''LOCAL_EXEC_PATH'', ''REMOTE_EXEC_PATH''. |
== Usage == | == Usage == |
Revision as of 18:17, 21 March 2012
Contents
Introduction
This page will explain how to automatically install and configure Qt Creator for Armadeus boards. It will also describe the way to use GDB in Qt Creator for remote applications.
Installation
Buildroot
- Qt Creator is now fully integrated in Armadeus Buildroot. To install it, go in your project's BSP directory and use the command:
[armadeus]$ make menuconfig
[*] Host utilities ---> [*] host qtcreator ---> --- host qtcreator [ ] GDB for QtCreator --->
- If you want to use GDB in QtCreator for remote applications:
[*] Host utilities ---> [*] host qtcreator ---> --- host qtcreator [*] GDB for QtCreator ---> --- GDB for QtCreator (192.168.0.208) GDB server IP address (5600) GDB server port (/srv/developpements/armadeus_4-1/processManager/bin/processManager) Local executable (/usr/bin/processManager) Remote executable path on system (-qws) Remote executable arguments
The GDB server IP address, the GDB server port, the Local executable and the Remote executable path on system must be filled. The Remote executable arguments are facultatives.
- Then you can build Qt Creator:
[armadeus]$ make
Manual configuration
- The QtCreator's configuration files are automatically generated in buildroot/output/host/etc/Nokia: QtCreator.ini and toolChains.xml.
- Qt Embedded and g++ toolchain for ARM are automatically entered in Qt Creator's configuration.
- GDB server script can be manually modified. Is is located in buildroot/output/host/etc/Nokia/gdb_server_script.
This script transfers the executable to debug to the remote system and launch the remote GDB server. The following variables can be changed according to the user needs: IP_ADDR, EXEC_ARGUMENTS, PRIVATE_KEY_PATH, LOCAL_EXEC_PATH, REMOTE_EXEC_PATH.
Usage
- QtCreator's binary is located in buildroot/output/host/usr/bin/qtcreator.
- Qt and toolchains can be respectively configured in the menu Tools --> Options --> Qt4 / Tool Chains.
Remote debugger
When in Qt Creator, go in the menu Debug --> Start Debugging --> Start and Attach to Remote Application.