Creating MacOSX Qt project with qmake

It is not obvious and not clearly described in the qmake help, therefore I am typing what you need to do to here:

qmake -project
qmake -spec macx-g++ yourprojectname.pro

after that you can run:

qmake
make

(And your program is compiled)

You can now edit the pro -file as suits you best. To make it effect again, run qmake without parameters. If you encounter weird errors after changing the .pro -file, it might be because you have not run make clean. So after doing this, always run make clean before attempting to compile, otherwise you may get some headaches about issues that actually do not exist.

Advertisements
  1. No trackbacks yet.

You must be logged in to post a comment.
%d bloggers like this: