Dear visitor, welcome to QtForum.org. If this is your first visit here, please read the Help. It explains how this page works. You must be registered before you can use all the page's features. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.
qmake example makefile
In the qmake manual it says to make a file named "hello.pro" with the following lines:
CONFIG += qt
HEADERS += hello.h
SOURCES += hello.cpp
SOURCES += main.cpp
You can now use qmake to generate a Makefile for your application. On the command line, in your project's directory, type the following:
qmake -o Makefile hello.pro
Here's my question:
qmake.exe and the project's directory are generally not in the same place, so if I type "qmake" in the project's directory it says "qmake is not a recognized command".
I don't know very much about the DOS command line. How can I make this work?
RE: qmake example makefile
you can set path for environment variable in your computer property -> advance.
and use set path in your command prompt.
RE: qmake example makefile
What is "computer property -> advance" and how do I get to it?
I am in Windows Vista.
RE: qmake example makefile
on windows XP, it was:
configuration pannel --> system --> advanced tab --> environment variables
Nicolas
This post has been edited 1 times, last edit by "Nicolas SOUCHON" (May 10th 2008, 8:30am)
RE: qmake example makefile
never mind...
The keyword "set path" in your reply was enough for me to look it up.
Thanks!