単純なQtプロジェクト(メインウィンドウの例)をコンパイルできません。コマンドシェルとQtCreatorで試してみました。最初のqmakeは、コマンドルールuicを使用してmakefileを作成して、私のuiを.hに変換するだけの単純なものにする必要があります。qtcreatorでQtプロジェクトをコンパイルできない
Qt以下の警告/エラーメッセージをコンソールに表示するQt Creator。私は多分あなたのデスクトップキットに異常を疑っています
09:06:30: Running steps for project untitled...
09:06:30: Starting: "D:\QT\qt-everywhere-opensource-src-5.6.0\qtbase\bin\qmake.exe" C:\workspace_llb_27-05-2016\untitled\untitled.pro -r -spec win32-g++
09:06:32: The process "D:\QT\qt-everywhere-opensource-src-5.6.0\qtbase\bin\qmake.exe" exited normally.
09:06:32: Starting: "C:\mingw\mingwx64_481r0-sjlj-rev2\bin\mingw32-make.exe"
C:/mingw/mingwx64_481r0-sjlj-rev2/bin/mingw32-make -f Makefile.Debug
mingw32-make[1]: Entering directory 'C:/build_untitled_Qt_5_6_0_Built_by_mingwx64_481r0_sjlj_rev2_Debug'
/C/build_untitled_Qt_5_6_0_Built_by_mingwx64_481r0_sjlj_rev2_Debug/uic_wrapper.sh ../workspace_llb_27-05-2016/untitled/mainwindow.ui -o ui_mainwindow.h
Makefile.Debug:318: recipe for target 'ui_mainwindow.h' failed
process_begin: CreateProcess(NULL, /C/build_untitled_Qt_5_6_0_Built_by_mingwx64_481r0_sjlj_rev2_Debug/uic_wrapper.sh ../workspace_llb_27-05-2016/untitled/mainwindow.ui -o ui_mainwindow.h, ...) failed.
make (e=2): Le fichier spécifié est introuvable.
mingw32-make[1]: *** [ui_mainwindow.h] Error 2
mingw32-make[1]: Leaving directory 'C:/build_untitled_Qt_5_6_0_Built_by_mingwx64_481r0_sjlj_rev2_Debug'
Makefile:34: recipe for target 'debug' failed
mingw32-make: *** [debug] Error 2
09:06:33: The process "C:\mingw\mingwx64_481r0-sjlj-rev2\bin\mingw32-make.exe" exited with code 2.
Error while building/deploying project untitled (kit: Qt 5.6.0 (Built by mingwx64_481r0-sjlj-rev2))
When executing step "Make"
おかげ
なんらかの理由で、ui_mainwindow.hが存在しないように見えます。おそらく、uic_wrapperは生成できませんでした。私は、mainwindow.uiだけを別々にコンパイルし、それが動作するかどうかを調べることをお勧めします。 – Marco
あなたの返信ありがとうございますマルコ。それは動作していないようです。私はui_wrapper.batと私のmainwindow.uiを取得したコマンドプロンプトを開き、コマンドラインuic_wrapper.bat -o mainwindow.ui ui_mainwindow.hを実行しますが、動作せず、uic.exeを呼び出すmakefileでなければなりません – Loki