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. Compiling qt5 in msys and mingw
Forum Updated to NodeBB v4.3 + New Features

Compiling qt5 in msys and mingw

Scheduled Pinned Locked Moved Installation and Deployment
14 Posts 5 Posters 14.1k 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.
  • M Offline
    M Offline
    mctree
    wrote on last edited by
    #3

    Thanks. I am using cmd + mingw now. I don't know how to disable WebKit but while I run the configure, it report there is no DirectX SDK, I skip it and it keep running. Then I run the mingw32-make to make, it takes long time to run ... but finally it ends up with reporting missing python27.dll. I have python27 installed in c:/python27 but seems the configure detect that

    ....\include/QtGui/../../src/gui/opengl/qopengl.h:55:25: fatal error: GLES2/gl.h: No such file or directory
    compilation terminated.

    How to correct that? Thanks.

    1 Reply Last reply
    0
    • JKSHJ Offline
      JKSHJ Offline
      JKSH
      Moderators
      wrote on last edited by
      #4

      [quote author="mctree" date="1356754178"]I don't know how to disable WebKit but while I run the configure, it report there is no DirectX SDK[/quote]

      Do...
      @
      configure.bat -developer-build -opensource -nomake examples -nomake tests -opengl desktop --no-webkit
      @
      ...to use your graphics card's OpenGL instead of DirectX, and to disable WebKit.

      [quote]Then I run the mingw32-make to make, it takes long time to run ... but finally it ends up with reporting missing python27.dll. I have python27 installed in c:/python27 but seems the configure detect that

      *checking for python... (cached) /bin/python2.5

      ...

      Why it detect python2.5 instead? How to correct that? Thanks.
      [/quote]
      Because you have multiple versions of Python in your machine, and the configuration tool found Python 2.5 first. Move your environment variables around, and make sure Python 2.7 is listed first. Same with Perl.

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

      1 Reply Last reply
      0
      • Q Offline
        Q Offline
        qt-pr
        wrote on last edited by
        #5

        [quote author="mctree" date="1356754178"]
        configure.bat -developer-build -opensource -nomake examples -nomake tests -opengl desktop --no-webkit
        [/quote]

        --no-webkit gives an error for me. But -nomake webkit seems to work

        1 Reply Last reply
        0
        • Q Offline
          Q Offline
          qt-pr
          wrote on last edited by
          #6

          I have tried following the instructions on this thread and looked at many others but getting very frustrated!

          I have mingw installed in c:/mingw under WinXP and the dependent packages installed (Perl, Pyhton, Ruby). Paths set. I have the qt source in c:/mingw/local/qt. In this directory I have tried running:

          configure.bat -prefix c:\mingw\local\qt -developer-build -opensource -opengl desktop -platform win32-g++ -nomake examples -nomake tests
          -nomake webkit

          but I get:

          • C:/mingw/local/qt-src/qtbase/configure -prefix c:\mingw\local\qt -developer-build -opensource -opengl desktop -platform win32-g++ -nomake examples -nomake tests -nomake webkit
            'C:\mingw\local\qt-src\qtbase\configure.exe' is not recognized as an internal or external command, operable program or batch file.
            *** qtbase/configure exited with non-zero status.

          Notice the "\" before "configure.exe". What on earth am I doing wrong here? Is there some (undocumented) environment variable I have to set?

          1 Reply Last reply
          0
          • JKSHJ Offline
            JKSHJ Offline
            JKSH
            Moderators
            wrote on last edited by
            #7

            I haven't seen the double-slash issue before.

            Are you using Windows command prompt or MSYS?

            Try removing "-prefix c:\mingw\local\qt" (it's unneeded, since you're building into the same directory as the source code)

            This is probably unrelated, but also try deleting/renaming the qtwebkit folder before configuring, and removing the "-nomake webkit" option (I have a feeling this option is invalid). If the configure script can't find the qtwebkit folder, it will omit the compilation of Qt WebKit without errors.

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

            1 Reply Last reply
            0
            • Q Offline
              Q Offline
              qt-pr
              wrote on last edited by
              #8

              [quote author="JKSH" date="1366121960"]I haven't seen the double-slash issue before. Are you using Windows command prompt or MSYS?[/quote]

              cmd. Sorry - accidentally edited that detail out of the final post. Also logged in as administrator so there should be no access issues.

              The double slash is perplexing me! What is trying to launch configure.exe?

              [quote author="JKSH" date="1366121960"]Try removing "-prefix c:\mingw\local\qt" (it's unneeded, since you're building into the same directory as the source code)[/quote]

              Tried that already - same result

              [quote author="JKSH" date="1366121960"]This is probably unrelated, but also try deleting/renaming the qtwebkit folder before configuring, and removing the "-nomake webkit" option (I have a feeling this option is invalid). If the configure script can't find the qtwebkit folder, it will omit the compilation of Qt WebKit without errors.[/quote]

              I tried this because the suggested "--no-webkit" option elsewhere in this thread gives an error. But the least of my problems right now.

              1 Reply Last reply
              0
              • JKSHJ Offline
                JKSHJ Offline
                JKSH
                Moderators
                wrote on last edited by
                #9

                What's your version of MinGW? What's your Qt version, and how did you obtain it?

                I have GCC 4.7.2 (from MinGW-builds), and Qt 5 source code from git (stable branch) that's a few days old. This command configured Qt without issues for me:

                @
                configure.bat -developer-build -opensource -confirm-license -nomake demos -nomake examples -nomake tests -opengl desktop
                @

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

                1 Reply Last reply
                0
                • Q Offline
                  Q Offline
                  qt-pr
                  wrote on last edited by
                  #10

                  [quote author="JKSH" date="1366125128"]What's your version of MinGW? What's your Qt version, and how did you obtain it?[/quote]

                  MinGW 4.7.2 from mingw.org. (Not the sjlj unwinding version). Qt5.0.2 from qt-projects. But things don't look to be getting as far as the compiler - it looks like there is some issue with the Qt build script/interaction with my environment.

                  [quote]configure.bat -developer-build -opensource -confirm-license -nomake demos -nomake examples -nomake tests -opengl desktop[/quote]

                  I have tried exactly this and I get exactly the same result! I have searched for a file called configure.exe under the qt directory and it's not there, notwithstanding the double slash issue. So I am wondering if there is some condition that is going awry under my environment and trying to invoke a file that is absent. Do you have any QT environment variable set?

                  1 Reply Last reply
                  0
                  • JKSHJ Offline
                    JKSHJ Offline
                    JKSH
                    Moderators
                    wrote on last edited by
                    #11

                    Very strange. I can't think of what the issue could be, sorry. Did you start with a clean source tree each time you tried?

                    I have no Qt-related environment variables set -- I've never set any, regardless of whether I compiled using MinGW or MSVC 2012. Here's my configure output: http://pastebin.com/6MN6aF6F At which step does yours fail?

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

                    1 Reply Last reply
                    0
                    • Q Offline
                      Q Offline
                      qt-pr
                      wrote on last edited by
                      #12

                      [quote author="JKSH" date="1366130103"]Very strange. I can't think of what the issue could be, sorry. Did you start with a clean source tree each time you tried?[/quote]

                      I think so. I have certainly tried downloading a clean version. No difference.

                      [quote] I have no Qt-related environment variables set -- I've never set any, regardless of whether I compiled using MinGW or MSVC 2012.[/quote]

                      OK.

                      [quote] Here's my configure output: http://pastebin.com/6MN6aF6F At which step does yours fail?[/quote]

                      Line 3! Whereas your version outputs "Please wait while bootstrapping configure ...", mine gives "‘C:\mingw\local\qt-src\qtbase\configure.exe’ is not recognized as an internal or external command, operable program or batch file."

                      I now understand a bit more about what is supposed to be happening - configure.exe is built in the bootstrapping process and finally linked in your line 76. I don't seem to be entering the bootstrapping process, rather trying to execute configure.exe from the off.

                      I suspect the fundamental issue is where this double slash is coming from. Maybe I will try on another machine in case there is something messed up with my version of Windows...

                      1 Reply Last reply
                      0
                      • C Offline
                        C Offline
                        Carel
                        wrote on last edited by
                        #13

                        I had the double slash issue. I can't remember exactly how I fixed it though. I think the trick was to use the recommended build tools (the sljljljlj thingy one). I also had problems as my LIB and INCLUDE variables needed to be cleared before I built anything as mingw picked up a gtk+ library. I think the \ issue arises because PATH doesn't point towards the mingw configure. I'm sorry I can't remember the exact fix. If you want more info let me know.

                        1 Reply Last reply
                        0
                        • J Offline
                          J Offline
                          josuegomes
                          wrote on last edited by
                          #14

                          About the "\configure.exe not recognized" error: it is qtbase\configure.bat that is trying to call it. qtbase\configure.bat can build configure.exe before calling it. To trigger the build create an empty file qtbase.gitignore
                          This tricks configure.bat and it builds configure.exe
                          Hope this helps. I was getting the same problem with Qt-5.0.2

                          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