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. Compile Qt 5.1.1 with Cygwin (64bit) shipped MinGW64 compiler on Windows 7
Forum Updated to NodeBB v4.3 + New Features

Compile Qt 5.1.1 with Cygwin (64bit) shipped MinGW64 compiler on Windows 7

Scheduled Pinned Locked Moved Installation and Deployment
36 Posts 4 Posters 21.5k 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
    Mr_Ada
    wrote on last edited by
    #12

    My configure command is:
    ./configure -prefix /cygdrive/c/Qt5d -debug -developer-build -opensource -confirm-license -static -platform cygwin-g++ -qt-zlib -qt-libpng -qt-libjpeg -verbose

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

      I'm not sure if you can use the Win32 (native Windows) variant of MinGW on Cygwin. You might need a copy of MinGW that was specifically built for Cygwin.

      -I do know, however, that the configure script doesn't work on Windows, even within Cygwin. You'll need to run configure.bat instead.- EDIT: Sorry, I was thinking of MSYS, not Cygwin!

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

      1 Reply Last reply
      0
      • M Offline
        M Offline
        Mr_Ada
        wrote on last edited by
        #14

        intersting! I would not have expected a DOS script to work in CYGWIN!

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

          Ack, sorry, I just realized I remembered wrongly. I was thinking of MSYS, not Cygwin! I've never tried compiling Qt on Cygwin before.

          But like I said in your other thread, you'll probably have better luck doing a native Windows build instead of a Cygwin build which adds a POSIX layer to your system.

          [quote]
          @
          COLLECT_GCC=C:\Qt5\Tools\mingw48_32\bin\g++.exe
          @
          [/quote]That's a native Windows toolchain, so I doubt that works on Cygwin either.

          What errors do you get when you try to compile in CMD?

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

          1 Reply Last reply
          0
          • M Offline
            M Offline
            Mr_Ada
            wrote on last edited by
            #16

            Ok. My toolchain was wrong, so I fixed my path. Here is an output (I changed the folder name so that I didn't have it so long):
            C:\qt_src>configure -prefix C:\Qt5d -debug -developer-build -opensource -confirm -license -static -platform cygwin-g++ -qt-zlib -qt-libpng -qt-libjpeg -verbose

            • cd qtbase
            • C:\qt_src\qtbase\configure.bat -prefix C:\Qt5d -debug -developer-build -opensource -confirm-license -static -platform cygwin-g++ -qt-zlib -qt-libpng -qt-libjpeg -verbose
              'C:\qt_src\qtbase\configure.exe' is not recognized as an internal or external command, operable program or batch file
            1 Reply Last reply
            0
            • M Offline
              M Offline
              Mr_Ada
              wrote on last edited by
              #17

              strange that it would look for an exe when there is a bat file there.

              I think I am using the tarball source code. Maybe that is throwing things off....

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

                [quote]
                @

                • cd qtbase
                • C:\qt_src\qtbase\configure.bat -prefix C:\Qt5d -debug -developer-build -opensource -confirm-license -static -platform cygwin-g++ -qt-zlib -qt-libpng -qt-libjpeg -verbose
                  @
                  [/quote]
                  Don't go into 'qtbase'. Call configure.bat in C:\qt_src, and then call make in C:\qt_src.

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

                1 Reply Last reply
                0
                • M Offline
                  M Offline
                  Mr_Ada
                  wrote on last edited by
                  #19

                  first I had to resintall the Zip file instead of the tarball and I got a little further. It didn't like my -verbose so I took that out.

                  Then I ran it again and I got:
                  make.exe - Unable to Locate Component
                  This application has failed to start because msys-1.0.dll was not found. Re-installing the application may fix this problem.

                  What does msys have to do with all of this?

                  Also I am not going down to qtbase. I am calling this from the qt_src level.

                  1 Reply Last reply
                  0
                  • M Offline
                    M Offline
                    Mr_Ada
                    wrote on last edited by
                    #20

                    so I cleaned up my PATH so only the one mingw toolchain was visible (Qt's).

                    Ran again and got this:

                    C:\qt_src>configure -prefix C:\Qt5d -debug -developer-build -opensource -confirm-license -static -platform cygwin-g++ -qt-zlib -qt-libpng -qt-libjpeg

                    • cd qtbase
                    • C:\qt_src\qtbase\configure.bat -prefix C:\Qt5d -debug -developer-build -opensource -confirm-license -static -platform cygwin-g++ -qt-zlib -qt-libpng -qt-libjpeg

                    This is the Qt for Windows Open Source Edition.

                    You have already accepted the terms of the license.

                    Creating qmake...
                    Cleaning qmake failed, return code -1

                    1 Reply Last reply
                    0
                    • M Offline
                      M Offline
                      Mr_Ada
                      wrote on last edited by
                      #21

                      duh! I still have cygwin in there!!!!

                      changed to win32-g++

                      seems to be compiling...

                      1 Reply Last reply
                      0
                      • M Offline
                        M Offline
                        Mr_Ada
                        wrote on last edited by
                        #22

                        got this:
                        Running configuration tests...
                        WARNING: The DirectX SDK could not be detected:
                        There is no Direct X SDK installed or the environment variable "DXSDK_DIR" is not set.
                        Disabling the ANGLE backend.

                        WARNING: Using OpenGL ES 2.0 without ANGLE.
                        Specify -opengl desktop to use Open GL.
                        The build will most likely fail.

                        config info...

                        then it said to:
                        Qt is now configured for building. Just run mingw32-make.

                        This doesn't exist in the tool chain. neither does make.
                        chris

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

                          You have two choices:

                          • Install the DirectX SDK, or
                          • Add "-opengl desktop" to your configuration flags (your graphics card drivers needs to support OpenGL 2.0 or newer).

                          In either case, make sure you clean your source tree first and the re-configure.

                          If you're using the copy of MinGW that came with Qt 5.1, then mingw32-make should be in the 'bin' folder together with g++

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

                          1 Reply Last reply
                          0
                          • M Offline
                            M Offline
                            Mr_Ada
                            wrote on last edited by
                            #24

                            I added -opengl desktop and just did a make. Don't why it is compiling now but it is. I tried to re-configure but that didn't work but it is compiling which is a good sign!

                            1 Reply Last reply
                            0
                            • M Offline
                              M Offline
                              Mr_Ada
                              wrote on last edited by
                              #25

                              Ok. it stopped compiling. Here is what it is complaining about:
                              mingw32-make[4]: Entering directory 'C:/qt_src/qtbase/src/widgets'
                              (set PATH=C:\qt_src\qtbase\lib;%PATH:)=^)%) & C:\qt_src\qtbase\bin\uic.exe dialogs\qfiledialog.ui -o ui_qfiledialog.h
                              Makefile.Debug:647: recipe for target 'ui_qfiledialog.h' failed
                              mingw32-make[4]: *** [ui_qfiledialog.h] Error 255
                              mingw32-make[4]: Leaving directory 'C:/qt_src/qtbase/src/widgets'
                              Makefile:34: recipe for target 'debug' failed
                              mingw32-make[3]: *** [debug] Error 2
                              mingw32-make[3]: Leaving directory 'C:/qt_src/qtbase/src/widgets'
                              Makefile:411: recipe for target 'sub-widgets-make_first' failed
                              mingw32-make[2]: *** [sub-widgets-make_first] Error 2
                              mingw32-make[2]: Leaving directory 'C:/qt_src/qtbase/src'
                              Makefile:41: recipe for target 'sub-src-make_first' failed
                              mingw32-make[1]: *** [sub-src-make_first] Error 2
                              mingw32-make[1]: Leaving directory 'C:/qt_src/qtbase'
                              makefile:56: recipe for target 'module-qtbase-make_first' failed
                              mingw32-make: *** [module-qtbase-make_first] Error 2

                              1 Reply Last reply
                              0
                              • M Offline
                                M Offline
                                Mr_Ada
                                wrote on last edited by
                                #26

                                path issue!!! Doesn't like " " in the path!

                                1 Reply Last reply
                                0
                                • M Offline
                                  M Offline
                                  Mr_Ada
                                  wrote on last edited by
                                  #27

                                  still compiling and linking...

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

                                    Yes, it takes several hours on old PCs (it took over 3 hours to compile Qt 4.8 on my old Windows XP laptop; can't remember its specs)

                                    If you have a dual-core processor, passing "-j 2" or "-j 3" into mingw32-make will let it to compile with 2 or 3 threads in parallel, speeding things up a little.

                                    You can also only compile a subset of modules. Example:
                                    @
                                    mingw32-make -j 3 module-qtbase
                                    @
                                    ...this will only compile the modules in the qtbase subfolder (http://qt-project.org/wiki/Qt_5_Structure shows you which modules are in which subfolder)

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

                                    1 Reply Last reply
                                    0
                                    • M Offline
                                      M Offline
                                      Mr_Ada
                                      wrote on last edited by
                                      #29

                                      i have a quad core processor. I guess I can stop it and resubmit with -j 10 (wee hoo! it is flying now! ) LOL

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

                                        Enjoy! :D

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

                                        1 Reply Last reply
                                        0
                                        • M Offline
                                          M Offline
                                          Mr_Ada
                                          wrote on last edited by
                                          #31

                                          Gosh I must have too old a system. It went for 8 hours and still didn't finish! I had to reboot and try again with less -j #. My computer was very unresponsive.

                                          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