Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Building Qt from source on Windows
Forum Updated to NodeBB v4.3 + New Features

Building Qt from source on Windows

Scheduled Pinned Locked Moved Unsolved General and Desktop
windows
10 Posts 5 Posters 144 Views 4 Watching
  • 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.
  • S Offline
    S Offline
    snoriman
    wrote last edited by
    #1

    Hi, I'm trying to create a minimal build on Windows and it seems that I'm doing something wrong. My goal is to build a minimal version. For example, I don't need Quick, WebEngine, etc. I've read through the configuration mapping file but it seems that using the -QT_SKIP_<name>=On doesn't have any effect.
    Does someone know how to create a minimal build on Windows, e.g. a way to disable options.

    For example when I start configuring the project I see that a large list of dependency checks are done for most of the modules I've disabled:

    -- Checking dependencies of submodule 'qtbase'
    -- Checking dependencies of submodule 'qtimageformats'
    -- Checking dependencies of submodule 'qtlanguageserver'
    -- Checking dependencies of submodule 'qtshadertools'
    -- Checking dependencies of submodule 'qtsvg'
    -- Checking dependencies of submodule 'qtdeclarative'
    -- Checking dependencies of submodule 'qtquicktimeline'
    -- Checking dependencies of submodule 'qtquick3d'
    -- Checking dependencies of submodule 'qtmultimedia'
    -- Checking dependencies of submodule 'qt3d'
    -- Checking dependencies of submodule 'qt5compat'
    -- Checking dependencies of submodule 'qtactiveqt'
    -- Checking dependencies of submodule 'qtcharts'
    -- Checking dependencies of submodule 'qtcoap'
    -- Checking dependencies of submodule 'qtconnectivity'
    -- Checking dependencies of submodule 'qtdatavis3d'
    -- Checking dependencies of submodule 'qtgraphs'
    -- Checking dependencies of submodule 'qtwebsockets'
    -- Checking dependencies of submodule 'qthttpserver'
    -- Checking dependencies of submodule 'qtserialport'
    -- Checking dependencies of submodule 'qtpositioning'
    -- Checking dependencies of submodule 'qtlocation'
    -- Checking dependencies of submodule 'qttools'
    -- Checking dependencies of submodule 'qtwebchannel'
    -- Checking dependencies of submodule 'qtwebengine'
    -- Checking dependencies of submodule 'qtdoc'
    -- Checking dependencies of submodule 'qtgrpc'
    -- Checking dependencies of submodule 'qtlottie'
    -- Checking dependencies of submodule 'qtmqtt'
    -- Checking dependencies of submodule 'qtnetworkauth'
    -- Checking dependencies of submodule 'qtopcua'
    -- Checking dependencies of submodule 'qtquick3dphysics'
    -- Checking dependencies of submodule 'qtquickeffectmaker'
    -- Checking dependencies of submodule 'qtremoteobjects'
    -- Checking dependencies of submodule 'qtscxml'
    -- Checking dependencies of submodule 'qtsensors'
    -- Checking dependencies of submodule 'qtserialbus'
    -- Checking dependencies of submodule 'qtspeech'
    -- Checking dependencies of submodule 'qttranslations'
    -- Checking dependencies of submodule 'qtvirtualkeyboard'
    -- Checking dependencies of submodule 'qtwayland'
    -- Checking dependencies of submodule 'qtwebview'
    

    Currently I'm using this monster of a cmake command. I'm aware that most of -DFEATURE_* values are invalid but I could not find the right info about which features I can disable:

    cmake -DCMAKE_BUILD_TYPE=Release ^
          -DCMAKE_INSTALL_PREFIX=%install_dir% ^
          -G "Ninja" ^
          -DBUILD_SHARED_LIBS=On ^
          -DQT_BUILD_TESTS=Off ^
          -DQT_BUILD_EXAMPLES=Off ^
          -DQT_INSTAL_EXAMPLE_SOURCES=Off ^
          -DFEATURE_ssl=Off ^
          -DFEATURE_gtk3=Off ^
          -DFEATURE_icu=Off ^
          -DFEATURE_glib=Off ^
          -DFEATURE_pcre2=On ^
          -DFEATURE_schannel=Off ^
          -DFEATURE_securetransport=Off ^
          -DFEATURE_sctp=Off ^
          -DFEATURE_libproxy=Off ^
          -DFEATURE_system_proxies=Off ^
          -DFEATURE_cups=Off ^
          -DFEATURE_qtwebengine_build=Off ^
          -DFEATURE_quick_animatedimage=Off ^
          -DFEATURE_quick_canvas=Off ^
          -DFEATURE_quick_designer=Off ^
          -DFEATURE_quick_draganddrop=Off ^
          -DFEATURE_quick_flipable=Off ^
          -DFEATURE_quick_gridview=Off ^
          -DFEATURE_quick_listview=Off ^
          -DFEATURE_quick_particles=Off ^
          -DFEATURE_quick_path=Off ^
          -DFEATURE_quick_pathview=Off ^
          -DFEATURE_quick_pixmap_cache_threaded_download=Off ^
          -DFEATURE_quick_positioners=Off ^
          -DFEATURE_quick_repeater=Off ^
          -DFEATURE_quick_shadereffect=Off ^
          -DFEATURE_quick_sprite=Off ^
          -DFEATURE_quick_tableview=Off ^
          -DFEATURE_quick_treeview=Off ^
          -DFEATURE_quickcontrols2_fluentwinui3=Off ^
          -DFEATURE_quickcontrols2_fusion=Off ^
          -DFEATURE_quickcontrols2_imagine=Off ^
          -DFEATURE_quickcontrols2_ios=Off ^
          -DFEATURE_quickcontrols2_macos=Off ^
          -DFEATURE_quickcontrols2_material=Off ^
          -DFEATURE_quickcontrols2_universal=Off ^
          -DFEATURE_quickcontrols2_windows=Off ^
          -DFEATURE_quicktemplates2_calendar=Off ^
          -DFEATURE_quicktemplates2_container=Off ^
          -DFEATURE_quicktemplates2_hover=Off ^
          -DFEATURE_quicktemplates2_multitouch=Off ^
          -DINPUT_SSL=no ^
          -DQT_SKIP_qtdoc=On ^
          -DQT_SKIP_qt3d=On ^
          -DQT_SKIP_qtactiveqt=On ^
          -DQT_SKIP_qtcanvas3d=On ^
          -DQT_SKIP_qtcharts=On ^
          -DQT_SKIP_qtconnectivity=On ^
          -DQT_SKIP_qtdatavis3d=On ^
          -DQT_SKIP_qtdeclarative=On ^
          -DQT_SKIP_qtdoc=On ^
          -DQT_SKIP_qtgamepad=On ^
          -DQT_SKIP_qtgraphicaleffects=On ^
          -DQT_SKIP_qtgraphs=On ^
          -DQT_SKIP_qtlocation=On ^
          -DQT_SKIP_qtnetworkauth=On ^
          -DQT_SKIP_qtpurchasing=On ^
          -DQT_SKIP_qtquickcontrols=On ^
          -DQT_SKIP_qtquickcontrols2=On ^
          -DQT_SKIP_qtremoteobjects=On ^
          -DQT_SKIP_qtscript=On ^
          -DQT_SKIP_qtscxml=On ^
          -DQT_SKIP_qtserialbus=On ^
          -DQT_SKIP_qtserialport=On ^
          -DQT_SKIP_qtspeech=On ^
          -DQT_SKIP_qtvirtualkeyboard=On ^
          -DQT_SKIP_qtwebchannel=On ^
          -DQT_SKIP_qtwebengine=On ^
          -DQT_SKIP_qtwebglplugin=On ^
          -DQT_SKIP_qtwebsockets=On ^
          -DQT_SKIP_qtwebview=On ^
          -DQT_SKIP_qtlottie=On ^
          -DQT_SKIP_qtmqtt=On ^
          -DQT_SKIP_qtopcua=On ^
          -DQT_SKIP_qtquicktimeline=On ^
          -DQT_SKIP_qtquick3d=On ^
          -DQT_SKIP_qtcoap=On ^
          -DQT_SKIP_qtpositioning=On ^
          -DQT_SKIP_qtsensors=On ^
          -DQT_SKIP_qtopengl=On ^
          -DQT_SKIP_qtquick3dphysics=On ^
          -DQT_SKIP_qtquickeffectmaker=On ^
          -DQT_SKIP_qtlanguageserver=On ^
          -DQT_SKIP_qthttpserver=On ^
          -DQT_SKIP_qt5compat=On ^
          ..
    
    Pl45m4P JKSHJ 2 Replies Last reply
    0
    • S snoriman

      Hi, I'm trying to create a minimal build on Windows and it seems that I'm doing something wrong. My goal is to build a minimal version. For example, I don't need Quick, WebEngine, etc. I've read through the configuration mapping file but it seems that using the -QT_SKIP_<name>=On doesn't have any effect.
      Does someone know how to create a minimal build on Windows, e.g. a way to disable options.

      For example when I start configuring the project I see that a large list of dependency checks are done for most of the modules I've disabled:

      -- Checking dependencies of submodule 'qtbase'
      -- Checking dependencies of submodule 'qtimageformats'
      -- Checking dependencies of submodule 'qtlanguageserver'
      -- Checking dependencies of submodule 'qtshadertools'
      -- Checking dependencies of submodule 'qtsvg'
      -- Checking dependencies of submodule 'qtdeclarative'
      -- Checking dependencies of submodule 'qtquicktimeline'
      -- Checking dependencies of submodule 'qtquick3d'
      -- Checking dependencies of submodule 'qtmultimedia'
      -- Checking dependencies of submodule 'qt3d'
      -- Checking dependencies of submodule 'qt5compat'
      -- Checking dependencies of submodule 'qtactiveqt'
      -- Checking dependencies of submodule 'qtcharts'
      -- Checking dependencies of submodule 'qtcoap'
      -- Checking dependencies of submodule 'qtconnectivity'
      -- Checking dependencies of submodule 'qtdatavis3d'
      -- Checking dependencies of submodule 'qtgraphs'
      -- Checking dependencies of submodule 'qtwebsockets'
      -- Checking dependencies of submodule 'qthttpserver'
      -- Checking dependencies of submodule 'qtserialport'
      -- Checking dependencies of submodule 'qtpositioning'
      -- Checking dependencies of submodule 'qtlocation'
      -- Checking dependencies of submodule 'qttools'
      -- Checking dependencies of submodule 'qtwebchannel'
      -- Checking dependencies of submodule 'qtwebengine'
      -- Checking dependencies of submodule 'qtdoc'
      -- Checking dependencies of submodule 'qtgrpc'
      -- Checking dependencies of submodule 'qtlottie'
      -- Checking dependencies of submodule 'qtmqtt'
      -- Checking dependencies of submodule 'qtnetworkauth'
      -- Checking dependencies of submodule 'qtopcua'
      -- Checking dependencies of submodule 'qtquick3dphysics'
      -- Checking dependencies of submodule 'qtquickeffectmaker'
      -- Checking dependencies of submodule 'qtremoteobjects'
      -- Checking dependencies of submodule 'qtscxml'
      -- Checking dependencies of submodule 'qtsensors'
      -- Checking dependencies of submodule 'qtserialbus'
      -- Checking dependencies of submodule 'qtspeech'
      -- Checking dependencies of submodule 'qttranslations'
      -- Checking dependencies of submodule 'qtvirtualkeyboard'
      -- Checking dependencies of submodule 'qtwayland'
      -- Checking dependencies of submodule 'qtwebview'
      

      Currently I'm using this monster of a cmake command. I'm aware that most of -DFEATURE_* values are invalid but I could not find the right info about which features I can disable:

      cmake -DCMAKE_BUILD_TYPE=Release ^
            -DCMAKE_INSTALL_PREFIX=%install_dir% ^
            -G "Ninja" ^
            -DBUILD_SHARED_LIBS=On ^
            -DQT_BUILD_TESTS=Off ^
            -DQT_BUILD_EXAMPLES=Off ^
            -DQT_INSTAL_EXAMPLE_SOURCES=Off ^
            -DFEATURE_ssl=Off ^
            -DFEATURE_gtk3=Off ^
            -DFEATURE_icu=Off ^
            -DFEATURE_glib=Off ^
            -DFEATURE_pcre2=On ^
            -DFEATURE_schannel=Off ^
            -DFEATURE_securetransport=Off ^
            -DFEATURE_sctp=Off ^
            -DFEATURE_libproxy=Off ^
            -DFEATURE_system_proxies=Off ^
            -DFEATURE_cups=Off ^
            -DFEATURE_qtwebengine_build=Off ^
            -DFEATURE_quick_animatedimage=Off ^
            -DFEATURE_quick_canvas=Off ^
            -DFEATURE_quick_designer=Off ^
            -DFEATURE_quick_draganddrop=Off ^
            -DFEATURE_quick_flipable=Off ^
            -DFEATURE_quick_gridview=Off ^
            -DFEATURE_quick_listview=Off ^
            -DFEATURE_quick_particles=Off ^
            -DFEATURE_quick_path=Off ^
            -DFEATURE_quick_pathview=Off ^
            -DFEATURE_quick_pixmap_cache_threaded_download=Off ^
            -DFEATURE_quick_positioners=Off ^
            -DFEATURE_quick_repeater=Off ^
            -DFEATURE_quick_shadereffect=Off ^
            -DFEATURE_quick_sprite=Off ^
            -DFEATURE_quick_tableview=Off ^
            -DFEATURE_quick_treeview=Off ^
            -DFEATURE_quickcontrols2_fluentwinui3=Off ^
            -DFEATURE_quickcontrols2_fusion=Off ^
            -DFEATURE_quickcontrols2_imagine=Off ^
            -DFEATURE_quickcontrols2_ios=Off ^
            -DFEATURE_quickcontrols2_macos=Off ^
            -DFEATURE_quickcontrols2_material=Off ^
            -DFEATURE_quickcontrols2_universal=Off ^
            -DFEATURE_quickcontrols2_windows=Off ^
            -DFEATURE_quicktemplates2_calendar=Off ^
            -DFEATURE_quicktemplates2_container=Off ^
            -DFEATURE_quicktemplates2_hover=Off ^
            -DFEATURE_quicktemplates2_multitouch=Off ^
            -DINPUT_SSL=no ^
            -DQT_SKIP_qtdoc=On ^
            -DQT_SKIP_qt3d=On ^
            -DQT_SKIP_qtactiveqt=On ^
            -DQT_SKIP_qtcanvas3d=On ^
            -DQT_SKIP_qtcharts=On ^
            -DQT_SKIP_qtconnectivity=On ^
            -DQT_SKIP_qtdatavis3d=On ^
            -DQT_SKIP_qtdeclarative=On ^
            -DQT_SKIP_qtdoc=On ^
            -DQT_SKIP_qtgamepad=On ^
            -DQT_SKIP_qtgraphicaleffects=On ^
            -DQT_SKIP_qtgraphs=On ^
            -DQT_SKIP_qtlocation=On ^
            -DQT_SKIP_qtnetworkauth=On ^
            -DQT_SKIP_qtpurchasing=On ^
            -DQT_SKIP_qtquickcontrols=On ^
            -DQT_SKIP_qtquickcontrols2=On ^
            -DQT_SKIP_qtremoteobjects=On ^
            -DQT_SKIP_qtscript=On ^
            -DQT_SKIP_qtscxml=On ^
            -DQT_SKIP_qtserialbus=On ^
            -DQT_SKIP_qtserialport=On ^
            -DQT_SKIP_qtspeech=On ^
            -DQT_SKIP_qtvirtualkeyboard=On ^
            -DQT_SKIP_qtwebchannel=On ^
            -DQT_SKIP_qtwebengine=On ^
            -DQT_SKIP_qtwebglplugin=On ^
            -DQT_SKIP_qtwebsockets=On ^
            -DQT_SKIP_qtwebview=On ^
            -DQT_SKIP_qtlottie=On ^
            -DQT_SKIP_qtmqtt=On ^
            -DQT_SKIP_qtopcua=On ^
            -DQT_SKIP_qtquicktimeline=On ^
            -DQT_SKIP_qtquick3d=On ^
            -DQT_SKIP_qtcoap=On ^
            -DQT_SKIP_qtpositioning=On ^
            -DQT_SKIP_qtsensors=On ^
            -DQT_SKIP_qtopengl=On ^
            -DQT_SKIP_qtquick3dphysics=On ^
            -DQT_SKIP_qtquickeffectmaker=On ^
            -DQT_SKIP_qtlanguageserver=On ^
            -DQT_SKIP_qthttpserver=On ^
            -DQT_SKIP_qt5compat=On ^
            ..
      
      Pl45m4P Offline
      Pl45m4P Offline
      Pl45m4
      wrote last edited by Pl45m4
      #2

      @snoriman said in Building Qt from source on Windows:

      Does someone know how to create a minimal build on Windows

      Isn't including only what you acutally need/want easier than excluding everything you do not need? :))

      • https://doc.qt.io/qt-6/getting-sources-from-git.html#initializing-the-qt-submodules

      "Minimal" would only require qtbase... how minimal you really wanna go depends on what you are trying to do later.

      You can always add +build modules later and re-configure your installation


      If debugging is the process of removing software bugs, then programming must be the process of putting them in.

      ~E. W. Dijkstra

      1 Reply Last reply
      2
      • S snoriman

        Hi, I'm trying to create a minimal build on Windows and it seems that I'm doing something wrong. My goal is to build a minimal version. For example, I don't need Quick, WebEngine, etc. I've read through the configuration mapping file but it seems that using the -QT_SKIP_<name>=On doesn't have any effect.
        Does someone know how to create a minimal build on Windows, e.g. a way to disable options.

        For example when I start configuring the project I see that a large list of dependency checks are done for most of the modules I've disabled:

        -- Checking dependencies of submodule 'qtbase'
        -- Checking dependencies of submodule 'qtimageformats'
        -- Checking dependencies of submodule 'qtlanguageserver'
        -- Checking dependencies of submodule 'qtshadertools'
        -- Checking dependencies of submodule 'qtsvg'
        -- Checking dependencies of submodule 'qtdeclarative'
        -- Checking dependencies of submodule 'qtquicktimeline'
        -- Checking dependencies of submodule 'qtquick3d'
        -- Checking dependencies of submodule 'qtmultimedia'
        -- Checking dependencies of submodule 'qt3d'
        -- Checking dependencies of submodule 'qt5compat'
        -- Checking dependencies of submodule 'qtactiveqt'
        -- Checking dependencies of submodule 'qtcharts'
        -- Checking dependencies of submodule 'qtcoap'
        -- Checking dependencies of submodule 'qtconnectivity'
        -- Checking dependencies of submodule 'qtdatavis3d'
        -- Checking dependencies of submodule 'qtgraphs'
        -- Checking dependencies of submodule 'qtwebsockets'
        -- Checking dependencies of submodule 'qthttpserver'
        -- Checking dependencies of submodule 'qtserialport'
        -- Checking dependencies of submodule 'qtpositioning'
        -- Checking dependencies of submodule 'qtlocation'
        -- Checking dependencies of submodule 'qttools'
        -- Checking dependencies of submodule 'qtwebchannel'
        -- Checking dependencies of submodule 'qtwebengine'
        -- Checking dependencies of submodule 'qtdoc'
        -- Checking dependencies of submodule 'qtgrpc'
        -- Checking dependencies of submodule 'qtlottie'
        -- Checking dependencies of submodule 'qtmqtt'
        -- Checking dependencies of submodule 'qtnetworkauth'
        -- Checking dependencies of submodule 'qtopcua'
        -- Checking dependencies of submodule 'qtquick3dphysics'
        -- Checking dependencies of submodule 'qtquickeffectmaker'
        -- Checking dependencies of submodule 'qtremoteobjects'
        -- Checking dependencies of submodule 'qtscxml'
        -- Checking dependencies of submodule 'qtsensors'
        -- Checking dependencies of submodule 'qtserialbus'
        -- Checking dependencies of submodule 'qtspeech'
        -- Checking dependencies of submodule 'qttranslations'
        -- Checking dependencies of submodule 'qtvirtualkeyboard'
        -- Checking dependencies of submodule 'qtwayland'
        -- Checking dependencies of submodule 'qtwebview'
        

        Currently I'm using this monster of a cmake command. I'm aware that most of -DFEATURE_* values are invalid but I could not find the right info about which features I can disable:

        cmake -DCMAKE_BUILD_TYPE=Release ^
              -DCMAKE_INSTALL_PREFIX=%install_dir% ^
              -G "Ninja" ^
              -DBUILD_SHARED_LIBS=On ^
              -DQT_BUILD_TESTS=Off ^
              -DQT_BUILD_EXAMPLES=Off ^
              -DQT_INSTAL_EXAMPLE_SOURCES=Off ^
              -DFEATURE_ssl=Off ^
              -DFEATURE_gtk3=Off ^
              -DFEATURE_icu=Off ^
              -DFEATURE_glib=Off ^
              -DFEATURE_pcre2=On ^
              -DFEATURE_schannel=Off ^
              -DFEATURE_securetransport=Off ^
              -DFEATURE_sctp=Off ^
              -DFEATURE_libproxy=Off ^
              -DFEATURE_system_proxies=Off ^
              -DFEATURE_cups=Off ^
              -DFEATURE_qtwebengine_build=Off ^
              -DFEATURE_quick_animatedimage=Off ^
              -DFEATURE_quick_canvas=Off ^
              -DFEATURE_quick_designer=Off ^
              -DFEATURE_quick_draganddrop=Off ^
              -DFEATURE_quick_flipable=Off ^
              -DFEATURE_quick_gridview=Off ^
              -DFEATURE_quick_listview=Off ^
              -DFEATURE_quick_particles=Off ^
              -DFEATURE_quick_path=Off ^
              -DFEATURE_quick_pathview=Off ^
              -DFEATURE_quick_pixmap_cache_threaded_download=Off ^
              -DFEATURE_quick_positioners=Off ^
              -DFEATURE_quick_repeater=Off ^
              -DFEATURE_quick_shadereffect=Off ^
              -DFEATURE_quick_sprite=Off ^
              -DFEATURE_quick_tableview=Off ^
              -DFEATURE_quick_treeview=Off ^
              -DFEATURE_quickcontrols2_fluentwinui3=Off ^
              -DFEATURE_quickcontrols2_fusion=Off ^
              -DFEATURE_quickcontrols2_imagine=Off ^
              -DFEATURE_quickcontrols2_ios=Off ^
              -DFEATURE_quickcontrols2_macos=Off ^
              -DFEATURE_quickcontrols2_material=Off ^
              -DFEATURE_quickcontrols2_universal=Off ^
              -DFEATURE_quickcontrols2_windows=Off ^
              -DFEATURE_quicktemplates2_calendar=Off ^
              -DFEATURE_quicktemplates2_container=Off ^
              -DFEATURE_quicktemplates2_hover=Off ^
              -DFEATURE_quicktemplates2_multitouch=Off ^
              -DINPUT_SSL=no ^
              -DQT_SKIP_qtdoc=On ^
              -DQT_SKIP_qt3d=On ^
              -DQT_SKIP_qtactiveqt=On ^
              -DQT_SKIP_qtcanvas3d=On ^
              -DQT_SKIP_qtcharts=On ^
              -DQT_SKIP_qtconnectivity=On ^
              -DQT_SKIP_qtdatavis3d=On ^
              -DQT_SKIP_qtdeclarative=On ^
              -DQT_SKIP_qtdoc=On ^
              -DQT_SKIP_qtgamepad=On ^
              -DQT_SKIP_qtgraphicaleffects=On ^
              -DQT_SKIP_qtgraphs=On ^
              -DQT_SKIP_qtlocation=On ^
              -DQT_SKIP_qtnetworkauth=On ^
              -DQT_SKIP_qtpurchasing=On ^
              -DQT_SKIP_qtquickcontrols=On ^
              -DQT_SKIP_qtquickcontrols2=On ^
              -DQT_SKIP_qtremoteobjects=On ^
              -DQT_SKIP_qtscript=On ^
              -DQT_SKIP_qtscxml=On ^
              -DQT_SKIP_qtserialbus=On ^
              -DQT_SKIP_qtserialport=On ^
              -DQT_SKIP_qtspeech=On ^
              -DQT_SKIP_qtvirtualkeyboard=On ^
              -DQT_SKIP_qtwebchannel=On ^
              -DQT_SKIP_qtwebengine=On ^
              -DQT_SKIP_qtwebglplugin=On ^
              -DQT_SKIP_qtwebsockets=On ^
              -DQT_SKIP_qtwebview=On ^
              -DQT_SKIP_qtlottie=On ^
              -DQT_SKIP_qtmqtt=On ^
              -DQT_SKIP_qtopcua=On ^
              -DQT_SKIP_qtquicktimeline=On ^
              -DQT_SKIP_qtquick3d=On ^
              -DQT_SKIP_qtcoap=On ^
              -DQT_SKIP_qtpositioning=On ^
              -DQT_SKIP_qtsensors=On ^
              -DQT_SKIP_qtopengl=On ^
              -DQT_SKIP_qtquick3dphysics=On ^
              -DQT_SKIP_qtquickeffectmaker=On ^
              -DQT_SKIP_qtlanguageserver=On ^
              -DQT_SKIP_qthttpserver=On ^
              -DQT_SKIP_qt5compat=On ^
              ..
        
        JKSHJ Offline
        JKSHJ Offline
        JKSH
        Moderators
        wrote last edited by
        #3

        Hi, and welcome!

        @snoriman said in Building Qt from source on Windows:

        Currently I'm using this monster of a cmake command.

        Using the configure.bat script is a lot simpler: https://doc.qt.io/qt-6/windows-building.html#step-3-building-the-qt-libraries-and-tools

        You probably want configure.bat -release -submodules qtbase -no-feature-XYZ ...

        See also:

        • https://doc.qt.io/qt-6/configure-options.html#modules-and-features
        • https://www.qt.io/blog/reducing-binary-size-of-qt-applications-with-qt-6.8-part-2-coffee-machine-example

        WARNING: After disabling features, there is no guarantee that Qt will build successfully anymore. You might need to patch the code manually to add some missing #ifdefs

        Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

        1 Reply Last reply
        1
        • S Offline
          S Offline
          snoriman
          wrote last edited by
          #4

          Thanks @Pl45m4!

          Yes, it would be great if I could only include what I wanted. Where can I find a list of the possible options/modules? And how can I determine what I need. I mean, I want to create an app with some buttons, text input and OpenGL.

          Thanks for the link to initializing the qt submodules!

          Christian EhrlicherC 1 Reply Last reply
          0
          • S snoriman

            Thanks @Pl45m4!

            Yes, it would be great if I could only include what I wanted. Where can I find a list of the possible options/modules? And how can I determine what I need. I mean, I want to create an app with some buttons, text input and OpenGL.

            Thanks for the link to initializing the qt submodules!

            Christian EhrlicherC Offline
            Christian EhrlicherC Offline
            Christian Ehrlicher
            Lifetime Qt Champion
            wrote last edited by
            #5

            @snoriman said in Building Qt from source on Windows:

            And how can I determine what I need. I

            Since you know which classes you want to use, look in their documentation to see to which module it belongs.

            But tbh - why this all? What do you think you gain here?

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

            S 1 Reply Last reply
            0
            • Christian EhrlicherC Christian Ehrlicher

              @snoriman said in Building Qt from source on Windows:

              And how can I determine what I need. I

              Since you know which classes you want to use, look in their documentation to see to which module it belongs.

              But tbh - why this all? What do you think you gain here?

              S Offline
              S Offline
              snoriman
              wrote last edited by
              #6

              @Christian-Ehrlicher Thanks.

              I want to be able to build my project automatically w/o the need to manually go through install wizards which means the install app is not really an option. It would be great if I could simply download the binaries of Qt but there doesn't seem to be an option that allows me to do that automatically via a script.

              Pl45m4P SGaistS 2 Replies Last reply
              0
              • S snoriman

                @Christian-Ehrlicher Thanks.

                I want to be able to build my project automatically w/o the need to manually go through install wizards which means the install app is not really an option. It would be great if I could simply download the binaries of Qt but there doesn't seem to be an option that allows me to do that automatically via a script.

                Pl45m4P Offline
                Pl45m4P Offline
                Pl45m4
                wrote last edited by
                #7

                @snoriman

                Like here:
                Zipped Qt Sources by module
                ?


                If debugging is the process of removing software bugs, then programming must be the process of putting them in.

                ~E. W. Dijkstra

                S 1 Reply Last reply
                0
                • Christian EhrlicherC Offline
                  Christian EhrlicherC Offline
                  Christian Ehrlicher
                  Lifetime Qt Champion
                  wrote last edited by
                  #8

                  What has your project to do with Qt? Download it once and add it to your package later on? Why build Qt every time?

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

                  1 Reply Last reply
                  0
                  • Pl45m4P Pl45m4

                    @snoriman

                    Like here:
                    Zipped Qt Sources by module
                    ?

                    S Offline
                    S Offline
                    snoriman
                    wrote last edited by
                    #9

                    @Pl45m4 Thanks for the link, but those are only the sources, right?

                    1 Reply Last reply
                    0
                    • S snoriman

                      @Christian-Ehrlicher Thanks.

                      I want to be able to build my project automatically w/o the need to manually go through install wizards which means the install app is not really an option. It would be great if I could simply download the binaries of Qt but there doesn't seem to be an option that allows me to do that automatically via a script.

                      SGaistS Offline
                      SGaistS Offline
                      SGaist
                      Lifetime Qt Champion
                      wrote last edited by
                      #10

                      @snoriman hi,

                      The aqtinstall project seems to fit the description: command line installation of Qt.

                      Interested in AI ? www.idiap.ch
                      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                      1 Reply Last reply
                      0

                      • Login

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