Qt 4.7.3 build on Cygwin
-
wrote on 12 Jul 2011, 02:06 last edited by
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 functionstatic 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 -
wrote on 12 Jul 2011, 03:04 last edited by
By changing the code from
OSVERSIONINFOW osver;
to
OSVERSIONINFO osver;makes it work.
-
wrote on 13 Jul 2011, 01:20 last edited by
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-158621Now 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.
-
wrote on 13 Jul 2011, 14:21 last edited by
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
-
wrote on 13 Jul 2011, 14:25 last edited by
The latter I meant:
- The ability to build both static and dynamic versions of the final Qt library at the same time.
-
wrote on 13 Jul 2011, 14:33 last edited by
[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?
-
wrote on 13 Jul 2011, 14:43 last edited by
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.
-
wrote on 13 Jul 2011, 14:56 last edited by
Just remove all the unwanted targets from the Makefile.
-
wrote on 13 Jul 2011, 15:08 last edited by
Thanks but it's too late; the build is complete after a day.
-
wrote on 13 Jul 2011, 15:26 last edited by
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.
-
wrote on 13 Jul 2011, 15:29 last edited by
BTW I would suggest renaming the option:
-nomake exampleTo:
-no-exampleBecause this is the convention followed by other configure scripts.
8/11