[oe] bitbake meta-toolchain error

Nilesh Kokane nilesh.kokane at mindastoneridge.com
Mon Aug 4 10:09:10 UTC 2014


Hi Thomas


I'd like to update you with the following exp.



This should be solved by qtbase_%.bbappend in meta-fsl-arm.
You'll see that there is code for:
        a. taking the right platform plugin
                (the line with "-eglfs" in it)*



 In /meta-fsl-arm/qt5-layer/recipes-qt/qt5/qtbase_%.bbappend

QT_CONFIG_FLAGS_append_mx6 = "${@base_contains('DISTRO_FEATURES', 'x11',
*'-xcb'*, ' -no-eglfs', ' -eglfs', d)}"

I added -xcb

        b. setup for eglvivante.h
                (the lines around -DEGL_API_FB=1

I didnt got the line -DEGL_API_FB=1 , so i didn't alter this, and left
unchanged

(*this line could be improved by adding -xcb and -no-xcb accordingly...)

Open qtbase.inc (from meta-qt5) and remove the "-silent"

In  /bin/fsl-community-bsp/sources/meta-qt5/recipes-qt/qt5/qtbase.in


QT_CONFIG_FLAGS += " \
    -reduce-relocations \
    -shared \
  *  -silent \*
    -no-pch \
    -no-rpath \
    -pkg-config \
    ${EXTRA_OECONF} \
"

-silent was deleted. and was found only in QT_CONFIG_FLAGS

Then clean your build director* (I usually just delete the complete build
folder and start from scratch)

I deleted the Build folder and started right from the scratch

Build again, and if it fails then write again to this mail list with links
to
all logs:


With the setup above i got *success*.


        bitbake log,
        qtbase: run.configure, log.do_configure, run.do_compile,
log.do_compile


(*This is just to make sure the change for DISTRO_FEATURE has no side
effects,
if already did a clean build after the change then you should be good)



Now to set up qt
http://wiki.wandboard.org/index.php/Building_Qt5_using_yocto_on_Wandboard
says to alter the conf/local.conf to be changed according to the contents
given in the link and again give a bitbake.
so should i alter the local.conf and the /bblayers.conf to set up the qt
platform?


Please suggest.





On Sun, Aug 3, 2014 at 2:39 PM, Nilesh Kokane <
nilesh.kokane at mindastoneridge.com> wrote:

> Hi Thomas
>
>
> Thanks for your reply
>
>
> And that's the problem .. isn't it? From previose mails I understand you
> trying to get a EGLFS (egl on top of framebuffer) build .. right?
> (the rest of this mail assume a 'yes' to this answer)
>
> Yes, I'm trying to get EGLFS
>
>
> You're trying to compile Qt/XCB on top of a sysroot which has no X11 in it.
>
> .. and/or you have X11 left overs from previous builds and Qt picks them up
> although you're building with -DEGL_API_FB=1
>
> >
> > then check if egl defines are OK in that header.
> > you might delete all defines except X11 in eglvivante.h
> > may be that will help.
>
> Tinkering your eglvivante.h sound like the wrong thing to do :)
>
>  I largely tweaked the eglvivante.h in an attempt to solve the problem
> without having the backup copy.
> So just to restore the eglvivante.h back, i derived the file from the
> reference  github (
> https://github.com/rogeriorps/gpu-samples-mx6/blob/master/lesson03/include/EGL/eglvivante.h)
> will that cause a -ve effect in the build?
>
>
>
>
> Also, I'll perform the following mentioned experiments and update about
> the results shortly.
>
>
> This should be solved by qtbase_%.bbappend in meta-fsl-arm.
> You'll see that there is code for:
>         a. taking the right platform plugin
>                 (the line with "-eglfs" in it)*
>         b. setup for eglvivante.h
>                 (the lines around -DEGL_API_FB=1
>
> (*this line could be improved by adding -xcb and -no-xcb accordingly...)
>
>
> Open qtbase.inc (from meta-qt5) and remove the "-silent"
> Then clean your build director* (I usually just delete the complete build
> folder and start from scratch)
> Build again, and if it fails then write again to this mail list with links
> to
> all logs:
>         bitbake log,
>         qtbase: run.configure, log.do_configure, run.do_compile,
> log.do_compile
>
>
> (*This is just to make sure the change for DISTRO_FEATURE has no side
> effects,
> if already did a clean build after the change then you should be good)
>
>
> On Sun, Aug 3, 2014 at 12:53 PM, Thomas Senyk <thomas.senyk at pelagicore.com
> > wrote:
>
>> On Sunday, August 03, 2014 09:53:24 AM Nilesh Kokane wrote:
>> > Hi Raj,
>> >
>> >
>> > Thanks for your valuable reply first of all.
>> >
>> >
>> >
>> >
>> >
>> > It seems eglvivante.h might have issues are you compiling
>> > Qt with XCB support ?
>> >
>> > Yes , i'm compiling the Qt with the XCB support
>>
>> And that's the problem .. isn't it? From previose mails I understand you
>> trying to get a EGLFS (egl on top of framebuffer) build .. right?
>> (the rest of this mail assume a 'yes' to this answer)
>>
>> You're trying to compile Qt/XCB on top of a sysroot which has no X11 in
>> it.
>>
>> .. and/or you have X11 left overs from previous builds and Qt picks them
>> up
>> although you're building with -DEGL_API_FB=1
>>
>> >
>> > then check if egl defines are OK in that header.
>> > you might delete all defines except X11 in eglvivante.h
>> > may be that will help.
>>
>> Tinkering your eglvivante.h sound like the wrong thing to do :)
>>
>> This should be solved by qtbase_%.bbappend in meta-fsl-arm.
>> You'll see that there is code for:
>>         a. taking the right platform plugin
>>                 (the line with "-eglfs" in it)*
>>         b. setup for eglvivante.h
>>                 (the lines around -DEGL_API_FB=1
>>
>> (*this line could be improved by adding -xcb and -no-xcb accordingly...)
>>
>>
>> Open qtbase.inc (from meta-qt5) and remove the "-silent"
>> Then clean your build director* (I usually just delete the complete build
>> folder and start from scratch)
>> Build again, and if it fails then write again to this mail list with
>> links to
>> all logs:
>>         bitbake log,
>>         qtbase: run.configure, log.do_configure, run.do_compile,
>> log.do_compile
>>
>>
>> (*This is just to make sure the change for DISTRO_FEATURE has no side
>> effects,
>> if already did a clean build after the change then you should be good)
>>
>> >
>> >
>> > My eglvivante.h looks something like  this http://pastebin.com/DTEDrRkx
>> > can you tell me exactly what i need to delete in the header file for
>> > circumventing the problem
>> >
>> >
>> >
>> > Thanks
>> > Nilesh Kokane
>> >
>> > On Sun, Aug 3, 2014 at 1:59 AM, Khem Raj <raj.khem at gmail.com> wrote:
>> > > On 14-08-02 08:59:13, Nilesh Kokane wrote:
>> > > > where are the logs
>> > > >
>> > > > I'm logged with the errors as posted on pastebin
>> > > > http://pastebin.com/hsMhT9f8
>> > > >
>> > > > Please if you can have alook.
>> > >
>> > > It seems eglvivante.h might have issues are you compiling
>> > > Qt with XCB support ?
>> > > then check if egl defines are OK in that header.
>> > > you might delete all defines except X11 in eglvivante.h
>> > > may be that will help.
>>
>>
>
>
> --
> Thanks
>
>


-- 
Thanks

-- 
“The contents of this e-mail message and any attachments are confidential 
and are intended solely for addressee. The information may also be legally 
privileged. This transmission is sent in trust, for the sole purpose of 
delivery to the intended recipient. If you have received this transmission 
in error, any use, reproduction or dissemination of this transmission is 
strictly prohibited. If you are not the intended recipient, please 
immediately notify the sender by reply e-mail or phone and delete this 
message and its attachments, if any.”
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.png
Type: image/png
Size: 67631 bytes
Desc: not available
URL: <http://lists.openembedded.org/pipermail/openembedded-devel/attachments/20140804/cbf3b98e/attachment-0002.png>


More information about the Openembedded-devel mailing list