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. Compiling Qt from sources
Forum Updated to NodeBB v4.3 + New Features

Compiling Qt from sources

Scheduled Pinned Locked Moved Solved General and Desktop
14 Posts 3 Posters 1.9k 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.
  • mrjjM Offline
    mrjjM Offline
    mrjj
    Lifetime Qt Champion
    wrote on last edited by
    #2

    Hi
    What version of mingw ?
    I think mingw do not have support for std::recursive_mutex
    or at least not in the version that comes with 5.9.2
    Or at least thats what i found on google.
    But most post are few years old.

    ODБOïO 1 Reply Last reply
    3
    • mrjjM mrjj

      Hi
      What version of mingw ?
      I think mingw do not have support for std::recursive_mutex
      or at least not in the version that comes with 5.9.2
      Or at least thats what i found on google.
      But most post are few years old.

      ODБOïO Offline
      ODБOïO Offline
      ODБOï
      wrote on last edited by
      #3

      Hi,
      Thx for answer
      @mrjj said in Compiling Qt from sources:

      What version of mingw ?

      This is not a version that comes with Qt but a separate installation of minGw, is this bad ?

      mingw32-make - v
      output :
      GNU Make 4.2.1
      Built for x86_64-w64-mingw32

      I will try to :
      use more recent verions
      use minGw witch comes with qt tools

      Thank you

      mrjjM 1 Reply Last reply
      0
      • ODБOïO ODБOï

        Hi,
        Thx for answer
        @mrjj said in Compiling Qt from sources:

        What version of mingw ?

        This is not a version that comes with Qt but a separate installation of minGw, is this bad ?

        mingw32-make - v
        output :
        GNU Make 4.2.1
        Built for x86_64-w64-mingw32

        I will try to :
        use more recent verions
        use minGw witch comes with qt tools

        Thank you

        mrjjM Offline
        mrjjM Offline
        mrjj
        Lifetime Qt Champion
        wrote on last edited by
        #4

        @LeLev
        Hi
        Its not bad pr se, but i did burn my fingers using other version
        that the one Qt provides. One issue can be 64 bit but it seems you are using 32.
        so i would try the included mingw.
        I know the test is not trivial due to huge compile times:)

        ODБOïO 1 Reply Last reply
        3
        • mrjjM mrjj

          @LeLev
          Hi
          Its not bad pr se, but i did burn my fingers using other version
          that the one Qt provides. One issue can be 64 bit but it seems you are using 32.
          so i would try the included mingw.
          I know the test is not trivial due to huge compile times:)

          ODБOïO Offline
          ODБOïO Offline
          ODБOï
          wrote on last edited by
          #5

          @mrjj Thaks, i will try this tomorrow

          ODБOïO 1 Reply Last reply
          0
          • ODБOïO ODБOï

            @mrjj Thaks, i will try this tomorrow

            ODБOïO Offline
            ODБOïO Offline
            ODБOï
            wrote on last edited by ODБOï
            #6

            hi @mrjj

            6 houres ans 20 minutes and it is still running, is this normal ?

            Intel Core i5-6500 / 3.20 GHz
            8 Go RAM

            mrjjM 1 Reply Last reply
            0
            • ODБOïO ODБOï

              hi @mrjj

              6 houres ans 20 minutes and it is still running, is this normal ?

              Intel Core i5-6500 / 3.20 GHz
              8 Go RAM

              mrjjM Offline
              mrjjM Offline
              mrjj
              Lifetime Qt Champion
              wrote on last edited by
              #7

              @LeLev
              thats a bit long. does it uses all cores ?
              i mean did u use the -j option ?

              ODБOïO 1 Reply Last reply
              4
              • mrjjM mrjj

                @LeLev
                thats a bit long. does it uses all cores ?
                i mean did u use the -j option ?

                ODБOïO Offline
                ODБOïO Offline
                ODБOï
                wrote on last edited by
                #8

                @mrjj No.. Sadly i have not used -j , next time, for sure i will use it, Thank you

                1 Reply Last reply
                0
                • ODБOïO Offline
                  ODБOïO Offline
                  ODБOï
                  wrote on last edited by ODБOï
                  #9

                  Hi @mrjj, finally done!

                  But just a empty qtquick App 600Mo ?

                  I knew static makes the executable bigger but i was not expecting 600mo. There must be some techniques to optimise the executable size, no ?

                  edit : actually that was a debug build, release version is 20Mo

                  @mrjj meny thx for help

                  mrjjM 1 Reply Last reply
                  1
                  • ODБOïO ODБOï

                    Hi @mrjj, finally done!

                    But just a empty qtquick App 600Mo ?

                    I knew static makes the executable bigger but i was not expecting 600mo. There must be some techniques to optimise the executable size, no ?

                    edit : actually that was a debug build, release version is 20Mo

                    @mrjj meny thx for help

                    mrjjM Offline
                    mrjjM Offline
                    mrjj
                    Lifetime Qt Champion
                    wrote on last edited by
                    #10

                    @LeLev
                    Good work :)
                    and yes, debug builds are amazingly fat.

                    ODБOïO 1 Reply Last reply
                    2
                    • mrjjM mrjj

                      @LeLev
                      Good work :)
                      and yes, debug builds are amazingly fat.

                      ODБOïO Offline
                      ODБOïO Offline
                      ODБOï
                      wrote on last edited by
                      #11

                      @mrjj Hi,

                      I have a last question pls :

                      The folder where i installed Qt static version has now size of 638 Go ! is this 'normal' ?

                      mrjjM 1 Reply Last reply
                      0
                      • ODБOïO ODБOï

                        @mrjj Hi,

                        I have a last question pls :

                        The folder where i installed Qt static version has now size of 638 Go ! is this 'normal' ?

                        mrjjM Offline
                        mrjjM Offline
                        mrjj
                        Lifetime Qt Champion
                        wrote on last edited by mrjj
                        #12

                        @LeLev
                        I would check where you had build folder. it most like is in that folder too.
                        Seems a bit big :)
                        So there might be tons of .o files etc remaining.

                        1 Reply Last reply
                        3
                        • ODБOïO Offline
                          ODБOïO Offline
                          ODБOï
                          wrote on last edited by
                          #13

                          Hi
                          i have saved 300Go by deleting \mingw53_32_static\examples

                          1 Reply Last reply
                          1
                          • SGaistS Offline
                            SGaistS Offline
                            SGaist
                            Lifetime Qt Champion
                            wrote on last edited by
                            #14

                            Hi,

                            Always build with -nomake tests -nomake examples especially when doing a static build.

                            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
                            3

                            • Login

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