Qt Forum - programming with C++ and Qt
Register Calendar Members List Team Members Search Frequently Asked Questions Go to the Main Page

Qt Forum - programming with C++ and Qt » QtForum.org » Qt » Qt Programming » qmake example makefile » Hello Guest [Login|Register]
Last Post | First Unread Post Print Page | Recommend to a Friend | Add Thread to Favorites
Post New Thread Post Reply
Go to the bottom of this page qmake example makefile
Author
Post « Previous Thread | Next Thread »
dsoodak
Assistant


Registration Date: 10.05.2008
Posts: 8
Location: Florida

Level: 4 [?]
Experience: 60
Next Level: 100

40 points of experience needed for next level

qmake example makefile Reply to this Post Post Reply with Quote Edit/Delete Posts Report Post to a Moderator       Go to the top of this page

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?
10.05.2008 01:23 dsoodak is offline Send an Email to dsoodak Search for Posts by dsoodak Add dsoodak to your Buddy List
sgh sgh is a male
Senior Software Engineer


Registration Date: 17.03.2008
Posts: 77

Level: 14 [?]
Experience: 4,697
Next Level: 5,517

820 points of experience needed for next level

RE: qmake example makefile Reply to this Post Post Reply with Quote Edit/Delete Posts Report Post to a Moderator       Go to the top of this page

you can set path for environment variable in your computer property -> advance.
and use set path in your command prompt.
10.05.2008 05:37 sgh is offline Send an Email to sgh Search for Posts by sgh Add sgh to your Buddy List View the MSN Profile for sgh
dsoodak
Assistant


Registration Date: 10.05.2008
Posts: 8
Location: Florida

Level: 4 [?]
Experience: 60
Next Level: 100

40 points of experience needed for next level

Thread Starter Thread Started by dsoodak
RE: qmake example makefile Reply to this Post Post Reply with Quote Edit/Delete Posts Report Post to a Moderator       Go to the top of this page

What is "computer property -> advance" and how do I get to it?
I am in Windows Vista.
10.05.2008 07:11 dsoodak is offline Send an Email to dsoodak Search for Posts by dsoodak Add dsoodak to your Buddy List
Nicolas SOUCHON
Wizard


Registration Date: 27.06.2007
Posts: 735

Level: 29 [?]
Experience: 238,928
Next Level: 242,754

3,826 points of experience needed for next level

RE: qmake example makefile Reply to this Post Post Reply with Quote Edit/Delete Posts Report Post to a Moderator       Go to the top of this page

on windows XP, it was:

configuration pannel --> system --> advanced tab --> environment variables

__________________
Nicolas

This post has been edited 1 time(s), it was last edited by Nicolas SOUCHON: 10.05.2008 09:30.

10.05.2008 09:29 Nicolas SOUCHON is offline Send an Email to Nicolas SOUCHON Search for Posts by Nicolas SOUCHON Add Nicolas SOUCHON to your Buddy List
dsoodak
Assistant


Registration Date: 10.05.2008
Posts: 8
Location: Florida

Level: 4 [?]
Experience: 60
Next Level: 100

40 points of experience needed for next level

Thread Starter Thread Started by dsoodak
RE: qmake example makefile Reply to this Post Post Reply with Quote Edit/Delete Posts Report Post to a Moderator       Go to the top of this page

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

Thanks!
10.05.2008 18:04 dsoodak is offline Send an Email to dsoodak Search for Posts by dsoodak Add dsoodak to your Buddy List
Tree Structure | Board Structure
Jump to:
Post New Thread Post Reply
Qt Forum - programming with C++ and Qt » QtForum.org » Qt » Qt Programming » qmake example makefile

views today: 4.831 | views yesterday: 12.104 | total views: 10.250.304


Klebekork Shop - Linux Shop - Kontaktanzeigen - Linux Forum -  SMS Gewinnspiel -  Hotels -  Stadtpläne -  Branchenbuch & Stadtplan

Branchenbuch Österreich - Branchenbuch Niederlande - Portugal Branchenverzeichnis - Spanien Branchenverzeichnis 
Telefonbuch - Branchenbuch Frankreich