Where is qmake.exe [SOLVED]
This is really frustrating, I have been trying to find this executable for like an hour but still couldn't, I dunno why this is not that easy like in visual studio. okie what I have done so far,
since I already have visual studio 2010 installed in my system, I downloaded and installed
"Qt 5.3.1 for Windows 32-bit (VS 2010, OpenGL, 537 MB)" but I didn't install the OpenGL files (yeah I unticked the opengl box) and installed the QT and then ran the QT Creator then it says no valid kits found so I found ,I have to give the qtmake.exe file's location but I couldn't find this file. where can I download it? why it's not even autodetected? and I couldn't even find a simple explanation about this on net. I hope this will be more simple like visual studio because it makes people frustrate.
Hi, welcome to devnet.
qmake.exe is in bin directory of your Qt installation folder (along with all the Qt dlls for deployment).
Your compiler should be detected automatically (check the Tools > Options > Build & Run > Compilers tab).
Next, check if your Qt installation is detected (Qt Versions tab).
Next, check if there's a kit generated (Kits tab).
Please give more info about the state of these tabs (what's in there) or refer to the associated help topics:
"Adding Qt Versions":http://qt-project.org/doc/qtcreator-3.2/creator-project-qmake.html
Btw. it's Qt. QT usually stands for Apple QuickTime.
EDIT: What do you mean you unchecked the OpenGL component? Do you mean the "Qt -> Qt 5.3 -> msvc2010 32-bit OpenGL" checkbox? That's not an OpenGL component. That's the Qt library (built with desktop OpenGL support). If you unchecked that then all you installed is an IDE (Qt Creator) and you don't have Qt (the library) installed.
after checking the Opengl checkbox (yeah the one you mentions) it works now, I think it's a bit confusing because it gives a wrong impression that these files are for OpenGL. anyway thanks for replying. I could install the QT Creator and also build 2 projects successfully but now when I run the program it says a DLL file is missing ,I guess you already answered for that question too [ in here -> along with all the Qt dlls for deployment). ] . thanks for that :)
one question, whenever I build a new executable ,I have to copy paste the necessary library files with the application ,I developed. is there anyway to automatically copy the necessary library files (of course dynamic linking) to the folder where my executable reside ,when the executable is built through release?
okie I solved it by myself too. it's pretty much easy. first build the executable through QTCreator -> Release (on QT Creator ,Project -> select "Release" in "Edit Build configuration" combo box and then select "Build Project "project name"" , it's in the menu bar of the QT Creator)
after building the executable (release one) ,find the "Qt 5.3 32-bit for Desktop (MSVC 2010 OpenGL).exe file which resides in startmenu (it's a dos application) run it and then redirect the path to where your release file resides (example :
cd c:\projectfile\myapp ) and then type the "windeployqt.exe ."
yeah make sure to type the ending "." too but without quotation marks. it should be like this
then it will copy paste all necessary library files to the folder where the release executable resides.
but before doing this ,run the qtenv2.bat file which resides in the
"C:\Qt\Qt5.3.1\5.3\msvc2010_opengl\bin" (C or wherever the QT is installed), it will register the QT path in the system so whenever an application is mentioned which resides in the aforesaid folder in the DOS prompt , the dos prompt will automatically find its path. ( [automatically find path]\filename.exe) example (C:\Qt\Qt5.3.1\5.3\msvc2010_opengl\bin\windeployqt.exe)
Great that you figured it out. Please prepend [Solved] to the topic title to let others know there's a solution here.
About the package containing OpenGL in the name - it makes sense in the online installer, where you have more library versions to choose from (ANGLE, WinRT etc,). When you install a single package like the one you did it's stripped down to basically this single option so the name looses some context.
More on the naming - again, it's Qt, not QT, and there is no DOS starting with Vista (the underlying OS called DOS was removed and replaced with NT kernel). It's just a command prompt that runs in text mode.