LinuxCommandLibrary

sfdk-qmake

Generate Makefiles for Sailfish OS projects

TLDR

Run qmake build

$ sfdk qmake
copy

Run shadow qmake build in a specified project
$ sfdk qmake [project]
copy

Run build with extra qmake arguments
$ sfdk qmake -- [arguments]
copy

Run shadow qmake build with extra qmake arguments
$ sfdk qmake [project] [arguments]
copy

SYNOPSIS

sfdk-qmake [options] project_file.pro

PARAMETERS

-project
    Generate a project file from existing sources.

-makefile
    Generate a makefile only.

-query
    Query the qmake configuration.

CONFIG+=debug
    Enable debug mode in the generated makefile.

CONFIG+=release
    Enable release mode in the generated makefile.

[project_file.pro]
    The Qt project file to process.

-o
    Specify the output file name.

-d
    Enable debugging output.

DESCRIPTION

The `sfdk-qmake` command is part of the Sailfish SDK (SFDK) and is a wrapper around the standard `qmake` build system. It configures Qt projects for Sailfish OS development, ensuring correct build settings for the target platform. It simplifies the process of building Sailfish OS applications by automatically handling the specific compiler flags, linker options, and Qt library paths needed for the platform. Essentially, it makes sure that your Qt project is correctly set up to build a native Sailfish OS application.

The command ensures the proper environment variables and configurations are set, so you don't have to manually tweak your project files to target Sailfish OS. It automates tasks like setting the correct toolchain prefix and linking against the appropriate libraries. `sfdk-qmake` typically resides within the Sailfish SDK environment and integrates with other SDK tools. When run, it prepares your Qt project's makefiles, making them ready for compilation and deployment on Sailfish OS devices or emulators. The build system created by it will use the toolchain defined by the SDK environment variables.

CAVEATS

This command is specifically designed for Sailfish OS SDK and might not work outside of that environment. It relies on the SDK's environment variables to function correctly. Also, some options for standard qmake might be overridden or ignored by `sfdk-qmake` to ensure compatibility with the Sailfish OS build environment.

ENVIRONMENT VARIABLES

The command relies on specific environment variables set by the Sailfish SDK, such as the toolchain prefix and library paths. Ensure these are correctly configured before using `sfdk-qmake`.

DEPENDENCIES

`sfdk-qmake` requires the Qt development environment and the Sailfish SDK to be installed and correctly configured.

HISTORY

The `sfdk-qmake` command was developed as part of the Sailfish SDK to streamline the development process for Sailfish OS applications. It simplifies the interaction with the Qt build system by providing a dedicated tool that automatically configures projects for the Sailfish environment. This allows developers to focus on coding rather than manually configuring build settings.

SEE ALSO

qmake(1)

Copied to clipboard