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. Qt 6 source folder too big after build
Forum Updated to NodeBB v4.3 + New Features

Qt 6 source folder too big after build

Scheduled Pinned Locked Moved Unsolved General and Desktop
4 Posts 2 Posters 368 Views 2 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.
  • D Offline
    D Offline
    Davide87
    wrote on 26 Nov 2024, 16:48 last edited by
    #1

    Hello everybody.

    I have beeing building Qt6 in static version on my PC following the instructions in this video: https://www.youtube.com/watch?v=2qsR8Dw8uzA

    I am working on windows and my procedure is

    1. Reach the C:\Qt\6.7.2\Src folder (after copying it for backup)
    2. Configure the Qt build with the command
    .\configure.bat -release -static -opensource -confirm-license -prefix C:\Qt\6.7.2\Build-Static -qt-libpng -skip qtandroidextras -skip qtcoap -skip qtdoc -skip qtgamepad -skip qtlocation -skip qtlottie -skip qtmqtt -skip qtmacextras -skip qtnetworkauth -skip qtopcua -skip qtpurchasing -skip qtquick3dphysics -skip qtquicktimeline -skip qtremoteobjects -skip qtscxml -skip qtsensors -skip qtserialbus -skip qtscript -skip qtspeech -skip qtvirtualkeyboard -skip qtwayland -skip qtwebglplugin -make libs -nomake tools -nomake examples -nomake tests
    
    1. Run cmake --build .

    The next step should be to run the command cmake --install .,but ath this point the Src folder has already become huge. Here is a screenshot of the Treesize software

    Senza titolo.png

    The folder Src - Copia is the Src folder copied prior the .\configure command. As yuo can see the source folder has grown from 4.5GB to 47GB.
    Is that normal? Am I doing something wrong?

    1 Reply Last reply
    0
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 26 Nov 2024, 20:11 last edited by
      #2

      Hi,

      Well, you are doing a static build so yes this is expected. You have all the build artifacts as well as all the Qt frameworks statically linked. Statically linked application and libraries are way bigger since they contain all the symbols they are using.

      By the way, you should do out of sources builds, this allows to better manage and cleanup the builds.

      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
      1
      • D Offline
        D Offline
        Davide87
        wrote on 27 Nov 2024, 08:38 last edited by
        #3

        Hi and thank you for the reply.
        What do you mean with "out of source builds"?

        1 Reply Last reply
        0
        • S Offline
          S Offline
          SGaist
          Lifetime Qt Champion
          wrote on 27 Nov 2024, 08:43 last edited by
          #4

          Literally: builds that happen out of the source tree.

          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

          1/4

          26 Nov 2024, 16:48

          • Login

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