QtCreator integration improvements
cover QtCreator integration improvements
Hello,
This patchset improves the QtCreator integration a lot. With it, it is possible to deploy and run application directly in target, from QtCreator.
This has been tested in a i.MX6 based board.
Otavio Salvador (3):
populate_sdk_qt5.bbclass: Fix symlink location for QtCreator use packagegroup-qt5-qtcreator-debug: Add package group populate_sdk_qt5.bbclass: Add support for qtcreator-debug
classes/populate_sdk_qt5.bbclass | 4 +++- conf/layer.conf | 2 ++ .../packagegroups/packagegroup-qt5-qtcreator-debug.bb | 12 ++++++++++++ 3 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 recipes-qt/packagegroups/packagegroup-qt5-qtcreator-debug.bb
Signature · 1 line
1.7.10.4
PATCH 1/3 populate_sdk_qt5.bbclass: Fix symlink location for QtCreator use
The QtCreator is quite broken regarding finding the mkspecs files; so to workaround it we must to add a symlink to it. The workaround was in place but in the wrong sysroot, it must to be in the /native/ one.
--- classes/populate_sdk_qt5.bbclass | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
classes/populate_sdk_qt5.bbclass +1 -1
@@ -27,7 +27,7 @@ toolchain_create_sdk_env_script_append () { echo 'export QT_CONF_PATH=${SDKPATHNATIVE}${OE_QMAKE_PATH_HOST_BINS}/qt.conf' >> $script # make a symbolic link to mkspecs for compatibility with QTCreator - (cd ${SDK_OUTPUT}/${SDKTARGETSYSROOT}; \ + (cd ${SDK_OUTPUT}/${SDKPATHNATIVE}; \ ln -sf ${SDKTARGETSYSROOT}${libdir}/${QT_DIR_NAME}/mkspecs mkspecs;) # Generate a qt.conf file to be deployed with the SDK
Signature · 1 line
1.7.10.4
Re: [meta-qt5][PATCH 1/3] populate_sdk_qt5.bbclass: Fix symlink location for QtCreator use
Quoted 25 lines · Otavio Salvador
The QtCreator is quite broken regarding finding the mkspecs files; so to workaround it we must to add a symlink to it. The workaround was in place but in the wrong sysroot, it must to be in the /native/ one.
Signed-off-by Otavio Salvador <[email protected]>--- classes/populate_sdk_qt5.bbclass | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)classes/populate_sdk_qt5.bbclass +1
-2@@ -27,7 +27,7 @@ toolchain_create_sdk_env_script_append () { echo 'export QT_CONF_PATH=${SDKPATHNATIVE}${OE_QMAKE_PATH_HOST_BINS}/qt.conf' >> $script # make a symbolic link to mkspecs for compatibility with QTCreator - (cd ${SDK_OUTPUT}/${SDKTARGETSYSROOT}; \ + (cd ${SDK_OUTPUT}/${SDKPATHNATIVE}; \ ln -sf ${SDKTARGETSYSROOT}${libdir}/${QT_DIR_NAME}/mkspecs mkspecs;) # Generate a qt.conf file to be deployed with the SDK --1.7.10.4
Quoted 4 lines
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel
Tested and working. Qt Creator now finds the mkspec after applying this patch.
Regards,
Jonathan
Re: [meta-qt5][PATCH 1/3] populate_sdk_qt5.bbclass: Fix symlink location for QtCreator use
Quoted 22 lines · Jonathan Liu
Quoted 21 lines · Otavio Salvador
The QtCreator is quite broken regarding finding the mkspecs files; so to workaround it we must to add a symlink to it. The workaround was in place but in the wrong sysroot, it must to be in the /native/ one.
Signed-off-by Otavio Salvador <[email protected]>--- classes/populate_sdk_qt5.bbclass | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)classes/populate_sdk_qt5.bbclass +1
-1@@ -27,7 +27,7 @@ toolchain_create_sdk_env_script_append () { echo 'export QT_CONF_PATH=${SDKPATHNATIVE}${OE_QMAKE_PATH_HOST_BINS}/qt.conf' >> $script # make a symbolic link to mkspecs for compatibility with QTCreator - (cd ${SDK_OUTPUT}/${SDKTARGETSYSROOT}; \ + (cd ${SDK_OUTPUT}/${SDKPATHNATIVE}; \ ln -sf ${SDKTARGETSYSROOT}${libdir}/${QT_DIR_NAME}/mkspecs mkspecs;)
Quoted 5 lines
classes/populate_sdk_qt5.bbclass toolchain_create_sdk_env_script_append () { · line 33
Quoted 1 line
classes/populate_sdk_qt5.bbclass +0
-0# Generate a qt.conf file to be deployed with the SDKAcked-by Jonathan Liu <[email protected]>Tested and working. Qt Creator now finds the mkspec after applying this patch.
I applied this one as it fixes the error. Thanks for testing 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
PATCH 2/3 packagegroup-qt5-qtcreator-debug: Add package group
In reply to Otavio SalvadorThis allow for easy installation of needed packages for remote debugging using QtCreator.
--- .../packagegroups/packagegroup-qt5-qtcreator-debug.bb | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 recipes-qt/packagegroups/packagegroup-qt5-qtcreator-debug.bb
recipes-qt/packagegroups/packagegroup-qt5-qtcreator-debug.bb new file +12 -0
@@ -0,0 +1,12 @@ +# 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 \ +"
Signature · 1 line
1.7.10.4
Re: [meta-qt5][PATCH 2/3] packagegroup-qt5-qtcreator-debug: Add package group
Quoted 15 lines · Otavio Salvador
This allow for easy installation of needed packages for remote debugging using QtCreator.
Signed-off-by Otavio Salvador <[email protected]>--- .../packagegroups/packagegroup-qt5-qtcreator-debug.bb | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 recipes-qt/packagegroups/packagegroup-qt5-qtcreator-debug.bbrecipes-qt/packagegroups/packagegroup-qt5-qtcreator-debug.bb new file +0
-0
recipes-qt/packagegroups/packagegroup-qt5-qtcreator-debug.bb line 10
Quoted 10 lines
recipes-qt/packagegroups/packagegroup-qt5-qtcreator-debug.bb new file +10
-0@@ -0,0 +1,12 @@ +# Copyright (C) 2014 O.S. Systems Software LTDA. + +SUMMARY = "Remote debugging tools for QtCreator integration" +LICENSE = "MIT" + +inherit packagegroup + +RDEPENDS_${PN} = " \ + gdbserver \ + openssh \
one could use dropbear or openssh for providing ssh server can we rely on that instead of hardcoding openssh here ?
Quoted 9 lines
recipes-qt/packagegroups/packagegroup-qt5-qtcreator-debug.bb new file +2
-1+ openssh-sftp-server \ +" --1.7.10.4
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel
Re: [meta-qt5][PATCH 2/3] packagegroup-qt5-qtcreator-debug: Add package group
Quoted 7 lines · Khem Raj
On Mon, Feb 24, 2014 at 12:28 PM, Otavio Salvador
recipes-qt/packagegroups/packagegroup-qt5-qtcreator-debug.bb line 10
Quoted 3 lines
recipes-qt/packagegroups/packagegroup-qt5-qtcreator-debug.bb new file +3
-0+RDEPENDS_${PN} = " \ + gdbserver \ + openssh \one could use dropbear or openssh for providing ssh server can we rely on that instead of hardcoding openssh here ?
We can try and see if it works.
Giulian, could you give this a try?
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 2/3] packagegroup-qt5-qtcreator-debug: Add package group
Hello
We tested it and when qtcreator tries to connect to the device with dropbear, it gets "server rejected password". A connection done through a terminal is accepted normally.
Giulian Gonçalves VivanO.S. Systems Software Ltda.
www.ossystems.com.br
+55 53 3282-2787
Quoted 19 lines · Otavio Salvador
Quoted 6 lines · Khem Raj
On Mon, Feb 24, 2014 at 12:28 PM, Otavio Salvador
recipes-qt/packagegroups/packagegroup-qt5-qtcreator-debug.bb line 10
Quoted 3 lines
recipes-qt/packagegroups/packagegroup-qt5-qtcreator-debug.bb new file +3
-0+RDEPENDS_${PN} = " \ + gdbserver \ + openssh \one could use dropbear or openssh for providing ssh server can we rely
on that
Quoted 1 line
instead of hardcoding openssh here ?
We can try and see if it works.
Giulian, could you give this a try?
--
Otavio SalvadorO.S. Systems
http://www.ossystems.com.br http://code.ossystems.com.br
Mobile: +55 (53) 9981-7854 Mobile: +1 (347) 903-9750
A message that is not in the archive (sent off-list or not yet received): CAFYUCi7N-M1DVsnnxqcmMy8YJFsocDeYOn5Y3qBt8Ku1GB4_NA@mail.gmail.com
Re: [meta-qt5][PATCH 2/3] packagegroup-qt5-qtcreator-debug: Add package group
Hello Khem,
Quoted 3 lines · Giulian Vivan
We tested it and when qtcreator tries to connect to the device with dropbear, it gets "server rejected password". A connection done through a terminal is accepted normally.
Any specific reason to prefer Dropbear?
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 2/3] packagegroup-qt5-qtcreator-debug: Add package group
Quoted 6 lines · Otavio Salvador
Hello Khem,
Quoted 3 lines · Giulian Vivan
We tested it and when qtcreator tries to connect to the device with dropbear, it gets "server rejected password". A connection done through a terminal is accepted normally.
do you have empty password ?
Quoted 2 lines
Any specific reason to prefer Dropbear?
it smaller than openssh many embedded platforms have it in their images you will have conflicts if you now try to shove hard dep on openssh
Quoted 5 lines
Signature · 4 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 2/3] packagegroup-qt5-qtcreator-debug: Add package group
Quoted 11 lines · Khem Raj
Quoted 6 lines · Otavio Salvador
Hello Khem,
Quoted 3 lines · Giulian Vivan
We tested it and when qtcreator tries to connect to the device with dropbear, it gets "server rejected password". A connection done through a terminal is accepted normally.
do you have empty password ?
I will let Giulian answer this one.
Quoted 4 lines
Quoted 1 line
Any specific reason to prefer Dropbear?
it smaller than openssh many embedded platforms have it in their images you will have conflicts if you now try to shove hard dep on openssh
Even if we are abow to make it compatible, how would we 'choose' between both?
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 2/3] packagegroup-qt5-qtcreator-debug: Add package group
Quoted 9 lines · Otavio Salvador
Quoted 2 lines · Khem Raj
On Feb 26, 2014, at 4:40 AM, Otavio Salvador <[email protected]>
Quoted 4 lines · wrote:
Quoted 4 lines
Hello Khem,
On Wed, Feb 26, 2014 at 9:18 AM, Giulian Vivan <
[email protected]> wrote:
Quoted 10 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
We tested it and when qtcreator tries to connect to the device with dropbear, it gets "server rejected password". A connection done
through a
Quoted 3 lines
Quoted 1 line
Quoted 1 line
terminal is accepted normally.
do you have empty password ?
I will let Giulian answer this one.
Yes, it's an empty password.
Quoted 5 lines
Quoted 4 lines
Quoted 1 line
Any specific reason to prefer Dropbear?
it smaller than openssh many embedded platforms have it in their images you will have conflicts if you now try to shove hard dep on openssh
Quoted 8 lines
Even if we are abow to make it compatible, how would we 'choose' between both?
--
Otavio SalvadorO.S. Systems
http://www.ossystems.com.br http://code.ossystems.com.br
Mobile: +55 (53) 9981-7854 Mobile: +1 (347) 903-9750
Giulian Gonçalves VivanO.S. Systems Software Ltda.
www.ossystems.com.br
+55 53 3282-2787
PATCH 3/3 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