October 27, 2020 by Iikka Eklund | Comments
With Qt 6 we want to provide more flexibility via leveraging a package manager in addition to Qt Online Installer. The new package manager functionality, based on conan.io (https://conan.io), allows providing more packages to the users without increasing the complexity of the baseline Qt. In addition to the packages provided by Qt, the package manager can be used for getting content from other sources.
Initially, we have three Additional Libraries provided via the package manager: Qt Network Authorization, Qt Image Formats, and Qt 3D. More Additional Libraries will be available in forthcoming Qt 6 releases. We are currently leveraging the existing Qt delivery system as the backend for the Additional Libraries available via the package manager.
How the packages are managed?
The required tools, Conan, CMake, and Ninja, can be easily installed using the Qt Online installer 4.0, which is going to be released soon. The Conan build recipes for Additional Libraries require CMake and Ninja to build the module. The project linking to the module can be qmake-based as well.
Once installed, the selected Additional Libraries can be built once by using Conan per selected target configuration. After the build, the binary package is available in user’s local Conan cache, and can be linked to any other project.
How to get and build the packages?
An example build call looks like this:
$conan.exe install qtnetworkauth/6.0.0@qt/beta --build=missing
--profile=<QtSdk>/Tools/Conan/profiles/qt-6.0.0-msvc2019_64 -s
build_type=Release -g cmake_paths -g=cmake -g deploy
Now, let's look what that contains:
For detailed steps see the instructions.
Currently, Qt Online Installer exports the Additional Library packages (sources and build recipes) into the Conan cache. There is no Conan remote that hosts the Additional Library Conan packages.
Next steps
Like Qt 6.0, the current work is still in beta phase and all feedback is welcome. Note that currently the Conan profile files and build recipies for Android and iOS targets are being worked on. Also, the build recipes of the Additional Libraries are not part of the repositories yet. Once the build recipes are mature the plan is to move those into module repositories.
If you want to have a look already now, how the conanfile.py recipes look like, those can be found in the Qt installation, under each module in “AdditionalLibraries/Qt/”.
Download the latest release here: www.qt.io/download.
Qt 6.8 release focuses on technology trends like spatial computing & XR, complex data visualization in 2D & 3D, and ARM-based development for desktop.
Check out all our open positions here and follow us on Instagram to see what it's like to be #QtPeople.
Feb 5, 2025
Claude 3.5 Sonnet is the best LLM to write QML code when prompted in..
Dec 27, 2024
This blog post will guide you through the entire process of preparing your..
Dec 17, 2024
We have released Qt 6.9 Beta 1 today. As usual, Qt 6.9 Beta 1 is available..