All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jonathan Liu <net147@gmail.com>
To: Jacob Kroon <jacob.kroon@gmail.com>
Cc: openembedded-devel@lists.openembedded.org
Subject: Re: [meta-qt5] Qt5 SDK problem when building for Wandboard
Date: Sun, 04 May 2014 11:47:06 +1000	[thread overview]
Message-ID: <53659C1A.5020808@gmail.com> (raw)
In-Reply-To: <CAPbeDCnfD-MFsoy0AAwauLMTLWAWMSVhZcJ6=jNMbQath5w3gg@mail.gmail.com>

On 3/05/2014 1:48 AM, Jacob Kroon wrote:
> On Fri, May 2, 2014 at 5:06 PM, Jacob Kroon <jacob.kroon@gmail.com 
> <mailto:jacob.kroon@gmail.com>> wrote:
>
>     On Fri, May 2, 2014 at 10:25 AM, Jonathan Liu <net147@gmail.com
>     <mailto:net147@gmail.com>> wrote:
>
>         On 2/05/2014 6:17 PM, Jacob Kroon wrote:
>>         On Fri, May 2, 2014 at 8:34 AM, Jonathan Liu
>>         <net147@gmail.com <mailto:net147@gmail.com>> wrote:
>>
>>             On 2/05/2014 4:28 PM, Jacob Kroon wrote:
>>>             Hi Jonathan,
>>>
>>>             On Fri, May 2, 2014 at 3:01 AM, Jonathan Liu
>>>             <net147@gmail.com <mailto:net147@gmail.com>> wrote:
>>>
>>>                 On 1/05/2014 6:29 PM, Jacob Kroon wrote:
>>>
>>>                     Hi,
>>>
>>>                     For a while I've been working around a problem
>>>                     with using
>>>                     populate_sdk_qt5.bbclass in my image recipe,
>>>                     I've had to use a
>>>                     packagegroup-qt5-toolchain-target.bbappend to
>>>                     remove the following
>>>                     dependant packages:
>>>
>>>                     qt3d-dev
>>>                     qt3d-mkspecs
>>>                     qt3d-qmlplugins
>>>                     qtlocation-dev
>>>                     qtlocation-mkspecs
>>>                     qtlocation-plugins
>>>                     qtlocation-qmlplugins
>>>
>>>                     I'm building for wandboard-* machines, and if I
>>>                     try to bitbake qt3d or
>>>                     qtlocation, I get the following error:
>>>
>>>                     Project ERROR: Unknown module(s) in QT: opengl
>>>
>>>                     In my distro.conf I'm using:
>>>
>>>                     DISTRO_FEATURES_append = " opengl ptest systemd"
>>>                     DISTRO_FEATURES_remove = "pulseaudio sysvinit x11"
>>>
>>>                     Could anyone hint at what a proper solution
>>>                     would be ?
>>>
>>>                     I'm using master branches.
>>>
>>>                     Build Configuration:
>>>                     BB_VERSION    = "1.23.0"
>>>                     BUILD_SYS     = "x86_64-linux"
>>>                     NATIVELSBSTRING   = "Fedora-20"
>>>                     TARGET_SYS    = "arm-oe-linux-gnueabi"
>>>                     MACHINE     = "wandboard-dual"
>>>                     DISTRO    = "monkey"
>>>                     DISTRO_VERSION    = "0.1"
>>>                     TUNE_FEATURES     = "arm armv7a vfp neon
>>>                     callconvention-hard cortexa9"
>>>                     TARGET_FPU    = "vfp-neon"
>>>                     meta-qt5    =
>>>                     "master:485c277940d26e0c96953d8a649a9c84eed0afb8"
>>>                     meta    =
>>>                     "master:4c2ffce2ae32447a1e39877b9bcbc2cc11ddd2fa"
>>>                     meta-fsl-arm    =
>>>                     "master:27b0ffc33d75f0c37a876849a0db9c0277d5f036"
>>>                     meta-fsl-arm-extra =
>>>                     "master:a7515d4b20e43cfdd8654249fc16ac6b8c5ec3bc"
>>>
>>>                        -- Jacob
>>>
>>>                 Try adding the following to your distro.conf if you
>>>                 are using OpenGL ES 2.0:
>>>                 PACKAGECONFIG_GL_pn-qtbase = "gles2"
>>>
>>>
>>>             I think this is already done by a qtbase_%.bbappend in
>>>             the meta-fsl-arm layer. I do have:
>>>
>>>             [OE jkroon@localhost build]$ bitbake -e qtbase | grep -e
>>>             "^PACKAGECONFIG="
>>>             PACKAGECONFIG=" release udev evdev tools libs openssl
>>>             gles2 jpeg libpng zlib accessibility tslib icu"
>>>
>>>             Could it be that Qt3D and QtLocation requires full
>>>             OpenGL support, and that gles2 is not enough ?
>>>
>>>             -- Jacob
>>             I have built all Qt modules fine with gles2. However,
>>             your PACKAGECONFIG doesn't have "widgets".
>>             I think the QtOpenGL module depends on widgets.
>>
>>         Indeed, adding "widgets" solves the issue, many thanks.
>>         Can we describe this dependency in the recipes somehow ?
>>
>>           -- Jacob
>         "widgets" is added to PACKAGECONFIG by default in meta-qt5.
>         You could submit a patch to add a comment for
>         PACKAGECONFIG[widgets] in qtbase.inc.
>
>
>     Something like this ?
>
>     +# needed for qt3d and qtlocation (otherwise do_configure fails to
>     find 'opengl' module, which in turn requires 'widgets')
>      PACKAGECONFIG[widgets] = "-widgets,-no-widgets"
>
Looks okay, though I haven't verified this myself.

>
>
> Would it not be possible to write the recipe so that it depends on 
> just the mkspec/dev packages that are actually used in the target image ?
>
I can't think of a good way to do that at the moment though there has 
been some minimal discussion about improving the SDK generation:
http://article.gmane.org/gmane.comp.handhelds.openembedded.core/48084
https://bugzilla.yoctoproject.org/show_bug.cgi?id=5429

Regards,
Jonathan



      reply	other threads:[~2014-05-04  1:47 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-05-01  8:29 [meta-qt5] Qt5 SDK problem when building for Wandboard Jacob Kroon
2014-05-02  1:01 ` Jonathan Liu
2014-05-02  6:28   ` Jacob Kroon
2014-05-02  6:34     ` Jonathan Liu
2014-05-02  8:17       ` Jacob Kroon
2014-05-02  8:25         ` Jonathan Liu
2014-05-02 15:06           ` Jacob Kroon
2014-05-02 15:48             ` Jacob Kroon
2014-05-04  1:47               ` Jonathan Liu [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=53659C1A.5020808@gmail.com \
    --to=net147@gmail.com \
    --cc=jacob.kroon@gmail.com \
    --cc=openembedded-devel@lists.openembedded.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.