I am trying to install Qt5.1.1 and have already installed VStudio 2010 Pro, but I stll get the error saying Qt needs a compiler set up to build.
I looked it up, and I only find very complex solutions that are impossible for me to implement.
Can anyone give me specific directions on how I can get Qt5.1.1 working in my laptop?
Btw in case you couldn't tell, I'm a newbie.
Thanks
First, ensure that your Visual Studio installation contains a 32-bit compiler (the official Visual Studio 2010 packages only support 32-bit compilers)
Then, ensure that you've downloaded and installed one of the packages that are marked "Qt 5.1.1 for Windows 32-bit (VS 2010)" from http://qt-project.org/downloads
If Qt Creator still doesn't auto-detect your compiler, add it manually: http://qt-project.org/doc/qtcreator-2.8/creator-tool-chains.html
If you had to add your compiler manually, also add a Kit to combine your compiler with your Qt libraries: http://qt-project.org/doc/qtcreator-2.8/creator-targets.html
Related
I'm trying to setup qtcreator using Microsoft Enterprise WDK.
I want to build MSVC and UWP apps, but I do not want to install MS VisualStudio.
Does anyone know howto setup debugger cdb, c and c++ compiler, ... for qtcreator. Since MS EWDK is unzipped in a folder like C:\Dev qtcreator cannot auto-detect it.
I also flipped through the QT documentation, but it is confusing me.
I still have no solution to integrate EWDK into qtcreator.
But there is an alternative to install a "minimum" Microsoft environment for qtcreator:
Install the Visual Studio Build-Tools, which is new as of 2017 and only select the build-tools for C++
Install only the debugger from Windows SDK
I have Windows 7 Professional SP1, without any Visual C++ or Visual Studio. I have just installed MinGW. I download Qt installer "qt-unified-windows-x86-2.0.3-online.exe" and execute it, and I get a popup complaining that MSVCP120.dll is missing. I don't really insist on using MinGW as my compiler; I'd be enclined to download a free version of MS Studio if that will make the whole installation work, and allow me to build.
Where have I gone wrong? (Ah, I want to link a snippet of the popup error window, but I can't figure out how!)
My setup consists of Microsoft Visual Studio Express 2013 and Qt 5.5.1. For the Debugger(s) I use CDB from the Windows SDK. I use both toolchains, 32bit and 64bit.
To clean up my machine, I recently deinstalled all Microsoft Visual Studio stuff including the debuggers. Now, after the new installation of all the tools, I am not able to set up the 64bit debugger anymore. The interesting thing is that both debuggers are correctly autodetected under the Debuggers tab Tools -> Options -> Debuggers.
Under the Kits tab, I see the yellow triangle on the 64bit entry. I also see that None is selected in the Debugger line. But I am not able to change this setting because it is deactivated.
I finally found a solution to this problem by editing a Qt Creator configuration file manually. The file toolchains.xml is found here in Windows 7:
%APPDATA%\Roaming\QtProject\qtcreator
Additional Note:
Since the original post, I've updated to Visual Studio 2015 Express and Qt 5.6. This environment is a lot simpler to set up than VS2013.
So, like many others I've found on the net, I have installed Qt (Qt 5.2.1 for Windows 64-bit (VS 2012, OpenGL, 553 MB)) and realized that I do not have the MSVC2012 compiler that was used to build this version of Qt.
I come here to ask, is it necessary to literally install the entire MSVC2012 IDE in order to get this version of Qt to work, or can I somehow just install the needed compiler? If so, where might that be available for download? I have done searches and cannot find just the compiler. I have found the compiler bundled with various other software that I do not think I need, but I do not want to go through great effort to find out that I made another mistake.
Alternatively, Qt compiled with minGW is also available, but only for 32 bit. I understand that some 32 bit programs will run on 64 bit machines, but how can you know for sure?
You can install Visual Studio 2012 Express which is free and contains the necessary compiler. After that, you have to also install Windows Kits to get the standalone debugger. Alternatively, you can install Windows 7.1 SDK which does not come with IDE but with compilers and debuggers. Windows 7.1 SDK correspond to Visual Studio 2010. But beware, Windows 7.1 SDK has many bugs, and I would not recommend it unless you are targeting Windows XP.
As for MinGW, yes you can also run 32bit programs on 64 bit, but I personally advise you against MinGW. Its integration with Windows is flaky, and its compile speed is far inferior to MSVC's.
Why does the intel compiler on Windows keep nagging about visual studio? I don't have visual studio and I don't want it!!! is that the only option I have??? I'm a Qt programmer who've been using MinGW as a compiler, and never needed Visual Studio. On Linux, the intel compiler is totally independent and doesn't need any other compilers to work. Could anyone please explain what's the deal with this Intel Compiler and why it's not standalone?
Please tell me what I should do to get it to work with Qt without Visual Studio.
Edit: To be clear about the problem, when I try to use icl.exe to compile some file, it gives me this error:
icl: error #10114: Microsoft Visual C++ not found in path
Thanks for any efforts! :-)
On no platform is the Intel C/C++ compiler standalone. It requires tools of various kinds on all platforms.
The official documentation actually does list the entire gcc toolchain as a system requirement on Linux. Additional libraries are required as well.
It just so happens that on Windows, these tools are bundled with Visual Studio. The free version is sufficient.