Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. make: *** No rule to make target 'mainwindow.ui', needed by 'ui_mainwindow.h'
Forum Updated to NodeBB v4.3 + New Features

make: *** No rule to make target 'mainwindow.ui', needed by 'ui_mainwindow.h'

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
2 Posts 2 Posters 315 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.
  • V Offline
    V Offline
    vp07
    wrote on last edited by
    #1

    I made a simple QT gui application through QTCreator. It is running well on my Linux 20.04

    Now, I want to build this application in yocto to make it run on imx8mp board. I have created a hello-gui_1.0.0.bb file.

    SUMMARY = "QT Demo GUI Application"
    LICENSE = "CLOSED"
    
    SRC_URI = "file://HelloGUI.pro \
               file://main.cpp \
               file://mainwindow.cpp"
    
    DEPENDS += " \
            qtbase \
            qtdeclarative \  
            packagegroup-qt6-modules \
            wayland \
    "
    
    RDEPENDS_${PN} += "qtwayland"
    
    S = "${WORKDIR}"
        
    inherit qt6-qmake
    

    I created directory and file structure as below

    hello-gui
    |--hello-gui_1.0.0.bb
    |--files
       |--HelloGUI.pro
       |--main.cpp
       |--mainwindow.cpp
       |--mainwindow.h
       |--HelloGUI.pro.user
       |--mainwindow.ui
    

    I am continuously getting below an error shown below

    | make: *** No rule to make target 'mainwindow.ui', needed by 'ui_mainwindow.h'.  Stop.
    | ERROR: oe_runmake failed
    | WARNING: exit code 1 from a shell command.
    

    Is there any dependency that I missed? I have created this application on QT5 and yocto has QT6. Is that fine?

    1 Reply Last reply
    0
    • sierdzioS Offline
      sierdzioS Offline
      sierdzio
      Moderators
      wrote on last edited by
      #2

      Looks like either UIC is not getting run or some include paths are wrong. I don't know this build system, can't help much with that.

      I have created this application on QT5 and yocto has QT6. Is that fine?

      Not necessarily. Try Qt 6 on your desktop. Usually they are mostly source-compatible but sometimes some small modifications are necessary.

      But Qt5-6 differences would not produce the error from make you've quoted above.

      (Z(:^

      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