Skip to contentSkip to conversation

QtCreator integration improvements

PATCH In review Otavio Salvador 2 participants 9 messages Feb 27, 2014

lore
Share & tools
lore
#0 lore raw

v2 cover QtCreator integration improvements

Hello,

This patchset improves the QtCreator integration a lot. With it, it is possible to deploy, run and debug applications directly in target, from QtCreator.

This v2 patchset adds support for QML remote debug.

This has been tested in a i.MX6 based board using our qsiv application and QtCreator 3.0.1.

Otavio Salvador (2):
packagegroup-qt5-qtcreator-debug: Add package group populate_sdk_qt5.bbclass: Add support for qtcreator-debug

 classes/populate_sdk_qt5.bbclass                          |    2 ++
 conf/layer.conf                                           |    2 ++
 .../packagegroups/packagegroup-qt5-qtcreator-debug.bb     |   13 +++++++++++++
 3 files changed, 17 insertions(+)
 create mode 100644 recipes-qt/packagegroups/packagegroup-qt5-qtcreator-debug.bb
Signature · 1 line
1.7.10.4
#1 lore raw

PATCH v2 1/2 packagegroup-qt5-qtcreator-debug: Add package group

This allow for easy installation of needed packages for remote debugging using QtCreator. The qtdeclarative-plugins package provides the needed infrastructure to remotely debug QML application.

---
 .../packagegroups/packagegroup-qt5-qtcreator-debug.bb     |   13 +++++++++++++
 1 file changed, 13 insertions(+)
 create mode 100644 recipes-qt/packagegroups/packagegroup-qt5-qtcreator-debug.bb
recipes-qt/packagegroups/packagegroup-qt5-qtcreator-debug.bb new file +13 -0
new file mode 100644
index 0000000..cb1518d
@@ -0,0 +1,13 @@
+# Copyright (C) 2014 O.S. Systems Software LTDA.
+
+SUMMARY = "Remote debugging tools for QtCreator integration"
+LICENSE = "MIT"
+
+inherit packagegroup
+
+RDEPENDS_${PN} = " \
+    gdbserver \
+    openssh \
+    openssh-sftp-server \
+    qtdeclarative-plugins \
+"
Signature · 1 line
1.7.10.4
#2 lore raw

Re: [meta-qt5][PATCH v2 1/2] packagegroup-qt5-qtcreator-debug: Add package group

recipes-qt/packagegroups/packagegroup-qt5-qtcreator-debug.bb line 13

Quoted 8 lines · Otavio Salvador
recipes-qt/packagegroups/packagegroup-qt5-qtcreator-debug.bb new file +7 -0
+
+RDEPENDS_${PN} = " \
+    gdbserver \
+    openssh \
+    openssh-sftp-server \
+    qtdeclarative-plugins \
+"

this hardcoding openssh issue still is unresolved ?

#3 lore raw

Re: [meta-qt5][PATCH v2 1/2] packagegroup-qt5-qtcreator-debug: Add package group

Quoted 13 lines · Khem Raj

recipes-qt/packagegroups/packagegroup-qt5-qtcreator-debug.bb

Quoted 8 lines · Otavio Salvador
recipes-qt/packagegroups/packagegroup-qt5-qtcreator-debug.bb new file +7 -1
+
+RDEPENDS_${PN} = " \
+    gdbserver \
+    openssh \
+    openssh-sftp-server \
+    qtdeclarative-plugins \
+"
--

this hardcoding openssh issue still is unresolved ?

As explained in v1, Dropbear does not work.

Signature · 3 lines
Otavio Salvador                             O.S. Systems
http://www.ossystems.com.br        http://code.ossystems.com.br
Mobile: +55 (53) 9981-7854            Mobile: +1 (347) 903-9750
#4 lore raw

Re: [meta-qt5][PATCH v2 1/2] packagegroup-qt5-qtcreator-debug: Add package group

