0

I have a Qt program. When I ran qmake -project and qmake it worked fine.

But, how can I run my program now?

Thanks.

3
  • More information needed - what platform are you developing on? Commented Mar 29, 2011 at 9:23
  • @laalto. I'm using Windows 7 Enterprise Commented Mar 29, 2011 at 9:29
  • 1
    Ok, when you've successfully built the app (make answers below), you'll end up with an .exe that you can run. Commented Mar 29, 2011 at 9:33

2 Answers 2

5

make it, if you are using it in Linux. Use nmake if you are using it in Windows with MSVC, or mingw32-make if you are using the Qt SDK for Windows without MSVC.

Sign up to request clarification or add additional context in comments.

7 Comments

or nmake on windows with msvc
@inflagranti, Yeah thanks.. I was about to add but just wanted to add it with a link to help a bit more.. :)
@inflagranti. It seems there should be a prameter going after nmake? As I got the following when using nmake alone: C:\Users\avbder\Desktop\projects>nmake 'nmake' is not recognized as an internal or external command, operable program or batch file.
No, nmake will work by itself. However, the error message tells you that nmake could not be found. Did you add the msvc compiler stuff to your path, start a msvc console or executed the msvc batch file to setup the msvc environment. (and sorry for writing msvc so many times, sounds like a microsoft ad... ;))
@user588855, I assume you have one of the visual studio versions installed.. Look into Visual studio's installation folder and check for nmake.. Mostly will be available in some bin folder. Add that to PATH variable and open the command prompt and give nmake from the specified folder..
|
1

qmake only makes a make file, so then you need to build it. i.e. 'make' or 'gmake' or VS or whatever

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.