PDA

View Full Version : Problem when creating first example using VS 2012 qt add-in



abbasi
11th June 2014, 14:57
I installed qt-opensource-windows-x86-msvc2012_opengl-5.3.0 then installed qt-vs-addin-1.2.3-opensource. I had VS 2012 installed on my Windows 7 machine.
So, for making first example I tried to create a new project on the VS 2012 IDE as follows:

New Project -> Qt Application -> named Qtest as of name for project -> OK -> On the overview tab clicked next. then I got below message:

10409

I clicked Yes then Next and then Finish. this time I got this message:

10410

When I clicked OK, it returned me to first previous window of naming the new project.

How to solve this problem and how to use VS 2012 for Qt please?

Lesiok
11th June 2014, 15:28
Put in enviroment variable PATH Qt bin directory. In example if You have Qt installed in D:\QtDir in PATH put D:\QtDir\bin

abbasi
11th June 2014, 16:09
I should put that path to where?
I installed Qt in D:\ drive. So in the New Project window and in the location I put D:\Qt\Qt5.3.0\Tools\QtCreator\bin and then OK. But same result!

Lesiok
12th June 2014, 06:54
Dear buddy. You should know the basics of how the tool works. Read this article (http://www.computerhope.com/issues/ch000549.htm).

abbasi
12th June 2014, 08:54
Doesn't this affect other programs including VS for C++ programming?

Lesiok
12th June 2014, 09:31
Do you know what is the job of the PATH variable ?

abbasi
12th June 2014, 15:26
NO. I haven't been familiar with it.

Lesiok
12th June 2014, 16:41
So you need to. How you want to create software for the platform (Windows) on which you know nothing? PATH contains all the directories in which the system (Windows) is looking for programs (EXE files) and DLLs.

abbasi
12th June 2014, 18:16
The PATH contains this:

C:\Program Files\NVIDIA Corporation\PhysX\Common;%SystemRoot%\system32;%Sy stemRoot%;%SystemRoot%\System32\Wbem;%SYSTEMROOT%\ System32\WindowsPowerShell\v1.0\;C:\Program Files\Toshiba\Bluetooth Toshiba Stack\sys\;%systemroot%\System32\WindowsPowerShell \v1.0\;C:\Program Files\Windows Kits\8.0\Windows Performance Toolkit\;C:\Program Files\Microsoft SQL Server\110\Tools\Binn\
Should I edit it or remove these and then paste the D:\ bin directory.
Please give an obvious way.

Lesiok
13th June 2014, 06:49
You should add Qt bin directory to the PATH. In Qt Group in Start Menu you have a link to "Qt command prompt". It uses QT_DIR\bin\qtvars.bat Look in this bat file how to set (what to add) PATH variable.

abbasi
13th June 2014, 09:29
In start menu, there is a folder named QT 5.3.0 that when I open/extend it there isn't any link to Qt command prompt!

Lesiok
13th June 2014, 09:38
I'm working with Qt 4 series. Maybe in Qt 5 is different.
Uncle Google is great : read this topic (http://www.qtcentre.org/threads/55950-Where-can-i-found-QT-5-1-0-command-prompt)