2 Attachment(s)
QT Creator - QT Installation, Setup, Config, Compilers & kits oh my!
Hi All,
Well after a day and a half of frustration, I hope this is the right place for this newbie help request...
I guess the first thing I would like to sort out, is the setup for an "hello world" program. How do i set compiler and debuger in kits? how do i associate kit to project?
Attachment 10124Attachment 10125
(btw- as u can see, compiler option is grayed out for default kit)
I have visual studio 2013 installed & 2010 installed. windows 8.1 64 bit machine.
"qt-opensource-windows-x86-msvc2012_64-5.2.1.exe" is the offline prebuilt installation i downloaded and installed.
TX for your help.
Re: QT Installation, Setup, Config, Compilers & kits oh my!
Hi,
Hope it may help you:
- Install Qt Library
- Install Visual Add-In to use the Visual Studio as the Develop Environment
-Create environment variable to
Variable: QTDIR
Value: C:\Qt\5.2.0\msvc2010
Sorry if I misunderstood your scenario.
Happy codding!
Re: QT Installation, Setup, Config, Compilers & kits oh my!
:) tx for the response...
But i dont think this is the scenario...
I am trying to work with QT Creator, not QT libs and add in.
Re: QT Installation, Setup, Config, Compilers & kits oh my!
SenseTech, I can see your installation is complete. Now is the time to run your first application. Select New Project from File menu and choose Qt Widgets Application, then choose the path and MainWindow application. Finally build & run.
If it detects a compiler, then it should open a blank window (QMainWindow). If not it complains with some error messages and in this case, copy the error messages & paste it here in between [ CODE] [/CODE ] tags. So that folks here may have some clue to guess what's happening in your side.
Re: QT Installation, Setup, Config, Compilers & kits oh my!
You have to match a C++ compiler/toolchain to a set of compatible Qt libraries in order to make a Kit. You then associate one or more Kits to your project from the Projects panel.
You have Visual Studio 2010 and 2013 installed and you have downloaded a bundle containing Qt libraries for Visual Studio 2012, so the first step will be difficult. To use the VS2013 compiler or VS 2010 for 64-bit you will have to build Qt from sources for yourself (unless there are unofficial binaries out there).
Re: QT Creator - QT Installation, Setup, Config, Compilers & kits oh my!
@Chris
Ty,
well, I downloaded Qt MSVC10 32 bit installation and am able to compile and run some cute code now ;).
I guess the only drawback is that it is built for 32 bit.
If I understood you correctly, then my alternatives are:
1) download MSVC2012 compiler.
2) Build Qt with msvc10 or msvc13.
I rmmbr a traumatic time trying to build the OpenCV source and eventually used the prebuilt libs instead, any major drawbacks this way?
I have some more question, I hope anyone would care to answer,
1) what is the prebuilt Qt version with MinGw? would I then have to build OpenCV with MinGw too?
2) What is the prebuilt Qt version with OpenGL?
3) How do i configure and make use of a debugger within Qt creator?
TX all!!
Re: QT Creator - QT Installation, Setup, Config, Compilers & kits oh my!
HI, I too am having issues since I installed the VS 2013 addin.
I can use visual studio to compile and create Qt apps...no issue there.
However, I normally use Qt Creator to make Android and Linux apps ( cross compiled ). This functionality isn't easily available on VS 2013.
My issue is that upon a virgin instal of Qt 5.3 and Qt Creator, the default "kits" are my detected GCC, CYGWIN and MinGW kits ( pre installed ).
Since adding the VS 2013 add-in they have disappeared.
How do I get them back ?
Best Regards