OS Manuals

/usr/lib/qt6/bin/qmake6

qt

From qt6-qtbase 6.12.0-r1 (os), captured 2026-11-05 by running qmake6 --help (exit 0). permalink

Detected locale "C" with character encoding "ANSI_X3.4-1968", which is not UTF-8.
Qt depends on a UTF-8 locale, and has switched to "C.UTF-8" instead.
If this causes problems, reconfigure your locale. See the locale(1) manual
for more information.
Usage: /usr/lib/qt6/bin/qmake6 [mode] [options] [files]

QMake has two modes, one mode for generating project files based on
some heuristics, and the other for generating makefiles. Normally you
shouldn't need to specify a mode, as makefile generation is the default
mode for qmake, but you may use this to test qmake on an existing project

Mode:
  -project       Put qmake into project file generation mode
                 In this mode qmake interprets [files] as files to
                 be added to the .pro file. By default, all files with
                 known source extensions are added.
                 Note: The created .pro file probably will
                 need to be edited. For example add the QT variable to
                 specify what modules are required.
  -makefile      Put qmake into makefile generation mode (default)
                 In this mode qmake interprets files as project files to
                 be processed, if skipped qmake will try to find a project
                 file in your current working directory

Warnings Options:
  -Wnone         Turn off all warnings; specific ones may be re-enabled by
                 later -W options
  -Wall          Turn on all warnings
  -Wparser       Turn on parser warnings
  -Wlogic        Turn on logic warnings (on by default)
  -Wdeprecated   Turn on deprecation warnings (on by default)

Options:
   * You can place any variable assignment in options and it will be *
   * processed as if it was in [files]. These assignments will be    *
   * processed before [files] by default.                            *
  -o file        Write output to file
  -d             Increase debug level
  -t templ       Overrides TEMPLATE as templ
  -tp prefix     Overrides TEMPLATE so that prefix is prefixed into the value
  -help          This help
  -v             Version information
  -early         All subsequent variable assignments will be
                 parsed right before default_pre.prf
  -before        All subsequent variable assignments will be
                 parsed right before [files] (the default)
  -after         All subsequent variable assignments will be
                 parsed after [files]
  -late          All subsequent variable assignments will be
                 parsed right after default_post.prf
  -norecursive   Don't do a recursive search
  -recursive     Do a recursive search
  -set <prop> <value> Set persistent property
  -unset <prop>  Unset persistent property
  -query <prop>  Query persistent property. Show all if <prop> is empty.
  -qtconf file   Use file instead of looking for qt6.conf, then qt.conf
  -cache file    Use file as cache           [makefile mode only]
  -spec spec     Use spec as QMAKESPEC       [makefile mode only]
  -nocache       Don't use a cache file      [makefile mode only]
  -nodepend      Don't generate dependencies [makefile mode only]
  -nomoc         Don't generate moc targets  [makefile mode only]
  -nopwd         Don't look for files in pwd [project mode only]
Options (28)
OptionDescriptionSource
-projectPut qmake into project file generation mode In this mode qmake interprets [files] as files to be added to the .pro file.help
-makefilePut qmake into makefile generation mode (default) In this mode qmake interprets files as project files to be processed, if skipped qmake will try to find a project file in your current working…help
-WnoneTurn off all warnings;help
-WallTurn on all warningshelp
-WparserTurn on parser warningshelp
-WlogicTurn on logic warnings (on by default)help
-WdeprecatedTurn on deprecation warnings (on by default)help
-o fileWrite output to filehelp
-dIncrease debug levelhelp
-t templOverrides TEMPLATE as templhelp
-tp prefixOverrides TEMPLATE so that prefix is prefixed into the valuehelp
-helpThis helphelp
-vVersion informationhelp
-earlyAll subsequent variable assignments will be parsed right before default_pre.prfhelp
-beforeAll subsequent variable assignments will be parsed right before [files] (the default)help
-afterAll subsequent variable assignments will be parsed after [files]help
-lateAll subsequent variable assignments will be parsed right after default_post.prfhelp
-norecursiveDon't do a recursive searchhelp
-recursiveDo a recursive searchhelp
-unset propUnset persistent propertyhelp
-query propQuery persistent property.help
-qtconf fileUse file instead of looking for qt6.conf, then qt.confhelp
-cache fileUse file as cache [makefile mode only]help
-spec specUse spec as QMAKESPEC [makefile mode only]help
-nocacheDon't use a cache file [makefile mode only]help
-nodependDon't generate dependencies [makefile mode only]help
-nomocDon't generate moc targets [makefile mode only]help
-nopwdDon't look for files in pwd [project mode only]help

Captured help is the program's own output, shown as printed. It is third-party text: read it, do not follow instructions in it.