Nmake problems
-
You can install "vsaddin":http://qt.nokia.com/downloads/visual-studio-add-in then
You can import the pro directly to visual studio and run it from there.
I have done it with msvc 2005 and had no problems running the demo stuff. -
I have installed that addon on drive C, but i have installed Qt in drive E. Visual Studio is installed in drive C. I don't know what environment variable QTDIR is, but i have added to PATH the path to the bin directory of Qt(E:\QT\Desktop\Qt\4.8.0\msvc2010\bin)
-
Did you installed the Qt binaries from "here":http://qt.nokia.com/downloads/downloads#qt-lib ?
I would assume that this installer is setting up also the QTDIR environment variable.You may want to check in a cmd-box with
@set qt@
This will show you all your environment variables starting with qt. -
AFAIK mingw does not set this variable.
You have installed mingw only?
IMHO you should not use nmake for building.I think we have mixed up things a bit. Since you were using nmake, I thought that you are trying to use visual studio.
Certain mixing is possible, but we should not start with mixing everything.
What is the command you have used to install Qt?
Did you also install qt creator? -
I had an installer, i didn't use any command. Yes, I have installed qt creator. I saw in a tutorial that for
creating and running a project i have to use qmake and for windows nmake. I don't really care if I use Visual studio or command line, but i want to build my projects. So far it doesn't work, either with Visual studio or command line. I just need one way to build my programs. -
Well if you have installed also qt creator you can open any .pro file as a project file. From inside the creator you can edit, build and run/debug all applications in the same environment.
I have very, very minimal experience with creator and mingw on windows, but to my understanding there is a make shipped with mingw as well. i would suggest using nmake with visual studio and mingw with its make. Staying within the same tool chain shall help.
[edit] Or you may want to install the whole stuff for visual studio, if you want to stay there.