Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. Compiler error for absent qmlcachegen
Forum Updated to NodeBB v4.3 + New Features

Compiler error for absent qmlcachegen

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
3 Posts 2 Posters 1.8k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • W Offline
    W Offline
    WLOrion
    wrote on last edited by WLOrion
    #1

    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:

    • https://forums.xilinx.com/t5/Embedded-Linux/Run-Qt-Application-in-Embedded-linux/m-p/1150084#M45199

    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

    1 Reply Last reply
    0
    • P Offline
      P Offline
      Peel70
      wrote on last edited by
      #2

      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

      1 Reply Last reply
      0
      • P Offline
        P Offline
        Peel70
        wrote on last edited by
        #3

        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

        1 Reply Last reply
        0

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved