Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. General talk
  3. Qt 6
  4. How to build qtquickcontols2, qtsvg, qtwebsockets?
Forum Update on Monday, May 27th 2025

How to build qtquickcontols2, qtsvg, qtwebsockets?

Scheduled Pinned Locked Moved Unsolved Qt 6
8 Posts 3 Posters 1.1k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    D Offline
    Dmitriano
    wrote on 12 May 2021, 10:06 last edited by Dmitriano 5 Dec 2021, 10:14
    #1

    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?

    1 Reply Last reply
    0
    • C Offline
      C Offline
      Christian Ehrlicher
      Lifetime Qt Champion
      wrote on 12 May 2021, 10:20 last edited by
      #2

      You only downloaded and built QtBase and not the other modules.

      Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
      Visit the Qt Academy at https://academy.qt.io/catalog

      D 1 Reply Last reply 12 May 2021, 10:37
      0
      • C Christian Ehrlicher
        12 May 2021, 10:20

        You only downloaded and built QtBase and not the other modules.

        D Offline
        D Offline
        Dmitriano
        wrote on 12 May 2021, 10:37 last edited by Dmitriano 5 Dec 2021, 10:39
        #3

        @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.

        1 Reply Last reply
        0
        • C Offline
          C Offline
          Christian Ehrlicher
          Lifetime Qt Champion
          wrote on 12 May 2021, 10:41 last edited by
          #4

          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.

          Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
          Visit the Qt Academy at https://academy.qt.io/catalog

          D 1 Reply Last reply 12 May 2021, 13:42
          1
          • C Christian Ehrlicher
            12 May 2021, 10:41

            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.

            D Offline
            D Offline
            Dmitriano
            wrote on 12 May 2021, 13:42 last edited by Dmitriano 5 Dec 2021, 13:46
            #5

            @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 :)

            1 Reply Last reply
            0
            • C Offline
              C Offline
              Christian Ehrlicher
              Lifetime Qt Champion
              wrote on 12 May 2021, 13:57 last edited by
              #6

              @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.

              Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
              Visit the Qt Academy at https://academy.qt.io/catalog

              D 1 Reply Last reply 12 May 2021, 17:25
              1
              • C Christian Ehrlicher
                12 May 2021, 13:57

                @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.

                D Offline
                D Offline
                Dmitriano
                wrote on 12 May 2021, 17:25 last edited by Dmitriano 5 Dec 2021, 17:29
                #7

                @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)

                1 Reply Last reply
                0
                • L Offline
                  L Offline
                  LeonidD
                  wrote on 13 May 2021, 07:16 last edited by SGaist
                  #8

                  You can download prebuilt
                  Qt 6.1.0 modules for Windows, Linux (Unix) is available from Google drive https://drive.google.com/folderview?id=0B2QuZLoe-yiPbmNQRl83M1dTRVE&usp=sharing

                  [Warning: Download binaries from unknown sources at your own risk ~SGaist]

                  1 Reply Last reply
                  0

                  1/8

                  12 May 2021, 10:06

                  • Login

                  • Login or register to search.
                  1 out of 8
                  • First post
                    1/8
                    Last post
                  0
                  • Categories
                  • Recent
                  • Tags
                  • Popular
                  • Users
                  • Groups
                  • Search
                  • Get Qt Extensions
                  • Unsolved