Qt 4.8.0 Win 7 VS 2010静的コンパイル問題

1837 ワード

1時間以上コンパイルすると、次のエラーが発生します.
Processing qt-everywhere-opensource-src-4.8.0\tools\activeqt\t
estcon\testcon.idl
testcon.idl
Processing C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\ocidl.idl

ocidl.idl
Processing C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\oleidl.id
l
oleidl.idl
Processing C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\objidl.id
l
objidl.idl
Processing C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\unknwn.id
l
unknwn.idl
Processing C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\wtypes.id
l
wtypes.idl
Processing C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\basetsd.h

basetsd.h
Processing C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\guiddef.h

guiddef.h
Processing C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\oaidl.idl

oaidl.idl
Processing C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\servprov.
idl
servprov.idl
Processing C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\urlmon.id
l
urlmon.idl
Processing C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\msxml.idl

msxml.idl
Processing C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\oaidl.acf

oaidl.acf
Processing C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\ocidl.acf

ocidl.acf
       。
NMAKE : fatal error U1077: “midl”:     “0x1”
Stop.
NMAKE : fatal error U1077: “"C:\Program Files (x86)\Microsoft Visual Studio 10.
0\VC\BIN
make.exe"”: “0x2” Stop. NMAKE : fatal error U1077: “cd”: “0x2” Stop. NMAKE : fatal error U1077: “cd”: “0x2” Stop. NMAKE : fatal error U1077: “cd”: “0x2” Stop.

解析したところ、環境変数設定のCURR_DIRとTARGETDERの値にスペースが含まれているため、この問題が発生しました.
次のコマンドで環境変数を削除します.

set CURR_DIR=
set TARGETDIR=