2016-10-08 210 views
1

我試圖通過觸發器在this instruction之後爲MS Visual Studio 2015構建Qt 4.8.6。在級#5(配置)我有多個錯誤c1xx : fatal error C1083: Cannot open source file", related to spaces in file path d:\程序文件(x86)\微軟的Visual Studio 14.0`:C1xx:由於文件路徑中的空間致命錯誤C1083(同時爲MS VS構建Qt 4.8)

Files 
c1xx: fatal error C1083: Cannot open source file: Files: No such file or directory 
Microsoft 
c1xx: fatal error C1083: Cannot open source file: (x86)\Microsoft: No such file or directory 
Visual 
c1xx: fatal error C1083: Cannot open source file: Visual: No such file or directory 
Studio 
c1xx: fatal error C1083: Cannot open source file: Studio: No such file or directory 
include 
c1xx: fatal error C1083: Cannot open source file: 14.0\VC\include: No such file or directory 
Files 
c1xx: fatal error C1083: Cannot open source file: Files: No such file or directory 
Microsoft 
c1xx: fatal error C1083: Cannot open source file: (x86)\Microsoft: No such file or directory 
Visual 
c1xx: fatal error C1083: Cannot open source file: Visual: No such file or directory 
Studio 
c1xx: fatal error C1083: Cannot open source file: Studio: No such file or directory 
QtCore 
c1xx: fatal error C1083: Cannot open source file: 14.0\VC\include\QtCore: No such file or directory 
Files 
c1xx: fatal error C1083: Cannot open source file: Files: No such file or directory 
Microsoft 
c1xx: fatal error C1083: Cannot open source file: (x86)\Microsoft: No such file or directory 
Visual 
c1xx: fatal error C1083: Cannot open source file: Visual: No such file or directory 
Studio 
c1xx: fatal error C1083: Cannot open source file: Studio: No such file or directory 
global 
c1xx: fatal error C1083: Cannot open source file: 14.0\VC\src\corelib\global: No such file or directory 
Files 
c1xx: fatal error C1083: Cannot open source file: Files: No such file or directory 
Microsoft 
c1xx: fatal error C1083: Cannot open source file: (x86)\Microsoft: No such file or directory 
Visual 
c1xx: fatal error C1083: Cannot open source file: Visual: No such file or directory 
Studio 
c1xx: fatal error C1083: Cannot open source file: Studio: No such file or directory 
xml 
c1xx: fatal error C1083: Cannot open source file: 14.0\VC\src\corelib\xml: No such file or directory 

這裏是我的配置命令:

D:\Program Files (x86)\Microsoft Visual Studio 14.0\VC>D:\Soft\Qt\4.8\msvc2015\qt-everywhere-opensource-src-4.8.6\configure -make nmake -platform win32-msvc2015 -prefix D:\Soft\Qt\4.8\msvc2015 -opensource -confirm-license -opengl desktop -nomake examples -nomake tests 

你有什麼想法如何解決這個問題?我不知道這是一個典型的Qt文件路徑中的空間問題(由configure引起)還是與Visual Studio相關的錯誤(由c1xx引起)。

Upd。我將命令行根目錄更改爲D:>並再次運行configure。它最後開始工作(header created for [...]),但最終在Creating qmake...之後產生了另一個錯誤。起初,我得到了多條線路,如:

cl : Command line warning D9024 : unrecognized source file type 'SOURCE_PATH', object file assumed 
cl : Command line warning D9027 : source file 'SOURCE_PATH' ignored 
cl : Command line warning D9024 : unrecognized source file type '=', object file assumed 
cl : Command line warning D9027 : source file '=' ignored 
cl : Command line warning D9024 : unrecognized source file type 'D:\Soft\Qt\4.8\msvc2015\qt-everywhere-opensource-src-4.8.6\src\corelib\xml', object file assumed 
cl : Command line warning D9027 : source file 'D:\Soft\Qt\4.8\msvc2015\qt-everywhere-opensource-src-4.8.6\src\corelib\xml' ignored 

最後:

SOURCE_PATH 
c1xx: fatal error C1083: Cannot open source file: SOURCE_PATH: No such file or directory 
= 
c1xx: fatal error C1083: Cannot open source file: =: No such file or directory 
include 
c1xx: fatal error C1083: Cannot open source file: D:\Soft\Qt\4.8\msvc2015\qt-everywhere-opensource-src-4.8.6\include: No such file or directory 
SOURCE_PATH 
c1xx: fatal error C1083: Cannot open source file: SOURCE_PATH: No such file or directory 
= 
c1xx: fatal error C1083: Cannot open source file: =: No such file or directory 
QtCore 
c1xx: fatal error C1083: Cannot open source file: D:\Soft\Qt\4.8\msvc2015\qt-everywhere-opensource-src-4.8.6\include\QtCore: No such file or directory 
SOURCE_PATH 
c1xx: fatal error C1083: Cannot open source file: SOURCE_PATH: No such file or directory 
= 
c1xx: fatal error C1083: Cannot open source file: =: No such file or directory 
global 
c1xx: fatal error C1083: Cannot open source file: D:\Soft\Qt\4.8\msvc2015\qt-everywhere-opensource-src-4.8.6\src\corelib\global: No such file or directory 
SOURCE_PATH 
c1xx: fatal error C1083: Cannot open source file: SOURCE_PATH: No such file or directory 
= 
c1xx: fatal error C1083: Cannot open source file: =: No such file or directory 
xml 
c1xx: fatal error C1083: Cannot open source file: D:\Soft\Qt\4.8\msvc2015\qt-everywhere-opensource-src-4.8.6\src\corelib\xml: No such file or directory 
+0

爲什麼在程序文件中運行configure?在D上選擇一個路徑,但不能有空格(qmake與空格斷開) –

+0

@FrankOsterfeld,它是Visual Studio命令提示符的默認命令行目錄。我切換到只是'D:>'並解決了最初的問題,但得到了另一個(請參閱我的Upd上面)。 – GromCaptain

回答

0

我通過切換命令行根目錄解決了這個問題。取而代之的

D:\Program Files (x86)\Microsoft Visual Studio 14.0\VC>D:\Soft\Qt\4.8\msvc2015\qt-everywhere-opensource-src-4.8.6\configure [options] 

D:>Soft\Qt\4.8\msvc2015\qt-everywhere-opensource-src-4.8.6\configure [options] 

應該只是

D:\Soft\Qt\4.8\msvc2015\qt-everywhere-opensource-src-4.8.6>configure [options] 
0

對我來說是一個的環境變量設置CL的exe文件的路徑。這不是一個好主意。

相關問題