Nominate our 2022 Qt Champions!

No rule to make target 'C:/... uic.exe, needed by ui_mainwindow.h

  • Hello,
    I'm fresh in Qt programming.
    After my last Window's up to date I can not compile programs.
    I've reinstalled Qt a few times already, but it doesn's help.
    I'm receiving below message:

    C:/PROGRAMY/Qt/Tools/mingw530_32/bin/mingw32-make -f Makefile.Debug
    mingw32-make[1]: Entering directory 'C:/Users/zadrzynski/Documents/Qt/build-test10-Desktop_Qt_5_9_3_MinGW_32bit-Debug'
    mingw32-make[1]: Leaving directory 'C:/Users/zadrzynski/Documents/Qt/build-test10-Desktop_Qt_5_9_3_MinGW_32bit-Debug'
    mingw32-make[1]: *** No rule to make target 'C:/PROGRAMY/Qt/5.9.3/mingw53_32/bin/uic.exe', needed by 'ui_mainwindow.h'. Stop.
    Makefile:36: recipe for target 'debug' failed
    mingw32-make: *** [debug] Error 2
    13:36:25: The process "C:\PROGRAMY\Qt\Tools\mingw530_32\bin\mingw32-make.exe" exited with code 2.
    Error while building/deploying project test10 (kit: Desktop Qt 5.9.3 MinGW 32bit)
    When executing step "Make"

    Thanks in advance for your help.

  • Lifetime Qt Champion

    HI and welcome to devnet,

    Did you check the content of Qt’s bin folder ?

  • Hi :-)
    Thanks for your assistance first of all!

    I've just checked the bin folder and almost all files are created 17.11.2017 even the instalation was made 26.01.2018...

    How should I follow?

  • UIC.EXE file is not existing in bin folder.

  • One more info, important I hope.
    After re-instaling, first/new project is compiling, but if I add e.g.: push button than above mentioned error is comming and for next projects from very beginning as well.

  • Lifetime Qt Champion

    Do you have an anti-virus running ?

  • Lifetime Qt Champion

    the moc.exe tool is located under the compiler folder in Qt
    for vs 64 bit its
    Do you have the same in the mingw compiler folder ?

  • Hi,
    It was anti-virus program!
    Thank you very much for your help :-) !!!

Log in to reply