[英]How to use QTcreator with the Visual Studios november CTP compiler?
我已經為此苦苦掙扎了幾天。 我不知道如何設置QT以使用cpt編譯器。 我使用了一個名為BlueGo( https://bitbucket.org/Vertexwahn/bluego )的程序來通過VS2012編譯Qt,並且可以將該版本與QtCreator np一起使用。 我可以使用未更新的VS2012-compiler,但無法設置ctp-compiler,這只是給我一個錯誤,提示它無法使用編譯器。 它不會自動檢測到它,因此我必須將其添加為自定義編譯器。 我不了解其中一半的設置:)。
C:\\Program Files (x86)\\Microsoft Visual Studio 11.0\\VC\\bin\\x86_amd64\\vcvarsx86_amd64.bat
@set PATH=%VCINSTALLDIR%BIN\\x86_amd64;%PATH%
@if exist "%VCINSTALLDIR%..\\..\\Microsoft Visual C++ Compiler Nov 2012 CTP\\BIN\\x86_amd64" set PATH=%VCINSTALLDIR%..\\..\\Microsoft Visual C++ Compiler Nov 2012 CTP\\BIN\\x86_amd64;%PATH%
@set INCLUDE=%VCINSTALLDIR%INCLUDE;%INCLUDE%
@if exist "%VCINSTALLDIR%..\\..\\Microsoft Visual C++ Compiler Nov 2012 CTP\\INCLUDE" set INCLUDE=%VCINSTALLDIR%..\\..\\Microsoft Visual C++ Compiler Nov 2012 CTP\\INCLUDE;%INCLUDE%
C:\\Program Files (x86)\\Microsoft Visual Studio 11.0\\VC\\bin\\vcvars32.bat
@if exist "%VCINSTALLDIR%BIN" set PATH=%VCINSTALLDIR%BIN;%PATH%
@if exist "%VCINSTALLDIR%..\\..\\Microsoft Visual C++ Compiler Nov 2012 CTP\\BIN" set PATH=%VCINSTALLDIR%..\\..\\Microsoft Visual C++ Compiler Nov 2012 CTP\\BIN;%PATH%
@if exist "%VCINSTALLDIR%INCLUDE" set INCLUDE=%VCINSTALLDIR%INCLUDE;%INCLUDE%
@if exist "%VCINSTALLDIR%..\\..\\Microsoft Visual C++ Compiler Nov 2012 CTP\\INCLUDE" set INCLUDE=%VCINSTALLDIR%..\\..\\Microsoft Visual C++ Compiler Nov 2012 CTP\\INCLUDE;%INCLUDE%
這個簡單的解決方案允許Qt Creator(和其他依賴vcvarsall.bat
工具)使用VS2012 NOV CTP而不是默認CTP。 切記:要恢復為默認的編譯器,您應該刪除這些插入的行!
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.