Re: [yocto] Remove unwanted package from Qt
On Fri, Jan 18, 2013 at 10:59 AM, Eric Bénard wrote: > Le Fri, 18 Jan 2013 10:25:22 -0500, > Jon Szymaniak a écrit : >> I checked the package list on a running system (opkg list | grep -i >> qt). Here's all the installed Qt packages...no qt4-embedded-examples >> as far as I see. >> >> libqtcoree4 - 4.8.3-r50.0 >> libqtdeclarativee4 - 4.8.3-r50.0 >> libqtguie4 - 4.8.3-r50.0 >> libqtnetworke4 - 4.8.3-r50.0 >> libqtscripte4 - 4.8.3-r50.0 >> libqtsqle4 - 4.8.3-r50.0 >> >> Seems strange to me...any thoughts? > > strange, in a fresh build of danny /usr/share/qtopia is only present in > the following packages : > > ./qt4-embedded-translation-linguist/usr/share/qtopia > ./qt4-embedded-translation-qt/usr/share/qtopia > ./qt4-embedded-translation-qvfb/usr/share/qtopia > ./qt4-embedded-qt3to4/usr/share/qtopia > ./qt4-embedded-translation-qtconfig/usr/share/qtopia > ./qt4-embedded-mkspecs/usr/share/qtopia > ./qt4-embedded-phrasebook-dutch/usr/share/qtopia > ./qt4-embedded-phrasebook-french/usr/share/qtopia > ./qt4-embedded-phrasebook-spanish/usr/share/qtopia > ./qt4-embedded-phrasebook-russian/usr/share/qtopia > ./qt4-embedded-phrasebook-italian/usr/share/qtopia > ./qt4-embedded-phrasebook-polish/usr/share/qtopia > ./qt4-embedded-translation-assistant/usr/sh > ./qt4-embedded-phrasebook-swedish/usr/share/qtopia > ./qt4-embedded-doc/usr/share/doc/qtopia > ./qt4-embedded-translation-designer/usr/share/qtopia > ./qt4-embedded-phrasebook-danish/usr/share/qtopia > ./qt4-embedded-phrasebook-finnish/usr/share/qtopia > ./qt4-embedded-phrasebook-german/usr/share/qtopia > ./qt4-embedded-demos-doc/usr/share/doc/qtopia > ./qt4-embedded-phrasebook-japanese/usr/share/qtopia > ./qt4-embedded-phrasebook-norwegian/usr/share/qtopia > ./qt4-embedded-phrasebook-hungarian/usr/share/qtopia > > can you check in your workdir in packages-split which package includes > this directory ? > > Eric Eric, Sorry for the delay. I did check my packages-split and it was the same as what you listed. Since your email, I had removed my do_install_append() from my qt4-embedded bbappend, blown away build/$MY_DIR/tmp and done a full rebuild. I no longer see the qtopia directory in my images. Perhaps this was a vestige of me experimenting with Qt early on? I guess I'll call it a mystery solved for the time being, but will touch back on the mailing list if I figure out what exactly caused this to be populated in my filesystem. (Unless of course, there were other items you'd like me to check.) Thanks again, Jon ___ yocto mailing list yocto@yoctoproject.org https://lists.yoctoproject.org/listinfo/yocto
Re: [yocto] Remove unwanted package from Qt
Le Fri, 18 Jan 2013 10:25:22 -0500, Jon Szymaniak a écrit : > I checked the package list on a running system (opkg list | grep -i > qt). Here's all the installed Qt packages...no qt4-embedded-examples > as far as I see. > > libqtcoree4 - 4.8.3-r50.0 > libqtdeclarativee4 - 4.8.3-r50.0 > libqtguie4 - 4.8.3-r50.0 > libqtnetworke4 - 4.8.3-r50.0 > libqtscripte4 - 4.8.3-r50.0 > libqtsqle4 - 4.8.3-r50.0 > > Seems strange to me...any thoughts? strange, in a fresh build of danny /usr/share/qtopia is only present in the following packages : ./qt4-embedded-translation-linguist/usr/share/qtopia ./qt4-embedded-translation-qt/usr/share/qtopia ./qt4-embedded-translation-qvfb/usr/share/qtopia ./qt4-embedded-qt3to4/usr/share/qtopia ./qt4-embedded-translation-qtconfig/usr/share/qtopia ./qt4-embedded-mkspecs/usr/share/qtopia ./qt4-embedded-phrasebook-dutch/usr/share/qtopia ./qt4-embedded-phrasebook-french/usr/share/qtopia ./qt4-embedded-phrasebook-spanish/usr/share/qtopia ./qt4-embedded-phrasebook-russian/usr/share/qtopia ./qt4-embedded-phrasebook-italian/usr/share/qtopia ./qt4-embedded-phrasebook-polish/usr/share/qtopia ./qt4-embedded-translation-assistant/usr/share/qtopia ./qt4-embedded-phrasebook-swedish/usr/share/qtopia ./qt4-embedded-doc/usr/share/doc/qtopia ./qt4-embedded-translation-designer/usr/share/qtopia ./qt4-embedded-phrasebook-danish/usr/share/qtopia ./qt4-embedded-phrasebook-finnish/usr/share/qtopia ./qt4-embedded-phrasebook-german/usr/share/qtopia ./qt4-embedded-demos-doc/usr/share/doc/qtopia ./qt4-embedded-phrasebook-japanese/usr/share/qtopia ./qt4-embedded-phrasebook-norwegian/usr/share/qtopia ./qt4-embedded-phrasebook-hungarian/usr/share/qtopia can you check in your workdir in packages-split which package includes this directory ? Eric ___ yocto mailing list yocto@yoctoproject.org https://lists.yoctoproject.org/listinfo/yocto
Re: [yocto] Remove unwanted package from Qt
On Thu, Jan 17, 2013 at 3:19 AM, Eric Bénard wrote: > Hi Jon, > > "inherit qt4e" is enough, no need to add qt4-embedded to DEPENDS. > Thanks! This makes sense, as I see this dependency is established in the first few lines of qt4e.bbclass. > > strange, demos and examples are packaged in ${QT_BASE_NAME}-demos and > ${QT_BASE_NAME}-examples packages so if you find these directories on > your target, that means you requested qt4-embedded-demos and > qt4-embedded-examples to be installed in your image. > > Are you installing packagegroup-core-qt4e in your image like in > qt4e-demo-image ? If yes, that's where you pull demos & examples. > > To get a minimal image, you could simply have : > IMAGE_INSTALL += "\ > ${CORE_IMAGE_BASE_INSTALL} \ > you_qt_app \ > some qt4-embedded-fonts or qt4-embedded-plugin you may need > (check packagegroup-core-qt4e.bb for the exact names) \ > " > inherit core-image > > The Qt libraries your application is linked with will be automatically > installed and you won't get extra unwanted packages in your image. > > Best regards, > Eric My IMAGE_INSTALL looks very similar to what you've shown there, which I based upon what I saw in core-image-minimal. I see that I still have a task-core-boot lying around, so I need to change that a packagegroup-core-boot. (IIRC, packagegroup-core-boot PROVIDES task-core-boot for the time being...) IMAGE_INSTALL = " task-core-boot \ my_qt_app \ a_few_unrelated_recipes_that_don't_use_qt \ ${ROOTFS_PKGMANAGE_BOOTSTRAP} \ ${CORE_IMAGE_EXTRA_INSTALL} \ " I checked the package list on a running system (opkg list | grep -i qt). Here's all the installed Qt packages...no qt4-embedded-examples as far as I see. libqtcoree4 - 4.8.3-r50.0 libqtdeclarativee4 - 4.8.3-r50.0 libqtguie4 - 4.8.3-r50.0 libqtnetworke4 - 4.8.3-r50.0 libqtscripte4 - 4.8.3-r50.0 libqtsqle4 - 4.8.3-r50.0 Seems strange to me...any thoughts? Thank you for your time and help! Jon ___ yocto mailing list yocto@yoctoproject.org https://lists.yoctoproject.org/listinfo/yocto
Re: [yocto] Remove unwanted package from Qt
Hi Jon, Le Wed, 16 Jan 2013 13:49:25 -0500, Jon Szymaniak a écrit : > I'm not doing anything too unusual for "installing" Qt. My recipes for > my Qt application simply inherit qt4e, and list qt4-embedded in > DEPENDS. > "inherit qt4e" is enough, no need to add qt4-embedded to DEPENDS. > The only place where I deviated a bit from the norm is that I use a > qt4-embedded_4.8.3.bbappend to set up QT_CONFIG_FLAGS exactly as I > want them, and to rm ${D}/usr/bin/qtopia. Below's my bbappend. I'd be > interested to hear if there's a better way to clean out unneeded > directories from a rootfs (in my case ${D}/usr/bin/qtopia). > > DEPENDS = "qt4-tools-native freetype jpeg libpng zlib" > > # Override provided recipe and configure Qt4 to... > # - Disable irrelevant functionality and output > # - Disable SQL Plugins > # - Disable unused input/ouput > # - Have keyboard input and mouse input via /dev/input/mice > # - Have Linux framebuffer support > # - Use QML (so we need the declarative engine) > # > # Note, some of these might be extraneous, and this is a work in progress. > # (You've been warned!) > QT_CONFIG_FLAGS = "\ > -embedded ${QT_ARCH} -qtlibinfix ${QT_LIBINFIX} \ > -release -no-rpath -reduce-relocations -shared -no-exceptions \ > -no-mmx -no-3dnow -no-sse -no-sse2 -no-sse3 -no-sse4.1 -no-sse4.2 -no-avx \ > -no-glib -no-largefile -no-accessibility -no-openssl -no-gtkstyle \ > -no-xcursor -no-xinerama -no-phonon -no-phonon-backend -no-svg -no-webkit \ > -no-libmng -no-accessibility -no-qt3support -no-xmlpatterns \ > -no-audio-backend -no-gif -nomake examples -nomake demos -no-javascript-jit \ > -no-nis -no-cups -no-declarative-debug \ > -no-sql-db2 -no-sql-ibase -no-sql-mysql -no-sql-oci -no-sql-odbc \ > -no-sql-sqlite -no-sql-sqlite2 -no-sql-sqlite_symbian -no-sql-tds \ > -no-xkb -no-kbd-tty -no-kbd-qnx -no-mouse-linuxinput \ > -no-mouse-tslib -no-mouse-qnx -no-mouse-linuxtp \ > -qt-mouse-pc -qt-kbd-linuxinput \ > -qt-gfx-linuxfb -qt-gfx-multiscreen \ > -depths 8,16,24,32 \ > -declarative -script" > > PRINC := "${@int(PRINC) + 1}" > > # Despite not building them, qt4.inc creates /usr/bin/qtopia/ with > # only demo/ and example/ underneath. Let's get rid of these... > do_install_append() { > rm -rf ${D}/usr/bin/qtopia > } strange, demos and examples are packaged in ${QT_BASE_NAME}-demos and ${QT_BASE_NAME}-examples packages so if you find these directories on your target, that means you requested qt4-embedded-demos and qt4-embedded-examples to be installed in your image. Are you installing packagegroup-core-qt4e in your image like in qt4e-demo-image ? If yes, that's where you pull demos & examples. To get a minimal image, you could simply have : IMAGE_INSTALL += "\ ${CORE_IMAGE_BASE_INSTALL} \ you_qt_app \ some qt4-embedded-fonts or qt4-embedded-plugin you may need (check packagegroup-core-qt4e.bb for the exact names) \ " inherit core-image The Qt libraries your application is linked with will be automatically installed and you won't get extra unwanted packages in your image. Best regards, Eric ___ yocto mailing list yocto@yoctoproject.org https://lists.yoctoproject.org/listinfo/yocto
Re: [yocto] Remove unwanted package from Qt
On Wed, Jan 16, 2013 at 1:14 PM, Paul Eggleton wrote: > > On Wednesday 16 January 2013 23:26:20 Navani Srivastava wrote: > > On Thu, Dec 27, 2012 at 11:08 PM, Jon Szymaniak > wrote: > > > >> I am compiling Qt-4.8.0 with poky-denzil-7.0 for arm1136 > > > >> architecture. > > > >> > > > >> At the time of integrating qt-embedded with rootfs, I am getting > > > >> qtopia > > > >> directory in usr/share path of rootfs. > > > >> > > > >> I tried removing qtopia directory through qt recipe but ended in > > > >> compilation error. Please suggest any idea to remove qtopia from > > > >> share > > > >> directory. > > > > > > > > I ran into this as well after using a bbappend to disable a number > > > > of > > > > Qt features, including the building of demos that get staged in the > > > > aforementioned path. In my case, that qtopia directory (and any > > > > subdirectories) wound up either being empty or containing files that > > > > were unnecessary for my build. > > > > > > > > My quick and dirty solution was to just to add a install_append() > > > > containing a 'rm -rf ${D}${datadir}/qtopia' in my bbappend. (Be sure > > > > you don't have anything important in there!) I'd be curious to hear > > > > if > > > > there's a better approach to this as well... > > > > > > Oops...just wanted to note the typo in my above response -- I'm not at > > > a machine where I have access to my recipes. > > > > > > That should be a do_install_append(), not install_append(). I'd also > > > double check the qtopia path, as I wrote that from memory, which may > > > not be reliable. ;) > > > > I tried the same but again ended up with error. As of now i am removing > > all > > unwanted things from rootfs by making changes in image_types.bbclass. I > > am > > sure this is not the correct way, any ideas are appreciated.. > > Can I ask both of you exactly how you are getting Qt installed into the > image? > > Cheers, > Paul > > -- > > Paul Eggleton > Intel Open Source Technology Centre I'm not doing anything too unusual for "installing" Qt. My recipes for my Qt application simply inherit qt4e, and list qt4-embedded in DEPENDS. The only place where I deviated a bit from the norm is that I use a qt4-embedded_4.8.3.bbappend to set up QT_CONFIG_FLAGS exactly as I want them, and to rm ${D}/usr/bin/qtopia. Below's my bbappend. I'd be interested to hear if there's a better way to clean out unneeded directories from a rootfs (in my case ${D}/usr/bin/qtopia). DEPENDS = "qt4-tools-native freetype jpeg libpng zlib" # Override provided recipe and configure Qt4 to... # - Disable irrelevant functionality and output # - Disable SQL Plugins # - Disable unused input/ouput # - Have keyboard input and mouse input via /dev/input/mice # - Have Linux framebuffer support # - Use QML (so we need the declarative engine) # # Note, some of these might be extraneous, and this is a work in progress. # (You've been warned!) QT_CONFIG_FLAGS = "\ -embedded ${QT_ARCH} -qtlibinfix ${QT_LIBINFIX} \ -release -no-rpath -reduce-relocations -shared -no-exceptions \ -no-mmx -no-3dnow -no-sse -no-sse2 -no-sse3 -no-sse4.1 -no-sse4.2 -no-avx \ -no-glib -no-largefile -no-accessibility -no-openssl -no-gtkstyle \ -no-xcursor -no-xinerama -no-phonon -no-phonon-backend -no-svg -no-webkit \ -no-libmng -no-accessibility -no-qt3support -no-xmlpatterns \ -no-audio-backend -no-gif -nomake examples -nomake demos -no-javascript-jit \ -no-nis -no-cups -no-declarative-debug \ -no-sql-db2 -no-sql-ibase -no-sql-mysql -no-sql-oci -no-sql-odbc \ -no-sql-sqlite -no-sql-sqlite2 -no-sql-sqlite_symbian -no-sql-tds \ -no-xkb -no-kbd-tty -no-kbd-qnx -no-mouse-linuxinput \ -no-mouse-tslib -no-mouse-qnx -no-mouse-linuxtp \ -qt-mouse-pc -qt-kbd-linuxinput \ -qt-gfx-linuxfb -qt-gfx-multiscreen \ -depths 8,16,24,32 \ -declarative -script" PRINC := "${@int(PRINC) + 1}" # Despite not building them, qt4.inc creates /usr/bin/qtopia/ with # only demo/ and example/ underneath. Let's get rid of these... do_install_append() { rm -rf ${D}/usr/bin/qtopia } ___ yocto mailing list yocto@yoctoproject.org https://lists.yoctoproject.org/listinfo/yocto
Re: [yocto] Remove unwanted package from Qt
On Wednesday 16 January 2013 23:26:20 Navani Srivastava wrote: > On Thu, Dec 27, 2012 at 11:08 PM, Jon Szymaniak wrote: > > >> I am compiling Qt-4.8.0 with poky-denzil-7.0 for arm1136 architecture. > > >> > > >> At the time of integrating qt-embedded with rootfs, I am getting qtopia > > >> directory in usr/share path of rootfs. > > >> > > >> I tried removing qtopia directory through qt recipe but ended in > > >> compilation error. Please suggest any idea to remove qtopia from share > > >> directory. > > > > > > I ran into this as well after using a bbappend to disable a number of > > > Qt features, including the building of demos that get staged in the > > > aforementioned path. In my case, that qtopia directory (and any > > > subdirectories) wound up either being empty or containing files that > > > were unnecessary for my build. > > > > > > My quick and dirty solution was to just to add a install_append() > > > containing a 'rm -rf ${D}${datadir}/qtopia' in my bbappend. (Be sure > > > you don't have anything important in there!) I'd be curious to hear if > > > there's a better approach to this as well... > > > > Oops...just wanted to note the typo in my above response -- I'm not at > > a machine where I have access to my recipes. > > > > That should be a do_install_append(), not install_append(). I'd also > > double check the qtopia path, as I wrote that from memory, which may > > not be reliable. ;) > > I tried the same but again ended up with error. As of now i am removing all > unwanted things from rootfs by making changes in image_types.bbclass. I am > sure this is not the correct way, any ideas are appreciated.. Can I ask both of you exactly how you are getting Qt installed into the image? Cheers, Paul -- Paul Eggleton Intel Open Source Technology Centre ___ yocto mailing list yocto@yoctoproject.org https://lists.yoctoproject.org/listinfo/yocto
Re: [yocto] Remove unwanted package from Qt
I tried the same but again ended up with error. As of now i am removing all unwanted things from rootfs by making changes in image_types.bbclass. I am sure this is not the correct way, any ideas are appreciated.. Thanks Navani On Thu, Dec 27, 2012 at 11:08 PM, Jon Szymaniak wrote: > >> > >> Hi, > >> > >> I am compiling Qt-4.8.0 with poky-denzil-7.0 for arm1136 architecture. > >> > >> > >> > >> At the time of integrating qt-embedded with rootfs, I am getting qtopia > >> directory in usr/share path of rootfs. > >> > >> I tried removing qtopia directory through qt recipe but ended in > >> compilation error. Please suggest any idea to remove qtopia from share > >> directory. > >> > >> > >> > >> Thanks and Regards > >> > >> Navani Kamal Srivastava > > > > I ran into this as well after using a bbappend to disable a number of > > Qt features, including the building of demos that get staged in the > > aforementioned path. In my case, that qtopia directory (and any > > subdirectories) wound up either being empty or containing files that > > were unnecessary for my build. > > > > My quick and dirty solution was to just to add a install_append() > > containing a 'rm -rf ${D}${datadir}/qtopia' in my bbappend. (Be sure > > you don't have anything important in there!) I'd be curious to hear if > > there's a better approach to this as well... > > > > Regards, > > Jon > > Oops...just wanted to note the typo in my above response -- I'm not at > a machine where I have access to my recipes. > > That should be a do_install_append(), not install_append(). I'd also > double check the qtopia path, as I wrote that from memory, which may > not be reliable. ;) > > Apologies, > Jon > ___ yocto mailing list yocto@yoctoproject.org https://lists.yoctoproject.org/listinfo/yocto
Re: [yocto] Remove unwanted package from Qt
>> >> Hi, >> >> I am compiling Qt-4.8.0 with poky-denzil-7.0 for arm1136 architecture. >> >> >> >> At the time of integrating qt-embedded with rootfs, I am getting qtopia >> directory in usr/share path of rootfs. >> >> I tried removing qtopia directory through qt recipe but ended in >> compilation error. Please suggest any idea to remove qtopia from share >> directory. >> >> >> >> Thanks and Regards >> >> Navani Kamal Srivastava > > I ran into this as well after using a bbappend to disable a number of > Qt features, including the building of demos that get staged in the > aforementioned path. In my case, that qtopia directory (and any > subdirectories) wound up either being empty or containing files that > were unnecessary for my build. > > My quick and dirty solution was to just to add a install_append() > containing a 'rm -rf ${D}${datadir}/qtopia' in my bbappend. (Be sure > you don't have anything important in there!) I'd be curious to hear if > there's a better approach to this as well... > > Regards, > Jon Oops...just wanted to note the typo in my above response -- I'm not at a machine where I have access to my recipes. That should be a do_install_append(), not install_append(). I'd also double check the qtopia path, as I wrote that from memory, which may not be reliable. ;) Apologies, Jon ___ yocto mailing list yocto@yoctoproject.org https://lists.yoctoproject.org/listinfo/yocto
Re: [yocto] Remove unwanted package from Qt
> > Hi, > > I am compiling Qt-4.8.0 with poky-denzil-7.0 for arm1136 architecture. > > > > At the time of integrating qt-embedded with rootfs, I am getting qtopia > directory in usr/share path of rootfs. > > I tried removing qtopia directory through qt recipe but ended in > compilation error. Please suggest any idea to remove qtopia from share > directory. > > > > Thanks and Regards > > Navani Kamal Srivastava I ran into this as well after using a bbappend to disable a number of Qt features, including the building of demos that get staged in the aforementioned path. In my case, that qtopia directory (and any subdirectories) wound up either being empty or containing files that were unnecessary for my build. My quick and dirty solution was to just to add a install_append() containing a 'rm -rf ${D}${datadir}/qtopia' in my bbappend. (Be sure you don't have anything important in there!) I'd be curious to hear if there's a better approach to this as well... Regards, Jon ___ yocto mailing list yocto@yoctoproject.org https://lists.yoctoproject.org/listinfo/yocto
Re: [yocto] Remove unwanted package from Qt
On Wednesday 26 December 2012 09:56:05 Navani Srivastava wrote: > I am compiling Qt-4.8.0 with poky-denzil-7.0 for arm1136 architecture. > > At the time of integrating qt-embedded with rootfs, I am getting qtopia > directory in usr/share path of rootfs. > > I tried removing qtopia directory through qt recipe but ended in > compilation error. Please suggest any idea to remove qtopia from share > directory. "qtopia" is just the name of the directory that gets used for Qt Embedded (see the QT_DIR_NAME setting in meta/classes/qt4e.bbclass) - are there actually any files in that directory you don't want or is it just the directory name that concerns you? Cheers, Paul -- Paul Eggleton Intel Open Source Technology Centre ___ yocto mailing list yocto@yoctoproject.org https://lists.yoctoproject.org/listinfo/yocto
[yocto] Remove unwanted package from Qt
Hi, I am compiling Qt-4.8.0 with poky-denzil-7.0 for arm1136 architecture. At the time of integrating qt-embedded with rootfs, I am getting qtopia directory in usr/share path of rootfs. I tried removing qtopia directory through qt recipe but ended in compilation error. Please suggest any idea to remove qtopia from share directory. Thanks and Regards Navani Kamal Srivastava ___ yocto mailing list yocto@yoctoproject.org https://lists.yoctoproject.org/listinfo/yocto