Re: [yocto] Help in building an ad-hoc qte image
Hi Paul and Andrea thanks for your reply. I did some testing (including splitting task recipe per each target and including PACKAGE_ARCH = "${MACHINE_ARCH}") but with no success. Even removing this from task recipes: RDEPENDS_${PN}-base_append_ANOTHERBOARD = " \ libqt-embeddedphonon4 \ qt4-embedded-plugin-phonon-backend-gstreamer \ " pulls in gstreamer. I guess some other qt lib (other than phonon & gstreamer plugin) do introduce some shlibdeps to gstreamer as Paul indicated. thanks for your help. Regards. Marco Monguzzi R&D Department Exor International S.p.A. Via Monte Fiorino,9 I-37057 San Giovanni Lupatoto (VR) Phone:+390458774809 - Fax:+390458779023 Mobile:+393400884433 marco.mongu...@exorint.it - www.exorint.net - www.exorint.it ATTENZIONE: Privacy Policy – D.Lgs. 196/2003 Le informazioni contenute in questo messaggio di posta elettronica sono di carattere privato e confidenziale ed esclusivamente rivolte al destinatario sopra indicato. Nel caso aveste ricevuto questo messaggio di posta elettronica per errore, vi comunichiamo che ai sensi del suddetto decreto è vietato l’uso, la diffusione, distribuzione o riproduzione da parte di ogni altra persona. Siete pregati di segnalarlo immediatamente rispondendo al mittente e di distruggere quanto ricevuto (compresi i file allegati) senza farne copia o leggerne il contenuto. This e-mail transmission contains information that is confidential and may be privileged. It is intended only for the addressee(s) named above. If you receive this e-mail in error, please do not read, copy or disseminate it in any manner. If you are not the intended recipient, any disclosure, copying, distribution or use of the contents of this information is prohibited. Please reply to the message immediately by informing the sender that the message was misdirected. After replying, please erase it from your computer system. Your assistance in correcting this error is appreciated. ___ yocto mailing list yocto@yoctoproject.org https://lists.yoctoproject.org/listinfo/yocto
Re: [yocto] Help in building an ad-hoc qte image
On Tuesday 29 May 2012 13:43:44 Andrea Adami wrote: > On Tue, May 29, 2012 at 12:56 PM, Paul Eggleton > wrote: > > On Tuesday 29 May 2012 12:25:27 marco.mongu...@exorint.it wrote: > >> let me rephrase for the sake of clearness. > >> This part of recipe: > >> > >> RDEPENDS_${PN}-base_ANOTHERBOARD = " \ > >> libqt-embeddedphonon4 \ > >> qt4-embedded-plugin-phonon-backend-gstreamer \ > >> " > >> > >> has the ultimate goal of adding phonon + gstreamer backend > >> for ANOTHERBOARD only to the rootfs. > >> It appears ok. We normally do not get indeed phonon + gstreamer backend. > > and btw this doesn't look right to me. > > maybe you meant > > >> RDEPENDS_${PN}-base_append_ANOTHERBOARD = " \ Ah yes, well spotted. > Finally, it looks like you could easily workaround your problem by > defining a specific recipe for ANOTHERBOARD. Except I don't think you will find this includes automatic runtime dependencies such as the shlibdeps I described previously. Cheers, Paul -- Paul Eggleton Intel Open Source Technology Centre ___ yocto mailing list yocto@yoctoproject.org https://lists.yoctoproject.org/listinfo/yocto
Re: [yocto] Help in building an ad-hoc qte image
On Tue, May 29, 2012 at 12:56 PM, Paul Eggleton wrote: > On Tuesday 29 May 2012 12:25:27 marco.mongu...@exorint.it wrote: >> let me rephrase for the sake of clearness. >> This part of recipe: >> >> RDEPENDS_${PN}-base_ANOTHERBOARD = " \ >> libqt-embeddedphonon4 \ >> qt4-embedded-plugin-phonon-backend-gstreamer \ >> " >> >> has the ultimate goal of adding phonon + gstreamer backend >> for ANOTHERBOARD only to the rootfs. >> It appears ok. We normally do not get indeed phonon + gstreamer backend. >> and btw this doesn't look right to me. maybe you meant >> RDEPENDS_${PN}-base_append_ANOTHERBOARD = " \ Finally, it looks like you could easily workaround your problem by defining a specific recipe for ANOTHERBOARD. Regards Andrea P.S.: try bitbake -g XYZ or bitbake -g -u depexp XYZ to quickly inspect dependencies >> The issue is that we get contents of >> meta\recipes-multimedia\gstreamer\gstreamer_0.10.36.bb >> (see original post for listing) in the rootfs and do not get what pull >> them in. > > Ah, right, now I understand the question. So you've asked for task-qt4e-xyz- > base to be installed, and task-qt4e-xyz-base for ANOTHERBOARD RDEPENDS upon > qt4-embedded-plugin-phonon-backend-gstreamer. The "missing link" is that in > do_package we have some code to analyse shared libraries (.so) that are going > into a package in order to detect which other shared libraries they need, and > if any are found we look to see which package provides them and automatically > add that package to RDEPENDS. Thus we look at the .so files in qt4-embedded- > plugin-phonon-backend-gstreamer and determine from them that gstreamer is > required, thus gstreamer (along with libgstaudio and libgstvideo) is added to > RDEPENDS. See classes/package.bbclass if you want to see the code for this > (look for shlibdeps). > > Note that sometimes this highlights problems with package granularity - I > don't know enough about gstreamer to know if any of the files currently in the > "gstreamer" package could actually be separated out if they aren't desired in > some installations. Occasionally as a result we do split packages further to > avoid unnecessary files being installed for all situations. > > Cheers, > Paul > > -- > > Paul Eggleton > Intel Open Source Technology Centre > ___ > yocto mailing list > yocto@yoctoproject.org > https://lists.yoctoproject.org/listinfo/yocto ___ yocto mailing list yocto@yoctoproject.org https://lists.yoctoproject.org/listinfo/yocto
Re: [yocto] Help in building an ad-hoc qte image
On Tuesday 29 May 2012 12:25:27 marco.mongu...@exorint.it wrote: > let me rephrase for the sake of clearness. > This part of recipe: > > RDEPENDS_${PN}-base_ANOTHERBOARD = " \ > libqt-embeddedphonon4 \ > qt4-embedded-plugin-phonon-backend-gstreamer \ > " > > has the ultimate goal of adding phonon + gstreamer backend > for ANOTHERBOARD only to the rootfs. > It appears ok. We normally do not get indeed phonon + gstreamer backend. > > The issue is that we get contents of > meta\recipes-multimedia\gstreamer\gstreamer_0.10.36.bb > (see original post for listing) in the rootfs and do not get what pull > them in. Ah, right, now I understand the question. So you've asked for task-qt4e-xyz- base to be installed, and task-qt4e-xyz-base for ANOTHERBOARD RDEPENDS upon qt4-embedded-plugin-phonon-backend-gstreamer. The "missing link" is that in do_package we have some code to analyse shared libraries (.so) that are going into a package in order to detect which other shared libraries they need, and if any are found we look to see which package provides them and automatically add that package to RDEPENDS. Thus we look at the .so files in qt4-embedded- plugin-phonon-backend-gstreamer and determine from them that gstreamer is required, thus gstreamer (along with libgstaudio and libgstvideo) is added to RDEPENDS. See classes/package.bbclass if you want to see the code for this (look for shlibdeps). Note that sometimes this highlights problems with package granularity - I don't know enough about gstreamer to know if any of the files currently in the "gstreamer" package could actually be separated out if they aren't desired in some installations. Occasionally as a result we do split packages further to avoid unnecessary files being installed for all situations. Cheers, Paul -- Paul Eggleton Intel Open Source Technology Centre ___ yocto mailing list yocto@yoctoproject.org https://lists.yoctoproject.org/listinfo/yocto
[yocto] Help in building an ad-hoc qte image
Hi Paul, thanks for your reply. >> If I understand correctly in that you have more than one machine and you need gstreamer on ANOTHERBOARD and all other machines don't need it, << let me rephrase for the sake of clearness. This part of recipe: RDEPENDS_${PN}-base_ANOTHERBOARD = " \ libqt-embeddedphonon4 \ qt4-embedded-plugin-phonon-backend-gstreamer \ " has the ultimate goal of adding phonon + gstreamer backend for ANOTHERBOARD only to the rootfs. It appears ok. We normally do not get indeed phonon + gstreamer backend. The issue is that we get contents of meta\recipes-multimedia\gstreamer\gstreamer_0.10.36.bb (see original post for listing) in the rootfs and do not get what pull them in. We see that gstreamer is set as DEPENDS for qte (rif. qt4.inc) thus correctly built together with qt4-embedded. But our "task-qt4e-xyz" recipe defines qt4-embedded as DEPENDS instead of RDEPENDS. Shouldn't be this enough to ask bitbake for building qte but not install other than what specified in RDEPENDS to the rootfs? Thanks in advance for your help. Regards. Marco Monguzzi R&D Department Exor International S.p.A. Via Monte Fiorino,9 I-37057 San Giovanni Lupatoto (VR) Phone:+390458774809 - Fax:+390458779023 Mobile:+393400884433 marco.mongu...@exorint.it - www.exorint.net - www.exorint.it ATTENZIONE: Privacy Policy – D.Lgs. 196/2003 Le informazioni contenute in questo messaggio di posta elettronica sono di carattere privato e confidenziale ed esclusivamente rivolte al destinatario sopra indicato. Nel caso aveste ricevuto questo messaggio di posta elettronica per errore, vi comunichiamo che ai sensi del suddetto decreto è vietato l’uso, la diffusione, distribuzione o riproduzione da parte di ogni altra persona. Siete pregati di segnalarlo immediatamente rispondendo al mittente e di distruggere quanto ricevuto (compresi i file allegati) senza farne copia o leggerne il contenuto. This e-mail transmission contains information that is confidential and may be privileged. It is intended only for the addressee(s) named above. If you receive this e-mail in error, please do not read, copy or disseminate it in any manner. If you are not the intended recipient, any disclosure, copying, distribution or use of the contents of this information is prohibited. Please reply to the message immediately by informing the sender that the message was misdirected. After replying, please erase it from your computer system. Your assistance in correcting this error is appreciated. ___ yocto mailing list yocto@yoctoproject.org https://lists.yoctoproject.org/listinfo/yocto
Re: [yocto] Help in building an ad-hoc qte image
Hi Giovanni, On Thursday 24 May 2012 11:09:54 giovanni.pav...@exorint.it wrote: > this is to ask for help in building an ad-hoc qte image. My image bb sets > as DEPENDS a custom "task-qt4e-xyz" task. Where task-qt4e-xyz.bb looks as > follow: > > //-// > > DESCRIPTION = "QT4 embedded xyz base image feed" > PR = "r1" > LICENSE = "MIT" > > LIC_FILES_CHKSUM = "file://$ > {COREBASE}/LICENSE;md5=3f40d7994397109285ec7b81fdeb3b58 \ > file://$ > {COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420" > > PR = "r3" > > inherit task > > TOUCH = ' ${@base_contains("MACHINE_FEATURES", "touchscreen", "tslib > tslib-calibrate", "",d)}' > > PACKAGES += " \ > ${PN}-base \ > " > DEPENDS = "qt4-embedded" > > RDEPENDS_${PN}-base = " \ > qt4-embedded-conf \ > libqt-embeddedcore4 \ > libqt-embeddeddbus4 \ > libqt-embeddedgui4 \ > libqt-embeddedmultimedia4 \ > libqt-embeddednetwork4 \ > libqt-embeddedscript4 \ > libqt-embeddedscripttools4 \ > libqt-embeddedsvg4 \ > libqt-embeddedxml4 \ > qt4-embedded-fonts-ttf-dejavu \ > qt4-embedded-fonts-ttf-vera \ > qt4-embedded-plugin-iconengine-svgicon \ > qt4-embedded-plugin-imageformat-gif \ > qt4-embedded-plugin-imageformat-ico \ > qt4-embedded-plugin-imageformat-jpeg \ > qt4-embedded-plugin-imageformat-mng \ > qt4-embedded-plugin-imageformat-svg \ > qt4-embedded-plugin-imageformat-tiff \ > qt4-embedded-plugin-mousedriver-tslib \ > qt4-embedded-plugin-script-dbus \ > ${TOUCH} \ > " > > RDEPENDS_${PN}-base_ANOTHERBOARD = " \ > libqt-embeddedphonon4 \ > qt4-embedded-plugin-phonon-backend-gstreamer \ > " > > RRECOMMENDS_${PN}-base = " \ > libqt-embeddedwebkit4 \ > libqt-embeddedxmlpatterns4 \ > " > //-// > > The problem: I am getting in my image gstreamer contents (see below for > files in my rootfs) > but I unable to trace what gets it in. I need to build gstreamer to add to > ANOTHERBOARD > (thus would expect to add it to RDEPENDS_${PN}-base_ANOTHERBOARD) but do > not need it by default. If I understand correctly in that you have more than one machine and you need gstreamer on ANOTHERBOARD and all other machines don't need it, I think the problem here may be that the task package is not being built as machine- specific; thus if task-qt4e-xyz is built for ANOTHERBOARD first then it will bring in qt4-embedded-plugin-phonon-backend-gstreamer which pulls in gstreamer. You may find that the problem goes away if you add this to the task recipe: PACKAGE_ARCH = "${MACHINE_ARCH}" It's worth noting however that you don't have to add qt4-embedded-plugin- phonon-backend-gstreamer here at all in order to have it built - the qt4 recipes always build it; so if you were adding it here just to make it build and you don't need it installed by default, none of this is necessary at all. Cheers, Paul -- Paul Eggleton Intel Open Source Technology Centre ___ yocto mailing list yocto@yoctoproject.org https://lists.yoctoproject.org/listinfo/yocto
[yocto] Help in building an ad-hoc qte image
Dear Sirs, this is to ask for help in building an ad-hoc qte image. My image bb sets as DEPENDS a custom "task-qt4e-xyz" task. Where task-qt4e-xyz.bb looks as follow: //-// DESCRIPTION = "QT4 embedded xyz base image feed" PR = "r1" LICENSE = "MIT" LIC_FILES_CHKSUM = "file://$ {COREBASE}/LICENSE;md5=3f40d7994397109285ec7b81fdeb3b58 \ file://$ {COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420" PR = "r3" inherit task TOUCH = ' ${@base_contains("MACHINE_FEATURES", "touchscreen", "tslib tslib-calibrate", "",d)}' PACKAGES += " \ ${PN}-base \ " DEPENDS = "qt4-embedded" RDEPENDS_${PN}-base = " \ qt4-embedded-conf \ libqt-embeddedcore4 \ libqt-embeddeddbus4 \ libqt-embeddedgui4 \ libqt-embeddedmultimedia4 \ libqt-embeddednetwork4 \ libqt-embeddedscript4 \ libqt-embeddedscripttools4 \ libqt-embeddedsvg4 \ libqt-embeddedxml4 \ qt4-embedded-fonts-ttf-dejavu \ qt4-embedded-fonts-ttf-vera \ qt4-embedded-plugin-iconengine-svgicon \ qt4-embedded-plugin-imageformat-gif \ qt4-embedded-plugin-imageformat-ico \ qt4-embedded-plugin-imageformat-jpeg \ qt4-embedded-plugin-imageformat-mng \ qt4-embedded-plugin-imageformat-svg \ qt4-embedded-plugin-imageformat-tiff \ qt4-embedded-plugin-mousedriver-tslib \ qt4-embedded-plugin-script-dbus \ ${TOUCH} \ " RDEPENDS_${PN}-base_ANOTHERBOARD = " \ libqt-embeddedphonon4 \ qt4-embedded-plugin-phonon-backend-gstreamer \ " RRECOMMENDS_${PN}-base = " \ libqt-embeddedwebkit4 \ libqt-embeddedxmlpatterns4 \ " //-// The problem: I am getting in my image gstreamer contents (see below for files in my rootfs) but I unable to trace what gets it in. I need to build gstreamer to add to ANOTHERBOARD (thus would expect to add it to RDEPENDS_${PN}-base_ANOTHERBOARD) but do not need it by default. Anyone can give an hint? Thanks in advance for your help. //-// Here is the list of gst files included in my rootfs: /usr/bin: -rwxr-xr-x1 root root 10720 May 4 14:35 gst-feedback -rwxr-xr-x1 root root 3173 May 4 14:33 gst-feedback-0.10 -rwxr-xr-x1 root root 10716 May 4 14:35 gst-inspect -rwxr-xr-x1 root root 35820 May 4 14:35 gst-inspect-0.10 -rwxr-xr-x1 root root 10716 May 4 14:35 gst-launch -rwxr-xr-x1 root root 34288 May 4 14:35 gst-launch-0.10 -rwxr-xr-x1 root root 10720 May 4 14:35 gst-typefind -rwxr-xr-x1 root root 12568 May 4 14:35 gst-typefind-0.10 -rwxr-xr-x1 root root 10720 May 4 14:35 gst-xmlinspect -rwxr-xr-x1 root root 21500 May 4 14:35 gst-xmlinspect-0.10 -rwxr-xr-x1 root root 10720 May 4 14:35 gst-xmllaunch -rwxr-xr-x1 root root 34292 May 4 14:35 gst-xmllaunch-0.10 /usr/lib: lrwxrwxrwx1 root root24 May 24 07:36 libgstapp-0.10.so.0 -> libgstapp-0.10.so.0.25.0 -rwxr-xr-x1 root root 43408 May 4 14:38 libgstapp-0.10.so.0.25.0 lrwxrwxrwx1 root root25 May 24 07:36 libgstbase-0.10.so.0 -> libgstbase-0.10.so.0.30.0 -rwxr-xr-x1 root root332756 May 4 14:35 libgstbase-0.10.so.0.30.0 lrwxrwxrwx1 root root26 May 24 07:36 libgstcheck-0.10.so.0 -> libgstcheck-0.10.so.0.30.0 -rwxr-xr-x1 root root 44176 May 4 14:35 libgstcheck-0.10.so.0.30.0 lrwxrwxrwx1 root root31 May 24 07:36 libgstcontroller-0.10.so.0 -> libgstcontroller-0.10.so.0.30.0 -rwxr-xr-x1 root root127352 May 4 14:35 libgstcontroller-0.10.so.0.30.0 lrwxrwxrwx1 root root33 May 24 07:36 libgstdataprotocol-0.10.so.0 -> libgstdataprotocol-0.10.so.0.30.0 -rwxr-xr-x1 root root 16644 May 4 14:35 libgstdataprotocol-0.10.so.0.30.0 lrwxrwxrwx1 root root31 May 24 07:36 libgstinterfaces-0.10.so.0 -> libgstinterfaces-0.10.so.0.25.0 -rwxr-xr-x1 root root 54036 May 4 14:38 libgstinterfaces-0.10.so.0.25.0 lrwxrwxrwx1 root root24 May 24 07:36 libgstnet-0.10.so.0 -> libgstnet-0.10.so.0.30.0 -rwxr-xr-x1 root root 23484 May 4 14:35 libgstnet-0.10.so.0.30.0 lrwxrwxrwx1 root root28 May 24 07:36 libgstpbutils-0.10.so.0 -> libgstpbutils-0.10.so.0.25.0 -rwxr-xr-x1 root root124048 May 4 14:38 libgstpbutils-0.10.so.0.25.0 lrwxrwxrwx1 root root27 May 24 07:36 libgstreamer-0.10.so.0 -> libgstreamer-0.10.so.0.30.0 -rwxr-xr-x1 root root850784 May 4 14:35 libgstreamer-0.10.so.0.30.0 lrwxrwxrwx1 root root26 May 24 07:36 libgstvideo-0.10.so.0 -> libgstvideo