Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-40447

Cannot find uic.exe, attempts to search in incorrect directory

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Invalid
    • Icon: Not Evaluated Not Evaluated
    • None
    • 5.3.1
    • Build tools: qmake
    • None
    • qt 5.3.1
      win 8

      Setup:
      1) qt 5.3.1 is built in some local directory (assume c:\dir1\qt\qtbase)
      2) I have copied full source tree into other PC (PC2).
      3) in the qtbase/bin/qt.conf I have added followed text:
      [Paths]
      Prefix=c:/path_to_dir2/qt/5.3.1/qtbase
      4) qmake seems to work now. Output of the "qmake -query" command contains valid paths only (paths for PC2)
      5) I have added into pro-file of one of my projects: QT += widgets

      Steps:
      1) run qmake

      Expected:
      1) qmake output is clear. Makefile doesn't contains paths from PC1

      Actual:
      1) qmake produced lots of messages:
      The system cannot find the path specified.
      2) In generated Makefile path to uic.exe is incorrect. It is like: c:\dir1\qt\qtbase\bin\uic.exe.

      Note 1:
      Paths to other tools like moc and rcc are correct. Problem with uic.exe only.
      Note 2:
      vcxproj also is incorrect.

      If line "QT += widgets" is removed from pro-file then Makefile doesn't contain steps for uic'ing ui-files!!! In the vcxproj custom build steps for ui-files are empty.

      Any quick workaround will be appreciated.

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            buddenha Oswald Buddenhagen
            nikolaynnov Andrey
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes