Difference between revisions of "Qt4"
From Bashlinux
Line 20: | Line 20: | ||
<pre><nowiki> |
<pre><nowiki> |
||
− | qmake |
+ | qmake prj_name.pro |
</nowiki></pre> |
</nowiki></pre> |
||
Revision as of 07:23, 2 April 2010
QT4
Create a new project
- Make a directory for the project and put the source code in it. The folder and the project have the same name.
mkdir prj_name
- Put the source code inside that directory.
- Go into that directory and make the project file
cd prj_name/ qmake -project
- This will produce a .pro (project) file based on the name of the current directory, which would be prj_name.pro
- Create a (platform-specific) Makefile based on the project file.
qmake prj_name.pro
- Run make to compile the project:
make