[oe] meta-qt5 bluetooth not working within qtconnectivity

Martin Jansa martin.jansa at gmail.com
Thu Sep 24 06:18:20 UTC 2015


On Thu, Sep 24, 2015 at 08:05:58AM +0200, Daniel Ache wrote:
> Dear Martin,

Hi,

please use ML openembedded-devel at lists.openembedded.org for generic
questions like this.

> 
> We are not so used to Yocto, so we had to patch meta-qt5 (
> qtconnectivity_git.bb and qtsystems_git.bb) to compile bluetooth. bluez4 is
> a used package within our recipe but bluetooth is not included without this
> patch :-(
> 
> Is "OE_BLUEZ_ENABLED" needed somehow? Or is this historical stuff?

Yes, it's still needed, but don't set it directly add "bluez4" to
PACKAGECONFIG variable in your DISTRO config.

> How can I change our recipes to compile with bluetooth and without patching
> meta-qt5?

Use .bbappend or PACKAGECONFIG_append_pn-qtconnectivity.

Did you test it with bluez5 or only with bluez4? I didn't check if 5.5
version supports both now.

Regards,

> Attached out patch file, so you can see what we did.
> 
> greetings from Germany
> Daniel

> From eb16df8826aeca2eab878695e8d2645a191e717c Mon Sep 17 00:00:00 2001
> From: Daniel Ache <d.ache at oculus.de>
> Date: Wed, 23 Sep 2015 16:23:25 +0200
> Subject: [PATCH 1/1] =?UTF-8?q?OE=5FBLUEZ=5FENABLED=20entfernt.=20Da=20wir?=
>  =?UTF-8?q?=20(Christian=20Wa=C3=9Fmuth=20und=20ich)=20es=20nicht=20gescha?=
>  =?UTF-8?q?fft=20haben,=20QtConnectivity=20so=20mit=20bluez=20support=20zu?=
>  =?UTF-8?q?=20erstellen.=20Vermutlich=20ist=20OE=5FBLUEZ=5FENABLED=20eh=20?=
>  =?UTF-8?q?ein=20Relikt=20aus=20vergangenen=20Tagen=20und=20so=20nicht=20m?=
>  =?UTF-8?q?ehr=20n=C3=B6tig.?=
> MIME-Version: 1.0
> Content-Type: text/plain; charset=UTF-8
> Content-Transfer-Encoding: 8bit
> 
> ---
>  recipes-qt/qt5/qtconnectivity_git.bb | 8 --------
>  recipes-qt/qt5/qtsystems_git.bb      | 9 ---------
>  2 files changed, 17 deletions(-)
> 
> diff --git a/recipes-qt/qt5/qtconnectivity_git.bb b/recipes-qt/qt5/qtconnectivity_git.bb
> index 4781be1..c6e56ed 100644
> --- a/recipes-qt/qt5/qtconnectivity_git.bb
> +++ b/recipes-qt/qt5/qtconnectivity_git.bb
> @@ -12,13 +12,5 @@ LIC_FILES_CHKSUM = " \
>  
>  DEPENDS += "qtbase qtdeclarative"
>  
> -PACKAGECONFIG ??= ""
> -PACKAGECONFIG[bluez4] = "OE_BLUEZ_ENABLED,,bluez4"
> -
> -do_configure_prepend() {
> -    export QMAKE_CACHE_EVAL="CONFIG+=${EXTRA_OECONF}"
> -    # disable bluez test if it isn't enabled by PACKAGECONFIG
> -    sed -i 's/^qtCompileTest(bluez)/OE_BLUEZ_ENABLED:qtCompileTest(bluez)/g' ${S}/qtconnectivity.pro
> -}
>  
>  SRCREV = "e4a5dc7dbe62c32032e5e683ac1fdb57663a14b3"
> diff --git a/recipes-qt/qt5/qtsystems_git.bb b/recipes-qt/qt5/qtsystems_git.bb
> index 781cd38..47ec34d 100644
> --- a/recipes-qt/qt5/qtsystems_git.bb
> +++ b/recipes-qt/qt5/qtsystems_git.bb
> @@ -11,15 +11,6 @@ LIC_FILES_CHKSUM = " \
>  
>  DEPENDS += "qtbase qtdeclarative udev gconf"
>  
> -PACKAGECONFIG ??= ""
> -PACKAGECONFIG[bluez4] = "OE_BLUEZ_ENABLED,,bluez4"
> -
> -do_configure_prepend() {
> -    export QMAKE_CACHE_EVAL="CONFIG+=${EXTRA_OECONF}"
> -    # disable bluez test if it isn't enabled by PACKAGECONFIG
> -    sed -i 's/^    qtCompileTest(bluez)/    OE_BLUEZ_ENABLED:qtCompileTest(bluez)/g' ${S}/qtsystems.pro
> -}
> -
>  do_install_append() {
>      # Remove example.pro file as it is useless
>      rm -f ${D}${OE_QMAKE_PATH_EXAMPLES}/examples.pro	
> -- 
> 1.9.1
> 


-- 
Martin 'JaMa' Jansa     jabber: Martin.Jansa at gmail.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: Digital signature
URL: <http://lists.openembedded.org/pipermail/openembedded-devel/attachments/20150924/facb9b06/attachment-0002.sig>


More information about the Openembedded-devel mailing list