Skip to contentSkip to conversation

Qt-app won't build since libQtUiTools not included in staging

DISCUSSION Erik Botö 2 participants 4 messages Jan 13, 2009

lore
Share & tools
lore

Erik Botö

author
#0 lore raw

Hi,

I'm writing a bitbake recipe for a QT-app that tries to link against libQtUiTools but it fails with:

/bin/ld: cannot find -lQtUiTools

I think this is because this file is not in the staging environment (I'm using qt-embedded-4.4.3 for building qt). I checked the qt_staging.inc file and is seems that all .la libraries gets staged but libQtUiTools is a .a file and not included in the staging environment.

Is this intentional or should it be included?

Best regards,
Erik

#1 lore raw
Quoted 8 lines · Erik Botö

Hi,

I'm writing a bitbake recipe for a QT-app that tries to link against libQtUiTools but it fails with:

/bin/ld: cannot find -lQtUiTools

I think this is because this file is not in the staging environment

Looking at qt_staging.inc:

    for i in libQtAssistantClient${QT_LIBINFIX} \
		libQtDesignerComponents${QT_LIBINFIX} \
		libQtUiTools${QT_LIBINFIX} \
		libQtDesigner${QT_LIBINFIX}
    do
        sed -i -e "s,-L${libdir},-L${STAGING_LIBDIR},g" $i.prl || true
        cp ${STAGE_TEMP}/${libdir}/$i.prl ${STAGING_LIBDIR} || true
        sed -i -e 
"/^dependency_libs=/s,-L${libdir},-L${STAGING_LIBDIR},g" $i.la || true
        cp ${STAGE_TEMP}/${libdir}/$i.la  ${STAGING_LIBDIR} || true
        oe_libinstall -C ${STAGE_TEMP}/${libdir} -so $i 
${STAGING_LIBDIR} || true
        oe_libinstall -C ${STAGE_TEMP}/${libdir} -a $i 

${STAGING_LIBDIR} || true
done

So it attempts to install to .so (oe_libinstall -so) and the .a (oe_libinstall -a) to the staging dir.

Quoted 2 lines

(I'm
using qt-embedded-4.4.3 for building qt).

If you're building qt/e you should link against QtUiTools${QT_LIBINFIX} (expands to QtUiToolsE in your case), not QtUiTools. AIUI 'inherit qtopia4core' should take care of all that for you.

regards,

Koen

author
#2 lore raw

Hi again!

When I build qt-embedded I get the "E" suffix on all libraries but QtUiTools. If I enter the workdir for qt-embedded and lists the content of the lib-dir I have all the .la libraries with the E suffix, like "libQtGuiE.la" etc. But the QtUiTools file is called "libQtUiTools.a" without the "E". So if qt_staging.inc expects the suffix to be there I guess it won't find the file?

Is the QtUiTools some kind of exception, or should it also be suffixed with an E?

Best regards,
Erik

Quoted 51 lines · Koen Kooi
Quoted 9 lines · Erik Botö

Hi,

I'm writing a bitbake recipe for a QT-app that tries to link against libQtUiTools but it fails with:

/bin/ld: cannot find -lQtUiTools

I think this is because this file is not in the staging environment

Looking at qt_staging.inc:

   for i in libQtAssistantClient${QT_LIBINFIX} \
               libQtDesignerComponents${QT_LIBINFIX} \
               libQtUiTools${QT_LIBINFIX} \
               libQtDesigner${QT_LIBINFIX}
   do
       sed -i -e "s,-L${libdir},-L${STAGING_LIBDIR},g" $i.prl || true
       cp ${STAGE_TEMP}/${libdir}/$i.prl ${STAGING_LIBDIR} || true
       sed -i -e "/^dependency_libs=/s,-L${libdir},-L${STAGING_LIBDIR},g" $
i.la || true
       cp ${STAGE_TEMP}/${libdir}/$i.la  ${STAGING_LIBDIR} || true
       oe_libinstall -C ${STAGE_TEMP}/${libdir} -so $i ${STAGING_LIBDIR} ||
true
       oe_libinstall -C ${STAGE_TEMP}/${libdir} -a $i ${STAGING_LIBDIR} ||

true
done

So it attempts to install to .so (oe_libinstall -so) and the .a (oe_libinstall -a) to the staging dir.

(I'm

Quoted 2 lines

using qt-embedded-4.4.3 for building qt).

If you're building qt/e you should link against QtUiTools${QT_LIBINFIX} (expands to QtUiToolsE in your case), not QtUiTools. AIUI 'inherit qtopia4core' should take care of all that for you.

regards,

Koen

_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel

#3 lore raw
Quoted 11 lines · Erik Botö

Hi again!

When I build qt-embedded I get the "E" suffix on all libraries but QtUiTools. If I enter the workdir for qt-embedded and lists the content of the lib-dir I have all the .la libraries with the E suffix, like "libQtGuiE.la" etc. But the QtUiTools file is called "libQtUiTools.a" without the "E". So if qt_staging.inc expects the suffix to be there I guess it won't find the file?

Is the QtUiTools some kind of exception, or should it also be suffixed with an E?

I would class it as a bug and make the QT people look at it, Holger?

regards,

Koen