Unsolved Auto-detection of Microsoft Visual Studio 10.0
-
@mrjj You are right, this is a possible solution. Still I am puzzled why VS2010 is not auto-detected by Qt Creator (Matlab and Nvidia nvcc both detect it). This must be some crazy tests QT creator is perfoming in Windows registry...
-
@Sebt
Im wondering if it does "detecting" when u enter the kit dialog or only
during installation.Did u install 2010 first then Qt or reverse ?
-
@mrjj I installed VS2010 first, but then partially uninstalled it. I think Qt Creator is not buggy, it is just that I slightly messed up my VS2010 install. I am just trying to understand what Qt Creator "expects" to validate auto-detection. If this info is not documented I will surely have a harsh time reverse engineering it...
-
@Sebt said:
kit auto-detection
Kit = Compiler + Qt_Libraries
A kit will only be auto-detected if you have the relevant version of Qt installed.
What do you see under Tools -> Options -> Build & Run -> Compilers?
-
Sorry, I meant compiler auto-detection. I will configure the kit manually.
-
@mrjj I managed adding MS compiler manually, and then including it to a manual kit and it works. Still I would like to understand why auto-detection did not include it in the compiler list. Also I do not know how to configure that vcvarsall.bat be called with correct argument before launching compilation/linking. Any idea?
-
@Sebt said:
vcvarsall.bat
Hi
@jksh talks about it here
https://forum.qt.io/topic/31702/does-qt-actually-call-vcvarsall-bat/4 -
@mrjj Thanks, but my issue is that when you define a compiler manually you cannot fill in a field "initialization"... should the .bat script be then called from "Environment" in the kit itself, and if so how?
-
-
@mrjj said:
Maybe @JKSH knows :)
Thanks for your vote of confidence @mrjj, but I'm afraid I don't really know either ;-) The source code does, though:
It seems to be:
HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\VisualStudio\SxS\VS7
for a 64-bit OS, andHKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\SxS\VS7
for a 32-bit OS
If you're still stuck, try subscribing to the Qt Creator mailing list (http://lists.qt-project.org/mailman/listinfo/qt-creator) and asking there. The engineers of Qt Creator are active on that list.