Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. QMake not invoking uic for form files.

QMake not invoking uic for form files.

Scheduled Pinned Locked Moved Solved Qt Creator and other tools
5 Posts 3 Posters 693 Views 2 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.
  • D Offline
    D Offline
    DalePennington
    wrote on last edited by
    #1

    Folks,
    I am migrating a build from QT 4 on RHEL 6.10 (using qmake 2.01a) to QT 5 on RHEL 8.1 (using qmake 3.1). We develop our code/forms using eclipse, but do production builds with a command line script. In the script we invoke qmake to generate the makefiles, then invoke make to do the build.

    What is happening is that in QT5, the makefile generated by qmake is NOT doing any uic invokes to compile the forms. I have compared the makefiles generated in both environments and while the QT4 generated makes files show dependencies to the generate ui_XXX.h files, and invoke uic to created them from the files specified in the FORMS variable.

    Is there something new in QT5's qmake I have to specify to get the forms compiled ? I looked through the qmake manual in the QT5 documentation and did not see anything.

    Thanks,
    Dale Pennington

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

      There is nothing new/ changed in qmake about generating UI headers.

      • Do you include widgets module?
      • Have you tried with some simple test app, if UI generation works at all in your new environment?

      (Z(:^

      1 Reply Last reply
      1
      • D Offline
        D Offline
        DalePennington
        wrote on last edited by DalePennington
        #3

        No I had not included widgets. That turned out to be the solution. Apparently if widgets is not included, the FORMS are ignored.

        Thanks,
        Dale Pennington

        Pablo J. RoginaP 1 Reply Last reply
        1
        • D DalePennington

          No I had not included widgets. That turned out to be the solution. Apparently if widgets is not included, the FORMS are ignored.

          Thanks,
          Dale Pennington

          Pablo J. RoginaP Offline
          Pablo J. RoginaP Offline
          Pablo J. Rogina
          wrote on last edited by
          #4

          @DalePennington said in QMake not invoking uic for form files.:

          That turned out to be the solution

          Is your issue solved then? If so, please don't forget to mark your post as such!

          Upvote the answer(s) that helped you solve the issue
          Use "Topic Tools" button to mark your post as Solved
          Add screenshots via postimage.org
          Don't ask support requests via chat/PM. Please use the forum so others can benefit from the solution in the future

          1 Reply Last reply
          0
          • D Offline
            D Offline
            DalePennington
            wrote on last edited by
            #5

            Had to figure out where the marker was hidden

            1 Reply Last reply
            1

            • Login

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