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. Qt 4.7.3 build on Cygwin
Forum Updated to NodeBB v4.3 + New Features

Qt 4.7.3 build on Cygwin

Scheduled Pinned Locked Moved Installation and Deployment
11 Posts 2 Posters 7.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.
  • P Offline
    P Offline
    philippeb8
    wrote on last edited by
    #1

    The latest source code doesn't even compile on Cygwin. I get the following error:
    ...
    /usr/src/qt-everywhere-opensource-src-4.7.3/src/corelib/global/qglobal.cpp: In static member function static QSysInfo::WinVersion QSysInfo::windowsVersion()': /usr/src/qt-everywhere-opensource-src-4.7.3/src/corelib/global/qglobal.cpp:1731: error: cannot convert OSVERSIONINFOW*' to _OSVERSIONINFOA*' for argument 1' to `BOOL GetVersionExA(_OSVERSIONINFOA*)'
    make: *** [qglobal.o] Error 1

    1 Reply Last reply
    0
    • P Offline
      P Offline
      philippeb8
      wrote on last edited by
      #2

      By changing the code from
      OSVERSIONINFOW osver;
      to
      OSVERSIONINFO osver;

      makes it work.

      1 Reply Last reply
      0
      • P Offline
        P Offline
        philippeb8
        wrote on last edited by
        #3

        I figured that one out. Actually look at all of the fixes I had to do:
        http://bugreports.qt.nokia.com/browse/QTBUG-20342?focusedCommentId=158621#comment-158621

        Now I'm trying to disable script build with "./configure -no-script ..." because Collector.cpp can't compile but I have to reconfigure everything. Running configure deletes all the objects files!!! This means rebuilding everything will take another 96 minutes!!!

        Nobody ever tried building Qt on Cygwin?? This is mediocre.

        1 Reply Last reply
        0
        • P Offline
          P Offline
          philippeb8
          wrote on last edited by
          #4

          Features that would be great to add to the configure script are:

          • The ability not to build the examples (like before)
          • The ability to configure without deleting all object files
          • The ability to build both static and dynamic versions at the same time
          1 Reply Last reply
          0
          • P Offline
            P Offline
            philippeb8
            wrote on last edited by
            #5

            The latter I meant:

            • The ability to build both static and dynamic versions of the final Qt library at the same time.
            1 Reply Last reply
            0
            • L Offline
              L Offline
              lgeyer
              wrote on last edited by
              #6

              [quote author="philippeb8" date="1310566866"]- The ability not to build the examples (like before)[/quote]

              Has the -nomake <package> (examples, demos, tests, etc.) parameter been removed recently?

              1 Reply Last reply
              0
              • P Offline
                P Offline
                philippeb8
                wrote on last edited by
                #7

                So this is the option I was looking for. But I can't run configure again because it'll delete a whole day of compilation.

                1 Reply Last reply
                0
                • L Offline
                  L Offline
                  lgeyer
                  wrote on last edited by
                  #8

                  Just remove all the unwanted targets from the Makefile.

                  1 Reply Last reply
                  0
                  • P Offline
                    P Offline
                    philippeb8
                    wrote on last edited by
                    #9

                    Thanks but it's too late; the build is complete after a day.

                    1 Reply Last reply
                    0
                    • L Offline
                      L Offline
                      lgeyer
                      wrote on last edited by
                      #10

                      JFYI: You can interrupt the build process at any time you want, make will skip all the targets which have been built already and pick up the work where it stopped.

                      1 Reply Last reply
                      0
                      • P Offline
                        P Offline
                        philippeb8
                        wrote on last edited by
                        #11

                        BTW I would suggest renaming the option:
                        -nomake example

                        To:
                        -no-example

                        Because this is the convention followed by other configure scripts.

                        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