Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

Compiler error for absent qmlcachegen



  • Hello Anyone who's reading this post,

    I'm trying to creating a project will running in an embedded Linux on a Xilinx board.

    I'm set up Petalinux and Qt Creator how I wrote in this post:

    The SDK is running very well but, in my project, I'm using a QML Resource that is doing a compilation error

    make: *** No rule to make target '../../../PetaLinux/PetaQT_v2/images/linux/sdk/sysroots/x86_64-petalinux-linux/usr/bin/qmlcachegen', needed by 'main_qml.cpp'.  Stop.
    09:50:51: The process "/usr/bin/make" exited with code 2.
    Error while building/deploying project phiotdr (kit: ZCU106)
    The kit ZCU106 has configuration issues which might be the root cause for this problem.
    When executing step "Make"
    

    This file ("qmlcachegen") not exist in this directory.

    if anyone that understand this error can help me?

    Best Regards
    @WLOrion



  • Hello,
    if you have built sdk with bitbake poky, try this:

    cp ${BUILDROOT}/tmp/sysroots-components/x86_64/qtdeclarative-native/usr/bin {$SDKROOT}/sysroots/x86_64-petalinux-linux/usr/bin

    this worked for me

    regards
    Enrico



  • another alternative is so create a custom recipe

    nativesdk-packagegroup-qt5-toolchain-host.bbappend

    and put this line

    RDEPENDS_${PN} += " nativesdk-qtdeclarative-tools"

    and rebuild the sdk

    best regards
    Enrico


Log in to reply