c++ - 使用适用于 Win32 的英特尔 C++ 编译器编译 Qt 时出错,我做错了什么?

标签 c++ qt compilation intel

我打开了 MSVS 2010 命令提示符,从我从英特尔 Parallel Studio(它为 ICC 设置环境)运行 ips-vars.cmd 的地方,从我调用的地方:

configure -ltcg -debug-and-release  -graphicssystem opengl -mp -platform win32-icc -no-s60

得到这个:

Creating qmake...

Microsoft (R) Program Maintenance Utility Version 10.00.30319.01
Copyright (C) Microsoft Corporation.  All rights reserved.

    icl -Yuqmake_pch.h -FIqmake_pch.h -Fpqmake_pch.pch -c -Fo./  -W3 -nologo -O2    -I. -Igenerators -Igenerators\unix -Igenerators\win32 -Igenerators\mac -
    Igenerators\symbian  -IH:\Alex\Alex\Work\Qt\4.7.3\include -IH:\Alex\Alex\Work\Qt\4.7.3\include\QtCore  -IH:\Alex\Alex\Work\Qt\4.7.3\include -IH:\Alex\Alex\Work\
    Qt\4.7.3\include\QtCore  -IH:\Alex\Alex\Work\Qt\4.7.3\src\corelib\global  -IH:\Alex\Alex\Work\Qt\4.7.3\src\corelib\xml  -IH:\Alex\Alex\Work\Qt\4.7.3\mkspecs\win
    32-icc   -IH:\Alex\Alex\Work\Qt\4.7.3\tools\shared  -DQT_NO_TEXTCODEC -DQT_NO_UNICODETABLES -DQT_LITE_COMPONENT -DQT_NODLL -DQT_NO_STL  -DQT_NO_COMPRESS -DUNICO
    DE -DHAVE_QCONFIG_CPP -DQT_BUILD_QMAKE -DQT_NO_THREAD  -DQT_NO_QOBJECT -DQT_NO_GEOM_VARIANT -DQT_NO_DATASTREAM -DQT_NO_PCRE -DQT_BOOTSTRAPPED  -DQLIBRARYINFO_EP
    OCROOT /Zc:forScope -DQMAKE_OPENSOURCE_EDITION H:\Alex\Alex\Work\Qt\4.7.3\src\corelib\plugin\qsystemlibrary.cpp
    qsystemlibrary.cpp
    Catastrophic error: cannot open precompiled header file "qmake_pch.pchi"

    compilation aborted for H:\Alex\Alex\Work\Qt\4.7.3\src\corelib\plugin\qsystemlibrary.cpp (code 4)
    NMAKE : fatal error U1077: '"C:\Program Files\Intel\Parallel Studio 2011\Composer\bin\ia32\icl.EXE"' : return code '0x4'
    Stop.

有什么问题吗? 感谢您查看。

最佳答案

选项-Yu 表示“使用预编译头文件”。

您似乎还没有先创建预编译文件 (-Yc)。那个可能不应该以 .h 结尾。

关于c++ - 使用适用于 Win32 的英特尔 C++ 编译器编译 Qt 时出错,我做错了什么?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6504706/

相关文章:

c++ - DBGHelp.dll 导致在调试版本中加载 msvcrt.dll

R CMD 检查注释 : Found no calls to: ‘R_registerRoutines’ , ‘R_useDynamicSymbols’

python - PyQt4 QPalette 不工作

python - Python中的`goto`

javascript 相当于 python 的编译和执行

C++多索引图实现

c++ - ListView_GetItemText 只获取第一个字符

c++ - 在 C++ 中以优雅的方式计时

qt - 如何覆盖 Q_Property?

Qt .pro 文件 : how to check if I'm compiling with MSVC 2013 toolset?