How much time will it take to build Qt 5.15.x source package
-
Hi and welcome to devnet,
None of them. Qt Creator is a much younger and separate project. If you want to build it you have to clone the corresponding repository.
-
@Rajdeep100 said in How much time will it take to build Qt 5.15.x source package:
@SGaist So, If I cloned it from GitHub and repeated the whole process again, will there be any file by which I can launch QtCreator?
You are compiling Qt. That source code does not contain Qt Creator at all. Qt Creator is a separate project, with separate repository. You can get QtC source code from here
-
@Rajdeep100 said in How much time will it take to build Qt 5.15.x source package:
Hey guys,
The compilation process just got completed after posting this thread!!
it took exactly 2 hours to build.You do know that you have to give
-j <cores>
to themake
command to use all your cores, do you?Regards
-
@J-Hilk already hinted at the following, but I will state it more concretely...
If you do not need every Qt5 library that exists, you can speed this up significantly by only building the subset of libraries you need.
I habitually build Qt5 from source using variations of this script: https://github.com/219-design/build_qt_binaries/blob/09ad9369c8ab/script.sh
(The script as linked above is hardcoded to build
v5.14.0
but that is easy to change.)The script constrains the subset of libraries in two (possibly redundant) ways:
First, not all submodules are downloaded:
git clone git://code.qt.io/qt/qt5.git qt5_sources cd qt5_sources git checkout v5.14.0 git submodule update --init --recursive \ qtbase \ qtcharts \ qtdeclarative \ qtgraphicaleffects \ qtimageformats \ qtmultimedia \ qtquickcontrols \ qtquickcontrols2 \ qtquicktimeline \ qtscript \ qtsvg \ qttools \ qttranslations \ qtvirtualkeyboard \ qtx11extras \ qtxmlpatterns
(Refer to: https://github.com/219-design/build_qt_binaries/blob/09ad9369c8ab/script.sh#L34)
Second, I pass a number of explicit
-skip
arguments to configure:../../qt5_sources/configure \ -prefix "${PWD}/../../qt5_${BUILDTYPE}_install" \ -opensource -confirm-license \ -c++std c++17 \ ${CONFIG_ARGS} \ -sysroot / \ -no-pch \ -pkg-config \ -qt-libpng \ -qt-zlib \ -skip qt3d \ -skip qtactiveqt \ -skip qtandroidextras \ -skip qtcanvas3d \ -skip qtconnectivity \ -skip qtdatavis3d \ -skip qtdoc \ .... and so forth .....
(Refer to: https://github.com/219-design/build_qt_binaries/blob/09ad9369c8ab/script.sh#L85)
I have a similar workstation to yours, and I have been using Ubuntu 18 for most of my builds, and I never wait more than about 30 minutes for a build to finish of my chosen subset of Qt libs.
-
@KH-219Design said in How much time will it take to build Qt 5.15.x source package:
never wait more than about 30 minutes for a build to finish of my chosen subset
Given your "30 minutes", do you have any comparison timing if you had not skipped those 30 modules? OOI.
-
@JonB said in How much time will it take to build Qt 5.15.x source package:
@KH-219Design said in How much time will it take to build Qt 5.15.x source package:
never wait more than about 30 minutes for a build to finish of my chosen subset
Given your "30 minutes", do you have any comparison timing if you had not skipped those 30 modules? OOI.
@JonB that's a great question. I don't have such fine-grained info, but it would be fun to measure it sometime. I wonder if anyone has tried to tabulate approximate or relative build time on a library-by-library granularity...
-
@KH-219Design
I just wanted to know how long a full build would take you in comparison. I have never compiled Qt, partly on the (fairly safe) assumption that it would take me forever... ;-) -
@JonB well based on what @Rajdeep100 said above, I think it's safe to say it takes no less than 2 full hours :)
(But we still don't know if @Rajdeep100 was limiting the quantity of libs in any way.)
-
I'm really tired of compiling it from source, do you know how to setup different repositories for the online Qt installer??
-
Hi @Rajdeep100,
please see my answer to your question at https://forum.qt.io/topic/119034/what-is-the-release-date-for-qt-5-15-1-offline-installer-for-linux/4