I've been struggling with this for a few days now. I can't figure out how to set up QT to use the cpt compiler. I've used a program called BlueGo (https://bitbucket.org/Vertexwahn/bluego) to compile Qt with VS2012, and I can use that version with QtCreator np. I can use the nonupdated VS2012-compiler with it, but I can't set up the ctp-compiler, it just gives me an error that it's unable to use the compiler. It doesn't detect it automatically so I'll have to add it as a custom compiler. I don't understand half of those settings lol :).
相关问题
- QML: Cannot read property 'xxx' of undefin
- How to know full paths to DLL's from .csproj f
- Importing NuGet references through a local project
- QTextEdit.find() doesn't work in Python
- Visual Studio 2019 - error MSB8020: The build tool
相关文章
- ubuntu20.4中c#通过c++库调用python脚本
- Qt槽函数自动执行多遍
- How to show location of errors, references to memb
- How to track MongoDB requests from a console appli
- Is there a non-java, cross platform way to launch
- Visual Studio Hangs on Loading UI Library
- How to get a settings storage path in a cross-plat
- How to use Mercurial from Visual Studio 2010?
C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\bin\x86_amd64\vcvarsx86_amd64.bat
@set PATH=%VCINSTALLDIR%BIN\x86_amd64;%PATH%
insert:
@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%
insert:
@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%
insert:
@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%
insert:
@if exist "%VCINSTALLDIR%..\..\Microsoft Visual C++ Compiler Nov 2012 CTP\INCLUDE" set INCLUDE=%VCINSTALLDIR%..\..\Microsoft Visual C++ Compiler Nov 2012 CTP\INCLUDE;%INCLUDE%
This simple solution allows Qt Creator (and other tools, that relies on
vcvarsall.bat
) to use VS2012 NOV CTP instead of default one. Remember: To revert back to the default compiler you should remove these inserted lines!