[oe] Qt-app won't build since libQtUiTools not included in staging
Koen Kooi
k.kooi at student.utwente.nl
Tue Jan 13 11:16:33 UTC 2009
On 13-01-09 12:05, Erik Botö wrote:
> 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
> 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
More information about the Openembedded-devel
mailing list