QtCreator integration improvements
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
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
@@ -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
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 ?
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
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.
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
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.
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
PATCH v2 2/2 populate_sdk_qt5.bbclass: Add support for qtcreator-debug
In reply to Otavio SalvadorThis 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
@@ -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
@@ -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