Saturday, July 5th 2008, 6:16am UTC+1

You are not logged in.

  • Login
  • Register

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.

dsoodak

Beginner

Posts: 8

Location: Florida

Occupation: Instrument design, firmware, software

1

Saturday, May 10th 2008, 12:23am

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?
  • Go to the top of the page

2

Saturday, May 10th 2008, 4:37am

RE: qmake example makefile

you can set path for environment variable in your computer property -> advance.
and use set path in your command prompt.
  • Go to the top of the page

dsoodak

Beginner

Posts: 8

Location: Florida

Occupation: Instrument design, firmware, software

3

Saturday, May 10th 2008, 6:11am

RE: qmake example makefile

What is "computer property -> advance" and how do I get to it?
I am in Windows Vista.
  • Go to the top of the page

4

Saturday, May 10th 2008, 8:29am

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)

  • Go to the top of the page

dsoodak

Beginner

Posts: 8

Location: Florida

Occupation: Instrument design, firmware, software

5

Saturday, May 10th 2008, 5:04pm

RE: qmake example makefile

never mind...
The keyword "set path" in your reply was enough for me to look it up.

Thanks!
  • Go to the top of the page

Rate this thread