Quoted 1 line · Otavio Salvador

As explained in v1, Dropbear does not work.

it does work. you just have to use non-empty password.

#5 lore raw

Re: [meta-qt5][PATCH v2 1/2] packagegroup-qt5-qtcreator-debug: Add package group

Quoted 6 lines · Khem Raj
Quoted 1 line · Otavio Salvador

As explained in v1, Dropbear does not work.

it does work. you just have to use non-empty password.

and how you think we can allow user to override it?

Signature · 3 lines
Otavio Salvador                             O.S. Systems
http://www.ossystems.com.br        http://code.ossystems.com.br
Mobile: +55 (53) 9981-7854            Mobile: +1 (347) 903-9750
#6 lore raw

Re: [meta-qt5][PATCH v2 1/2] packagegroup-qt5-qtcreator-debug: Add package group

Quoted 1 line · Otavio Salvador

and how you think we can allow user to override it?

there is -B option that can be passed to dropbear to let it accept blank passwords.

#7 lore raw

Re: [meta-qt5][PATCH v2 1/2] packagegroup-qt5-qtcreator-debug: Add package group

Quoted 7 lines · Khem Raj
Quoted 1 line · Otavio Salvador

and how you think we can allow user to override it?

there is -B option that can be passed to dropbear to let it accept blank passwords.

+++ b/recipes-qt/packagegroups/packagegroup-qt5-qtcreator-debug.bb @@ -0,0 +1,16 @@
+# Copyright (C) 2014 O.S. Systems Software LTDA.
+
+SUMMARY = "Remote debugging tools for QtCreator integration" +LICENSE = "MIT"
+
+inherit packagegroup
+
+# Override by distro if needed +VIRTUAL-RUNTIME_qtcreator-debug-ssh-daemon ?= "openssh-sshd" +
+RDEPENDS_${PN} = " \

+    gdbserver \
+    ${VIRTUAL-RUNTIME_qtcreator-debug-ssh-daemon} \
+    openssh-sftp-server \
+    qtdeclarative-plugins \

+"

Looks good?

Signature · 3 lines
Otavio Salvador                             O.S. Systems
http://www.ossystems.com.br        http://code.ossystems.com.br
Mobile: +55 (53) 9981-7854            Mobile: +1 (347) 903-9750
#8 lore raw

PATCH v2 2/2 populate_sdk_qt5.bbclass: Add support for qtcreator-debug

In reply to Otavio Salvador

This adds a new image feature for easier remote debugging with QtCreator.

The qtcreator-debug needs to be added as a valid item for image features and having it inside the populate_sdk_qt5 is too late. User will see a parser error as OE-Core images does not inherit the classs. The possible workaround for it is to include it inside layer.conf file until a kind of "bbclassappend" support is in place.

---
 classes/populate_sdk_qt5.bbclass |    2 ++
 conf/layer.conf                  |    2 ++
 2 files changed, 4 insertions(+)
classes/populate_sdk_qt5.bbclass +2 -0
index 635dd6d..c921983 100644
@@ -52,3 +52,5 @@ toolchain_create_sdk_env_script_append () {
     echo 'HostPrefix = ${SDKPATHNATIVE}' >> $qtconf
     echo 'HostBinaries = ${SDKPATHNATIVE}${OE_QMAKE_PATH_HOST_BINS}' >> $qtconf
 }
+
+PACKAGE_GROUP_qtcreator-debug = "packagegroup-qt5-qtcreator-debug"
conf/layer.conf +2 -0
index 3b47b7f..75d13a4 100644
@@ -22,3 +22,5 @@ BBFILE_PATTERN_qt5-layer := "^${LAYERDIR}/"
 # other layers.
 
 BBFILE_PRIORITY_qt5-layer = "7"
+
+IMAGE_FEATURES[validitems] += "qtcreator-debug"
Signature · 1 line
1.7.10.4