How to build qtquickcontols2, qtsvg, qtwebsockets?
-
I built QT 6.1.0 on 3rd attempt with the following steps (without -DQT_NO_EXCEPTIONS=1):
CALL "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvarsall.bat" amd64 set "CMAKE_ROOT=E:\PFiles\cmake-3.19.1-win64-x64\bin" set "NINJA_ROOT=E:\PFiles\ninja-win" set "PERL_ROOT=E:\PFiles\Strawberry\perl\bin" set PATH=%CMAKE_ROOT%;%PATH% set PATH=%NINJA_ROOT%;%PATH% set PATH=%PERL_ROOT%;%PATH% set PATH=E:\PFiles\Python35;%PATH% rem Check if the tools are in PATH where perl.exe where python.exe where cmake.exe where ninja.exe set "MY_INSTALL_PATH=E:\Qt\Qt6.0.2\windows" set CL=/MP configure.bat -prefix %MY_INSTALL_PATH% -release -force-debug-info -platform win32-msvc -opengl es2 ^ -opensource -confirm-license -nomake tests -nomake examples ^ -skip qtgraphicaleffects cmake --build . --parallel
but only these modules were built:
Qt6Concurrent.dll Qt6Core.dll Qt6DBus.dll Qt6Gui.dll Qt6Network.dll Qt6OpenGL.dll Qt6OpenGLWidgets.dll Qt6PrintSupport.dll Qt6Sql.dll Qt6Test.dll Qt6Widgets.dll Qt6Xml.dll
what about qtquickcontols2, qtsvg, qtwebsockets? Is it possible to build them?
At least I have their sources, how to include them into the build?
-
You only downloaded and built QtBase and not the other modules.
-
@Christian-Ehrlicher my QT source directory contains these folders:
cmake CMakeFiles coin config.tests qt3d qt5compat qtactiveqt qtandroidextras qtbase qtcanvas3d qtcharts qtcoap qtconnectivity qtdatavis3d qtdeclarative qtdoc qtfeedback qtgamepad qtgraphicaleffects qtimageformats qtlocation qtlottie qtmacextras qtmqtt qtmultimedia qtnetworkauth qtopcua qtpim qtpurchasing qtqa qtquick3d qtquickcontrols qtquickcontrols2 qtquicktimeline qtremoteobjects qtrepotools qtscxml qtsensors qtserialbus qtserialport qtshadertools qtspeech qtsvg qtsystems qttools qttranslations qtvirtualkeyboard qtwayland qtwebchannel qtwebengine qtwebglplugin qtwebsockets qtwebview qtwinextras qtx11extras qtxmlpatterns .commit-template .gitattributes .gitignore .gitmodules .tag _clang-format CMakeCache.txt CMakeLists.txt config.opt configure configure.bat configure.json init-repository LICENSE.FDL LICENSE.GPL3-EXCEPT LICENSE.GPLv2 LICENSE.GPLv3 LICENSE.LGPLv3 LICENSE.LGPLv21 LICENSE.QT-LICENSE-AGREEMENT qt.pro README.git README.md
and qtquickcontrols2\src\quicktemplates2 folder contains various *.cpp files like qquicklabel.cpp, qquickmenu.cpp, .. etc...
and I have an impression that qtmultimedia, qtwebsockets also have some sources.
-
First: re-checkout the sources and do not do an in-source build. Follow the instructions and do an out-of-source build. Then Call configure and see what it prints out - it will tell you what gets build.
-
@Christian-Ehrlicher looks like I run a wrong configure.bat from qtbase. If I do a clean experiment with configure.bat from the root directory and then run
cmake --build . --parallel
I get
ninja: error: loading 'build.ninja': The system cannot find the file specified.
looks like I can't build it :)
-
@Dmitriano said in How to build qtquickcontols2, qtsvg, qtwebsockets?:
looks like I can't build it :)
This is because your source dir is messed up with old build artifacts. Kill the source dir, download again and then do an out-of-source build.
-
@Christian-Ehrlicher There was an error related to qtwebsockets:
CMake Error at qtbase/lib/cmake/Qt6Qml/Qt6QmlMacros.cmake:176 (add_library): No SOURCES given to target: qmlwebsockets Call Stack (most recent call first): qtbase/lib/cmake/Qt6Qml/Qt6QmlMacros.cmake:484 (qt6_add_qml_module) qtwebsockets/src/imports/qmlwebsockets/CMakeLists.txt:7 (qt_add_qml_module) CMake Generate step failed. Build files cannot be regenerated correctly. CMake Error at qtbase/cmake/QtProcessConfigureArgs.cmake:823 (message): CMake exited with code 1.
it started to build when I added -skip qtwebsockets to configure.bat paremeters.
(QT source directory is clean)
-
You can download prebuilt
Qt 6.1.0 modules for Windows, Linux (Unix) is available from Google drivehttps://drive.google.com/folderview?id=0B2QuZLoe-yiPbmNQRl83M1dTRVE&usp=sharing
[Warning: Download binaries from unknown sources at your own risk ~SGaist]