[yocto] meta-qt5 problem in yocto 1.7

Alex J Lennon ajlennon at dynamicdevices.co.uk
Sun Feb 1 11:31:35 PST 2015


On 01/02/2015 18:55, Simon Bolek wrote:
> Thanks!
> As for the examples. I cannot help directly, but i would read
> log.do_configure etc. files for details. You might find the reason
> there. Although I have to say, that my knowledge in yocto is at the
> beginners stadium at the moment ;-)
>
> cheers
> simon :-)

I think I've worked out what is happening here. The examples are being
built but not installed to the image folder in the do_install step and
thus there's nothing to package and the qtbase-examples package is ignored

I've committed a change to do_install_append() in a dizzy branch on a DD
fork of meta-qt5 which I think copies the files across correctly

@see:
https://github.com/DynamicDevices/meta-qt5/commit/21b9aef8c3246e9e0b7ec3026bd58d4c595fd5a9

 @@ -216,8 +216,13 @@ do_install_append() {
     # ERROR: objcopy failed with exit code 1 (cmd was
'arm-oe-linux-gnueabi-objcopy' --only-keep-debug
'/OE/oe-core/tmp-eglibc/work/armv5te-oe-linux-gnueabi/qtbase/5.0.1-r0.0/package/usr/bin/qmake'
'/OE/oe-core/tmp-eglibc/work/armv5te-oe-linux-gnueabi/qtbase/5.0.1-r0.0/package/usr/bin/.debug/qmake')
     rm -f ${D}/${bindir}/${QT_DIR_NAME}/qmake
     # install fonts manually if they are missing
-    if [ ! -d ${D}/${OE_QMAKE_PATH_LIBS}/fonts ]; then
-        cp -a ${S}/lib/fonts ${D}/${OE_QMAKE_PATH_LIBS}
+    if [ ! -d ${D}${OE_QMAKE_PATH_LIBS}/fonts ]; then
+        cp -a ${S}/lib/fonts ${D}${OE_QMAKE_PATH_LIBS}
+    fi
+    # install examples manually if they are missing
+    if [ ! -d ${D}${OE_QMAKE_PATH_EXAMPLES} ]; then
+        mkdir -p ${D}${OE_QMAKE_PATH_EXAMPLES}
+        cp -a ${S}/examples/* ${D}${OE_QMAKE_PATH_EXAMPLES}
     fi
 
     # Remove example.pro file as it is useless

Cheers,

Alex




More information about the yocto mailing list