Configuring QT Creator with QT 6.6.2

I built QT 6.6.2, installed QT Creator and updated "%SystemDrive%\Documents and Settings\%USERNAME%\Application Data\QtProject\qtcreator\android\sdk_definitions.json" file as follows:

...

"specific_qt_versions": [
    {
        "versions": ["default"],
        "sdk_essential_packages": ["build-tools;34.0.0", "ndk;26.2.11394342"]
    },
    {
        "versions": ["6.4"],
        "sdk_essential_packages": ["build-tools;31.0.0", "ndk;23.1.7779620"]
    },
    {
        "versions": ["6.3", "6.2", "5.15.[9-20]"],
        "sdk_essential_packages": ["build-tools;31.0.0", "ndk;22.1.7171670"]
    },
    {
        "versions": ["5.15.[0-8]", "5.14.[0-2]", "5.13.2", "6.0", "6.1"],
        "sdk_essential_packages": ["build-tools;31.0.0", "ndk;21.3.6528147"]
    },
    {
        "versions": ["5.12.[0-5]", "5.13.[0-1]"],
        "sdk_essential_packages": ["build-tools;28.0.2", "ndk;19.2.5345600"]
    }
]

...

When I open Devices->Android tab QT Creator asks to install the packages from the following section:

"sdk_essential_packages": {
    "default": ["platform-tools", "platforms;android-31", "cmdline-tools;latest"],
    "linux": [],
    "mac": [],
    "windows": ["extras;google;usb_driver"]
}

I removed "C:\Program Files\Android\Android Studio\jre" directory and configured Android settings:

specified CMake path:

added QT versions:

and configured Ninja generator:

by adding option -DCMAKE_MAKE_PROGRAM:FILEPATH=C:\dev\tools\ninja-win\ninja.exe and was able to build my app for android.

Windows projects require to add the following options to project’s CMake current configuration:

-DOPENSSL_ROOT_DIR:STRING=D:/dev/libs/OpenSSL
-DOPENSSL_USE_STATIC_LIBS:BOOL=ON

2 Responses to Configuring QT Creator with QT 6.6.2

  1. dmitriano says:

    How to install Qt Creator offline without account
    https://www.youtube.com/watch?v=BPDQMitEOQ0&t=133s
    Settings date to something prior to 2020.

Leave a Reply

Your email address will not be published. Required fields are marked *