【发布时间】:2015-12-29 14:49:13
【问题描述】:
我正在关注 Blanchette 和 Summerfield 使用 qt 4(第 2 版)进行 C++ GUI 编程的第 40 页(快速对话框设计)中的 qmake 示例。
我从http://www.mingw.org/wiki/MSYS安装了make工具
我在 64 位 Windows 10 上运行 qt 5.5.1。已安装 VS 2013。
按照说明运行qmake -project 和qmake gotocell.pro 后,出现此错误:
C:\Users\John\Documents\gotocell>make.exe
make.exe -f Makefile.Release
make.exe[1]: Entering directory `/c/Users/John/Documents/gotocell'
cl -c -nologo -Zc:wchar_t -FS -O2 -MD -Zc:strictStrings -GR -W3 -w34100 -w34189 -w44996 -EHsc -DUNICODE -DWIN32 -DWIN64 -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DNDEBUG -I. -I. -I..\..\..\..\Qt\Qt5.5.1\5.5\msvc2013_64\include -I..\..\..\..\Qt\Qt5.5.1\5.5\msvc2013_64\include\QtGui -I..\..\..\..\Qt\Qt5.5.1\5.5\msvc2013_64\include\QtANGLE -I..\..\..\..\Qt\Qt5.5.1\5.5\msvc2013_64\include\QtCore -Irelease -I..\..\..\..\Qt\Qt5.5.1\5.5\msvc2013_64\mkspecs\win32-msvc2013 -Forelease\ @<<
/bin/sh: -c: line 0: syntax error near unexpected token `newline'
/bin/sh: -c: line 0: `cl -c -nologo -Zc:wchar_t -FS -O2 -MD -Zc:strictStrings -GR -W3 -w34100 -w34189 -w44996 -EHsc -DUNICODE -DWIN32 -DWIN64 -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DNDEBUG -I. -I. -I..\..\..\..\Qt\Qt5.5.1\5.5\msvc2013_64\include -I..\..\..\..\Qt\Qt5.5.1\5.5\msvc2013_64\include\QtGui -I..\..\..\..\Qt\Qt5.5.1\5.5\msvc2013_64\include\QtANGLE -I..\..\..\..\Qt\Qt5.5.1\5.5\msvc2013_64\include\QtCore -Irelease -I..\..\..\..\Qt\Qt5.5.1\5.5\msvc2013_64\mkspecs\win32-msvc2013 -Forelease\ @<<'
make.exe[1]: *** [{.}.cpp{release\}.obj] Error 2
make.exe[1]: Leaving directory `/c/Users/John/Documents/gotocell'
发生了什么,我该如何解决?
【问题讨论】:
标签: c++ qt makefile qt-creator msys