1

I'm trying to create a simple Qt project. I have done inside of a folder the following:

  • Created a .ui file
  • ran qmake -project
  • Made a .pro file
  • Made a main.cpp file

How can I run this project using a command line?

0

1 Answer 1

1

You probably should run qmake to generate a Makefile from your .pro, then run make to compile and build the executable binary program, then run that program by its name. You might need to type the full or relative file path of the program if your PATH is not containing the directory having the program binary.

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

2 Comments

For the program to run by its name is it the .cpp file or the .pro file?
it is the executable binary program. I'll guess it has .exe suffix on Windows, and usually no suffix on Linux.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.