目标配方失败(Qt创建者)

目标配方失败(Qt创建者),qt,mingw,qt-creator,Qt,Mingw,Qt Creator,我有Hello World应用程序,它包括mainwindow.h、mainwindow.cpp、main.cpp和mainwindow.ui。当我试图编译它时,我收到以下错误消息: E:\Qt\5.2.1\msvc2012_64_opengl\bin\uic.exe mainwindow.ui -o ui_mainwindow.h Makefile.Debug:226: recipe for target 'ui_mainwindow.h' failed mingw32

我有Hello World应用程序,它包括mainwindow.h、mainwindow.cpp、main.cpp和mainwindow.ui。当我试图编译它时,我收到以下错误消息:

    E:\Qt\5.2.1\msvc2012_64_opengl\bin\uic.exe mainwindow.ui -o ui_mainwindow.h
    Makefile.Debug:226: recipe for target 'ui_mainwindow.h' failed
    mingw32-make[1]: *** [ui_mainwindow.h] Error -1073741515
    mingw32-make[1]: Leaving directory 'E:/Qt/workspace/Run'
    Makefile:34: recipe for target 'debug' failed
    mingw32-make: *** [debug] Error 2.
所以我假设生成了ui_mainwindow.h,但编译器在下一步找不到它。
如何解决它?

同样的问题已经解决了。您的bin目录中似乎没有ICU DLL。 为你改变道路

复制C:\icu\bin*.dll C:\Qt\Qt5.7.0n\bin\


错误-1073741515看起来像是Windows错误代码。谷歌。也转换为十六进制和谷歌与此。uic似乎有问题。找不到任何错误代码。也许我应该尝试安装另一个版本的CreatorTry t删除生成目录中的所有文件,包括生成文件并重建项目。通过安装Qt for MinGW解决了此问题。