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.6k 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
    #11

    [quote author="sierdzio" date="1386834411"][quote author="MeerMusik" date="1386833840"]Well this time a new Error (at least for me).

    Qt Creator Complies Error til:

    "... LD.exe cannot find -lqbscored1" < Whats this??[/quote]

    Looks like QBS is missing. But QtCreator should compile without it. Try running qmake without -r. Or check out QBS using git checkout --recursive. more info: "this page":http://qt-project.org/wiki/Building-Qt-Creator-from-Git.[/quote]

    Good morning.

    When the compiler runs, then it runs. And the most Problesm i run into, i could cure by questioning the Oracle aka Google.

    I need OpenSSL and therefore i have to compile it for my self anyway.

    I already thought about going with VS2012 but i want a real OpenSource Variant - which means MingW ;) [Yes i know because of some 3rdParty Stuff used by Qt that it is not "Real OpenSource" anymore].

    Ok i will try that.

    Have lost 4 Days of Trial and Error with some how "wrong" MingW Versions (even some of those which are mentioned on the qt-project site) and broken Branches already. A few hours more of test compiling does not worry me - not any more :)

    And: When the Final-Final Version comes i have to do it again. (Not when the Devs decide, that the 5.2 Stable from December 11 is the Final-Final...)

    Lets see what the Day brings. Time to take a nap at minimum.
    Thanks for your help. Much appreciated! :)
    Oliver

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

      Hello Forum.

      After i had the Problem with the QBS Module, i did the
      "qmake recursive" thingy.

      But now i get:

      -"Project Error: Unknown Module(s) in QT: Script"-

      -In which File(s) do i have to remove what? Please.-
      Nevermind @sierdzio already mentioned to do this without "-r"
      Mingw32-Make runs for a few seconds but complains about "scripts". Ok i try again from Step 1. Looks like my dumb newbie Fault for now.

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

        Mingw32-Make gives Error

        "Project Error: Unknown Module(s) in QT: Script"

        What do i have to remove now? Please! Thank You!

        Edit: Right after i compiled Qt 5.2 i run "mingw32-make install" <- is that the Problem??
        Edit 2: Sorry forgot to add the Info: This Problem regards to Utils.pro and the modules
        a.) sub-utils-make_first
        b.) sub-libs-make_first-ordered

        In \src\libs\utils is still a file called "utils.qbs"
        is that ok?

        Edit 3: Cleaned the Folders and unzipped the Source Code again. This time i run qmake without "-r" and does not the recursive stuff. Same Problem. My qmake Parameters are:

        qmake CONFIG+=debug_and_release CONFIG+=build_all d:\qt-creator-opensource-src-3.0.0\qtcreator.pro

        Using the Qt Creator 3.0 Sopurce Code from here:
        https://download.qt-project.org/official_releases/qtcreator/3.0/3.0.0/

        The used Qt 5.2 Source Code is from here:
        https://download.qt-project.org/official_releases/qt/5.2/5.2.0/single/

        The Parameters i have used to build Qt 5.2 are:
        configure -prefix c:\qt-build -debug-and-release -developer-build -icu -I C:\icu\dist\include -L C:\icu\dist\lib -openssl -I C:\OpenSSL-Win32\include -L c:\OpenSSL-Win32\lib\MinGW -platform win32-g++ -nomake examples

        After Qt 5.2 was build i run "MingW32-Make install" <<-- Should i have wait til Qt Creator was build??

        Compiler is MingW32 x32-4.8.1-posix-dwarf-rev5

        What else can i do? I found some old Entrys regarding Qt: Scripts - but there is so much Stuff that i (as a noob) have no Idea what i need to change. And all the Answers that i have found, are too specific to other Problems with Script and for different OS.

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

          I have tried also
          "qmake -r CONFIG+=build_and_release CONFIG+=build_all
          CONFIG-=qbs d:\qt-creator-opensource-src-3.0.0\qtcreator.pro"
          without any luck.

          Even
          "qmake CONFIG+=build_and_release CONFIG+=build_all CONFIG-=qbs d:\qt-creator-opensource-src-3.0.0\qtcreator.pro"

          Gives still the Error:
          "Project Error: Unknown Module(s) in Qt: Script"

          "Aggregation" and "ExtensionSystem" are build but right after that, the Compiler stops when it trys "Utils". I am completely out of Ideas now. I am Stuck.

          Edit 01: I did (again and again) the whole Procedure shown here: https://qt-project.org/wiki/Building-Qt-Creator-from-Git

          I only added "CONFIG+=debug_and_release CONFIG+=build_all"

          Still stuck :(

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

            QtScript is a module of Qt, not something from QtCreator. I've had that error somewhere once, but I don't remember where. Maybe just run QtCreator from the prebuild package?

            (Z(:^

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

              [quote author="sierdzio" date="1386856583"]QtScript is a module of Qt, not something from QtCreator. I've had that error somewhere once, but I don't remember where. Maybe just run QtCreator from the prebuild package?[/quote]

              Hmm i thought when i want to have OpenSSL, i need to compile Qt and Qt Creator by my self? Do i have OpenSSL Support when i use the Standard MingW Binaries?

              Edit I dont think it will work as the Windows Stuff is compiled with Visual Studio and I have a MingW Install. But i try this out.

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

                Ok i tried the Binaries of Qt Creator but i have too many "not found" things like QApplication and Webkitwidgets. I uninstalled it. And did i already mention "I am still stuck"?

                I think i need to recompile the whole Qt S.2 Stuff - this time without "mingw32-make install" right after compilation. Maybe this will work...

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

                  New Run.

                  16:40PM GMT+1:
                  I cleaned all Folders and Entrys and started compiling if Qt 5.2 again with Parameter

                  "configure -prefix c:\qt-build -debug-and-release -developer-build -icu -I C:\icu\dist\include -L C:\icu\dist\lib -openssl -I C:\OpenSSL-Win32\include -L c:\OpenSSL-Win32\lib\MinGW -platform win32-g++"

                  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

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

                    QtCreator is only an IDE. Just as you can develop Qt code in notepad (build by MS), gedit (built by GCC) or any other text editor, QtCreator can work with any number of Qt libraries compiled by any compiler.

                    If you need OpenSSL support in your Qt apps, you need to compile Qt by yourself. But you can use "stock" Qt Creator to develop Qt applications using those Qt libs.

                    (Z(:^

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

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

                      (Z(:^

                      1 Reply Last reply
                      0
                      • 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

                                          • Login

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