Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. [Outdated: Using 5.2.1 with QTC 3.0.1 now] Compile Qt 5.2 Qt Creator 3.0 on Win 7 / MingW32: Some Probs:
Qt 6.11 is out! See what's new in the release blog

[Outdated: Using 5.2.1 with QTC 3.0.1 now] Compile Qt 5.2 Qt Creator 3.0 on Win 7 / MingW32: Some Probs:

Scheduled Pinned Locked Moved Installation and Deployment
35 Posts 3 Posters 16.7k Views 1 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.
  • MeerMusikM Offline
    MeerMusikM Offline
    MeerMusik
    wrote on last edited by
    #21

    [quote author="sierdzio" date="1386868294"][quote author="MeerMusik" date="1386863134"]Compile Time is most around 6 Hours for everything. I will keep this Post updated as needed - With many Luck in 6 Hours when everything is done without Errors fingerscrossedtiltheybroke
    [/quote]

    Woah, maybe it's time for PC upgrade :) On my quad-core (+HT) it takes 20-40 minutes to compile Qt (depending on configure flags and the compiler). It will be slower on Windows, but still much more convenient than 6 hours ;) The mingw-make should support "-j numberOfJobs" flag that can be utilised to compile using all CPU cores.[/quote]

    Good morning.

    No i mean it. If i compile Qt with everything (including Examples, Tests etc.) it takes 5-6 Hours. But even when i compile without Examples and Tests, it takes still 4-5 Hours.

    My Specs:
    OS: Win 7 x64 on HDD1
    RAM: 16 GB DDR3 No ECC
    Pagefile (Swapfile called under Linux if i remember correct): Set to a Fixed Value of 6192 MB on HDD1
    CPU: AMD Phenom II X4 965 Black Edition, 3.42 GHz
    The CPU is not as the good in Performance like some Intel CPUs when it comes to Encoding Video, Audio etc. Maybe this is also applicable for Compiling. I dont know.

    Source Code is on HDD2.
    Prefix / Target Folders are on HDD1.
    HDD 1 is a little older with 16 MB Cache and S-ATA-2. HDD 2 has 32 MB Cache and is S-ATA-3.
    Did not have the I/O Values at Hand.

    I am Compiling without Special Optimization Parameters. This is something i will look into at a later time. Had enough trouble the last Days to get the Standard Stuff to work ;)

    Anyway: After i have done some preparations, this time Qt compiled without any Errors. And for Qt Creator: I added the QTDIR Paths to System and User Environment and restarted my PC - just be sure.

    Parameter for qmake are: -r prefix=c:\qt-creator config+=debug_and_release config+=build_all <PathToQtCreator.Pro>

    This time, qmake does not saying anything about missing Modules in Utils.pro -> Scripts.

    Creator is compiling right now. This time it should end better now :)

    Thanks again for your Help and Time!
    Oliver

    1 Reply Last reply
    0
    • MeerMusikM Offline
      MeerMusikM Offline
      MeerMusik
      wrote on last edited by
      #22

      Ok the compilation of Qt Creator failed again because of that QBS thing.
      Will try something else...

      1 Reply Last reply
      0
      • MeerMusikM Offline
        MeerMusikM Offline
        MeerMusik
        wrote on last edited by
        #23

        So i did that qmake recursive stuff with git and the qbs module is checked out - like in every try before. after that i did again using the Parameter

        "-r prefix=c:\qt-creator config+=debug_and_release config+=build_all <PathToQtCreator.Pro>" for qmake.

        Started compiling again...

        1 Reply Last reply
        0
        • MeerMusikM Offline
          MeerMusikM Offline
          MeerMusik
          wrote on last edited by
          #24

          And this time a new Compiler Error:

          "Plugin Metadata File "QMLDesigner.json" does not exist. Declaration will be ignored" :(

          First time this shows up. Time to ask the Oracle again...

          Edit 01: Such a nonsense. The Files DOES exist in C:\qt-creator\src\plugins\qmldesigner.
          What now??
          Edit 02: The File is missing in D:\qt-creator-opensource-src-3.0.0\qt-creator\src\plugins\qmldesigner so i copied the File into it and started mingw32-make again. Compiler runs but I hope that did not make it worse lol
          Edit 03: Great Compiler is done without any further Errors. But i have only Debug Files. Will try it again to get the Release Versions of the Files also.
          Edit 04: First Release Files are created while the Compiler is on the way. The Problem/Mistake was:

          I wrote "config+=debug_and_release config+=build_all" instead of "CONFIG+=debug_and_release CONFIG+=build_all" <- The Parameters with LowerCase made it in the Makefile but got ignored. Not sure if this is a Windows specific Problem - i am still too "noobish" ;)

          1 Reply Last reply
          0
          • MeerMusikM Offline
            MeerMusikM Offline
            MeerMusik
            wrote on last edited by
            #25

            At 09:01AM GMT+1 Compiler is done without any further Errors.
            Debug and Release Libs and DLLs are in Place.

            Have not tested yet if everything works. Must do this later - running out of time.

            Thanks again for helping and sharing Information :) If i have more Problems i will write again here. Should i have other Problems, i will create another Thread (if needed and if i cant get infos or help else where).

            Oliver

            1 Reply Last reply
            0
            • sierdzioS Offline
              sierdzioS Offline
              sierdzio
              Moderators
              wrote on last edited by
              #26

              Your determination is quite astounding :) Good luck, mate.

              (Z(:^

              1 Reply Last reply
              0
              • MeerMusikM Offline
                MeerMusikM Offline
                MeerMusik
                wrote on last edited by
                #27

                [quote author="sierdzio" date="1386922264"]Your determination is quite astounding :) Good luck, mate.[/quote]

                It still is there. Yeah Thanks :)

                I did a quick Check and Qt Creator cant find Files like QApplication and QWebView and even not QObject and QMainWindow. But the Files are in the Qt-Build Subfolders. Also if i load my Project it says "Unknown Module(s) in webkitwidgets". And in the UI Designer, the WebView Stuff is gone.

                Seems i need to build this manually even as i have build Qt with the -ICU Paramter and the Webkit and Webkit-Examples Folders are in Place.

                But i am not sure what i can do about the "Files not Found" - other than copy things from a to b.

                For Building the Webkit i will try these Instructions
                trac.webkit.org/wiki/BuildingQtOnWindows
                I hope after 1 Year that they are still valid.

                And for the (not really) missing Files: "Playtime!"

                I have come that far, now i want everything :)

                1 Reply Last reply
                0
                • MeerMusikM Offline
                  MeerMusikM Offline
                  MeerMusik
                  wrote on last edited by
                  #28

                  I tried to make Webkit and was forced to rename \Gnuwin32\bin\flex.exe to win_flex.exe (WebKit is looking for win_flex.exe which leads to an error). And i need many many other things too like fonconfig, SQLite and so on,

                  This will take a while...

                  1 Reply Last reply
                  0
                  • MeerMusikM Offline
                    MeerMusikM Offline
                    MeerMusik
                    wrote on last edited by
                    #29

                    Compiling Webkit now with above Instructions.

                    Question: Is there a Parameter for mingw32-make (or the other build tools) to build the Webkit only?

                    Edit 01: Compiler Stops with Error 1: "Win_Flex unknown flag '-' and "[generated/glslang_lex.cpp] Error 1"

                    1 Reply Last reply
                    0
                    • sierdzioS Offline
                      sierdzioS Offline
                      sierdzio
                      Moderators
                      wrote on last edited by
                      #30

                      [quote author="MeerMusik" date="1386939965"]Question: Is there a Parameter for mingw32-make (or the other build tools) to build the Webkit only?[/quote]

                      @
                      cd qtwebkit
                      mingw32-make
                      @

                      Or in root dir:
                      @
                      mingw32-make webkit
                      @

                      (Z(:^

                      1 Reply Last reply
                      0
                      • MeerMusikM Offline
                        MeerMusikM Offline
                        MeerMusik
                        wrote on last edited by
                        #31

                        [quote author="sierdzio" date="1386940283"][quote author="MeerMusik" date="1386939965"]Question: Is there a Parameter for mingw32-make (or the other build tools) to build the Webkit only?[/quote]

                        @
                        cd qtwebkit
                        mingw32-make
                        @

                        Or in root dir:
                        @
                        mingw32-make webkit
                        @[/quote]

                        Thanks. Thats simpler than i thought.

                        I tried that and get "*** no rule to make target webkit. stop"

                        Time to clean things up - again.

                        1 Reply Last reply
                        0
                        • MeerMusikM Offline
                          MeerMusikM Offline
                          MeerMusik
                          wrote on last edited by
                          #32

                          Sorry its me again: I have run qmake and i get the configuration warning

                          "! Qt not configured to use system libjpeg, QImageDecoder will Decode JPEG images" and
                          ! Qt not configured to use system libpng, QImageDecoder will Decode PNG images" <<-- Can ignore this or must i prepare my Apps in future some how?

                          Thanks!

                          1 Reply Last reply
                          0
                          • sierdzioS Offline
                            sierdzioS Offline
                            sierdzio
                            Moderators
                            wrote on last edited by
                            #33

                            Most probably you can ignore this.

                            (Z(:^

                            1 Reply Last reply
                            0
                            • MeerMusikM Offline
                              MeerMusikM Offline
                              MeerMusik
                              wrote on last edited by
                              #34

                              Hello Again.

                              I decided to build Qt 5.2 again - and this time Webkit got compiled and QWebview is shown in Designer.

                              But: Compiling Qt Creator 3.0:
                              I am back to that dumb Problem that qmake says
                              "Utils.pro -> Missing Module(s) in Qt: Script". No matter what i try.

                              Even when i check this QBS Stuff out with Git.
                              And when i do qmake without "-r", everything seems to be fine and MingW32-make builds the "AggregationSystemD.dll" "ExtensionSystemD.dll". But he crashs at "UtilsD.dll"

                              Get an Error when he tries to built:
                              "Unknown Module(s) in Qt: Script"

                              Well its Playtime again.
                              EDIT 01: Erased QtScript Folder and running mingw32-make again...
                              EDIT 02: QtScript compiled without Error but compiling Qt Creator still dont work

                              1 Reply Last reply
                              0
                              • MeerMusikM Offline
                                MeerMusikM Offline
                                MeerMusik
                                wrote on last edited by
                                #35

                                Hello and good morning Forum :)

                                Oh man I cant believe it: I have lost 1.5 Days for looking through the qt-project Forum, Google and many many other Sites.

                                And the Reason why i cant Compile Qt Creator ["Utils.pro -> Unknown Module(s) in Qt: Script"] is that simple (and also that dumb):

                                After successfully building Qt 5.2, make sure to run
                                "mingw32-make install" (just be sure everything is in Place) - i had some probs even with the Parameter "-developer-build".

                                And then
                                "mingw32-make clean"

                                to remove the temporary Files or you [well at least i ;)] cant compile Qt Creator.

                                One negative thing I have read about the Clean Parameter: It will also remove the Debugger Symbols and some People had to recompile Qt completely. Not sure if i can avoid this by putting the Release and Debug Libraries (or the whole Qt "Kit") into seperate Folders.

                                But this is something i will try in February 2014 when the 5.2.1 Final is (expected [planned to be]) released.

                                The noob is now going to waste more time for compiling Qt Creator ;)
                                Start compiling at 11:41AM GMT+1

                                Have a nice Day everyone :)
                                Update 01:

                                First Compilation Try failed ("-lqbscored1" error thingy). I have tried the Variant with "git clone --recursive" and it works. Now setting up the System. Will report back if i run into more Probs :)

                                Update 02: Anothing i have learnt: Dont be an Idiot like me and run "mingw32-make docs" and "mingw32-make translations" BEFORE You run "mingw32-make clean" or the Documentation for Qt and Creator cant be build. Luckily i did a Full Backup of the Qt Folder before i ran "mingw32-make clean".

                                My Steps for doing this Stuff in the Future:
                                @
                                1.) First compile Qt
                                2.) Run "mingw32-make"
                                When Qt is successfully compiled:
                                3.) Run "mingw32-make docs"
                                4.) Run "mingw32-make translations"

                                When its done witout Errors:
                                5.) Compile Qt Creator
                                6.) redo Steps 3 and 4 (but this time while being in the Qt Creator Folder of course)
                                7.) Start Qt Creator and Happy coding :)
                                @

                                I wish you all a peaceful Sunday evening and a wonderful start in the new Week.
                                Greetings
                                The Noob aka Oliver ;)

                                Edit 03: Forget it. I ran into that long existing Bug, that i cant create the Documentation when i use "-prefix". Even i have used the Parameter "-developer-build". Trying to get things in order. Some how. Some Day. Maybe.

                                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