如何将 QTcreator 与 Visual Studios 11 月 CTP 编译器一起使用? [英] How to use QTcreator with the Visual Studios november CTP compiler?

查看:28
本文介绍了如何将 QTcreator 与 Visual Studios 11 月 CTP 编译器一起使用?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经为此苦苦挣扎了几天.我不知道如何设置 QT 以使用 cpt 编译器.我使用了一个名为 BlueGo (https://bitbucket.org/Vertexwahn/bluego) 的程序来编译Qt 与 VS2012,我可以使用 QtCreator np.我可以使用未更新的 VS2012 编译器,但是我无法设置 ctp 编译器,它只是给我一个错误,说它无法使用编译器.它不会自动检测到它,所以我必须将它添加为自定义编译器.我不明白这些设置的一半,哈哈:).

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 :).

推荐答案

  • C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\bin\x86_amd64\vcvarsx86_amd64.bat

    1. 就在该行之后:
      @set PATH=%VCINSTALLDIR%BIN\x86_amd64;%PATH%
      插入:
      @ifexist "%VCINSTALLDIR%..\..\Microsoft Visual C++ Compiler Nov 2012 CTP\BIN\x86_amd64" set PATH=%VCINSTALLDIR%..\..\Microsoft Visual C++ Compiler2012 年 11 月 CTP\BIN\x86_amd64;%PATH%
    2. 就在该行之后:
      @set INCLUDE=%VCINSTALLDIR%INCLUDE;%INCLUDE%
      插入:
      @ifexist "%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

    1. 就在该行之后:
      @if存在 "%VCINSTALLDIR%BIN" set PATH=%VCINSTALLDIR%BIN;%PATH%
      插入:
      @ifexist "%VCINSTALLDIR%..\..\Microsoft Visual C++ Compiler Nov 2012 CTP\BIN" set PATH=%VCINSTALLDIR%..\..\Microsoft Visual C++ Compiler Nov 2012 CTP\BIN;%PATH%
    2. 就在该行之后:
      @if 存在 "%VCINSTALLDIR%INCLUDE" set INCLUDE=%VCINSTALLDIR%INCLUDE;%INCLUDE%
      插入:
      @ifexist "%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.请记住:要恢复到默认编译器,您应该删除这些插入的行!

    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!

    这篇关于如何将 QTcreator 与 Visual Studios 11 月 CTP 编译器一起使用?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