|
新手练习HelloWorld!
使用命令编译程序:
执行qmake -project和 qmake都没问题,唯独执行make时提示“'make' 不是内部或外部命令,也不是可运行的程序
或批处理文件。”
网上查了一通,说什么系统变量需要配置,明明我的系统环境变量path中都有Qt的配置。
也试过nmake命令和mingw32-make命令,提示如下
D:\Qt\Qt5.5.0\5.5\HelloWorld3>make
'make' 不是内部或外部命令,也不是可运行的程序
或批处理文件。
D:\Qt\Qt5.5.0\5.5\HelloWorld3>nmake
Microsoft (R) 程序维护实用工具 11.00.61030.0 版
版权所有 (C) Microsoft Corporation。保留所有权利。
"C:\Program Files\Microsoft Visual Studio 11.0\VC\bin\nmake.exe" -f Make
file.Release
Microsoft (R) 程序维护实用工具 11.00.61030.0 版
版权所有 (C) Microsoft Corporation。保留所有权利。
cl -c -nologo -Zc:wchar_t -O2 -MD -GR -W3 -w34100 -w34189 -w44996 -EHsc
-DUNICODE -DWIN32 -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DNDEBUG -I. -I. -ID:
\Qt\Qt5.5.0\5.5\msvc2012\include -ID:\Qt\Qt5.5.0\5.5\msvc2012\include\QtGui -ID:
\Qt\Qt5.5.0\5.5\msvc2012\include\QtANGLE -ID:\Qt\Qt5.5.0\5.5\msvc2012\include\Qt
Core -Irelease -ID:\Qt\Qt5.5.0\5.5\msvc2012\mkspecs\win32-msvc2012 -Forelease\ @
C:\Users\SHUNSH~1\AppData\Local\Temp\nm8275.tmp
main.cpp
.\main.cpp(1) : fatal error C1083: 无法打开包括文件:“QApplication”: No such fi
le or directory
NMAKE : fatal error U1077: “"C:\Program Files\Microsoft Visual Studio 11.0\VC\b
in\cl.EXE"”: 返回代码“0x2”
Stop.
NMAKE : fatal error U1077: “"C:\Program Files\Microsoft Visual Studio 11.0\VC\b
in\nmake.exe"”: 返回代码“0x2”
Stop.
D:\Qt\Qt5.5.0\5.5\HelloWorld3>mingw32-make.exe
mingw32-make.exe -f Makefile.Release
mingw32-make.exe[1]: Entering directory 'D:/Qt/Qt5.5.0/5.5/HelloWorld3'
Makefile.Release:62: *** 。 停止。
mingw32-make.exe[1]: Leaving directory 'D:/Qt/Qt5.5.0/5.5/HelloWorld3'
Makefile:34: recipe for target 'release' failed
mingw32-make.exe: *** [release] Error 2
D:\Qt\Qt5.5.0\5.5\HelloWorld3>
我安装的QT是 qt-opensource-windows-x86-msvc2012-5.5.0.exe 系统是win7 32位旗舰版
电脑中也装了MinGW
求知道原因的大牛指点迷津~~~~
|
|