Patchwork [meta-qt5,1/3] populate_sdk_qt5.bbclass: Fix symlink location for QtCreator use

login
register
mail settings
Submitter Otavio Salvador
Date Feb. 24, 2014, 8:28 p.m.
Message ID <1393273696-9249-2-git-send-email-otavio@ossystems.com.br>
Download mbox | patch
Permalink /patch/67365/
State Accepted, archived
Delegated to: Otavio Salvador
Headers show

Comments

Otavio Salvador - Feb. 24, 2014, 8:28 p.m.
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 <otavio@ossystems.com.br>
---
 classes/populate_sdk_qt5.bbclass |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Jonathan Liu - Feb. 25, 2014, 3:20 a.m.
On 25 February 2014 07:28, Otavio Salvador <otavio@ossystems.com.br> wrote:
> 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 <otavio@ossystems.com.br>
> ---
>  classes/populate_sdk_qt5.bbclass |    2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/classes/populate_sdk_qt5.bbclass b/classes/populate_sdk_qt5.bbclass
> index 3b849e9..635dd6d 100644
> --- a/classes/populate_sdk_qt5.bbclass
> +++ b/classes/populate_sdk_qt5.bbclass
> @@ -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
>
> _______________________________________________
> Openembedded-devel mailing list
> Openembedded-devel@lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-devel

Acked-by: Jonathan Liu <net147@gmail.com>

Tested and working. Qt Creator now finds the mkspec after applying this patch.

Regards,
Jonathan
Otavio Salvador - Feb. 25, 2014, 11:38 a.m.
On Tue, Feb 25, 2014 at 12:20 AM, Jonathan Liu <net147@gmail.com> wrote:
> On 25 February 2014 07:28, Otavio Salvador <otavio@ossystems.com.br> wrote:
>> 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 <otavio@ossystems.com.br>
>> ---
>>  classes/populate_sdk_qt5.bbclass |    2 +-
>>  1 file changed, 1 insertion(+), 1 deletion(-)
>>
>> diff --git a/classes/populate_sdk_qt5.bbclass b/classes/populate_sdk_qt5.bbclass
>> index 3b849e9..635dd6d 100644
>> --- a/classes/populate_sdk_qt5.bbclass
>> +++ b/classes/populate_sdk_qt5.bbclass
>> @@ -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
>
> Acked-by: Jonathan Liu <net147@gmail.com>
>
> 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.

Patch

diff --git a/classes/populate_sdk_qt5.bbclass b/classes/populate_sdk_qt5.bbclass
index 3b849e9..635dd6d 100644
--- a/classes/populate_sdk_qt5.bbclass
+++ b/classes/populate_sdk_qt5.bbclass
@@ -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