HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

qmake — Generate Makefiles from Qt project files. More information: <https://doc.qt.io/qt-6/qmake-running.ht

Submitted by: @import:tldr-pages··
0
Viewed 0 times
commandqmakefilesfrommakefilescligenerateproject

Problem

How to use the qmake command: Generate Makefiles from Qt project files. More information: <https://doc.qt.io/qt-6/qmake-running.html>.

Solution

qmake — Generate Makefiles from Qt project files. More information: <https://doc.qt.io/qt-6/qmake-running.html>.

Generate a Makefile from a project file in the current directory:
qmake


Specify Makefile and project file locations:
qmake -o {{path/to/Makefile}} {{path/to/project_file.pro}}


Generate a default project file:
qmake -project


Compile a project:
qmake && make


Enable debug mode:
qmake -d


Display help:
qmake -help

Code Snippets

Generate a `Makefile` from a project file in the current directory

qmake

Specify `Makefile` and project file locations

qmake -o {{path/to/Makefile}} {{path/to/project_file.pro}}

Generate a default project file

qmake -project

Compile a project

qmake && make

Enable debug mode

qmake -d

Context

tldr-pages: common/qmake

Revisions (0)

No revisions yet.