UGENE Forum
https://forum.ugene.net/forum/YaBB.pl
General Category >> Help and How-to >> compiling QT1.9.0 on windows
https://forum.ugene.net/forum/YaBB.pl?num=1294284690

Message started by Poh on Jan 6th, 2011 at 10:31am

Title: compiling QT1.9.0 on windows
Post by Poh on Jan 6th, 2011 at 10:31am
OK, I have done qt1.9.0 on linux.. (fedora 13). It is fine.

I am trying to compile it on windows. I do not have visual studio, but I have qtcreator. It compiles to a point where it seems to need g++.

It gave the following error...


cc1.exe: error: unrecognized command line option "-W3"

mingw32-make[2]: *** [_tmp/obj/debug/adler32.o] Error 1

mingw32-make[1]: *** [debug] Error 2

mingw32-make: *** [sub-src-libs_3rdparty-zlib-make_default-ordered] Error 2

The process "C:/Qt/2010.05/mingw/bin/mingw32-make.exe" exited with code %2.
Error while building project ugene (target: Desktop)
When executing build step 'Make'

Anyone manage to compile ugene with QTcreator? Care to share?

Thanks.

Title: Re: compiling QT1.9.0 on windows
Post by Konstantin Okonechnikov on Jan 6th, 2011 at 3:26pm
Poh,
what version of mingw do you have? The supported gcc must be at least 4.2 or higher. Also what configuration for qmake did you use?

Title: Re: compiling QT1.9.0 on windows
Post by Poh on Jan 6th, 2011 at 5:55pm
qmake -r ugene.pro

MinGW/gcc is version 4.4, that comes with Qt 2010.5.

I compile it via QTCreator interface when the error was found. Any pointers on that?

Any reason why QTCreator that comes with QT sdk was not used for windows and all other platforms?

Thanks.



Title: Re: compiling QT1.9.0 on windows
Post by Mikhail Fursov on Jan 10th, 2011 at 6:32pm
Looks like the problem with '-W3' option. It's MSVC compatible only.

I hope we will solve the problem with the next release. With the current release you can use the following solution:

1) find all *.pri files that contains lines like these:

win32 {
   QMAKE_CXXFLAGS_WARN_ON = -W3
   QMAKE_CFLAGS_WARN_ON = -W3


2) remove  lines with -W3


UGENE Forum » Powered by YaBB 2.5 AE!
YaBB Forum Software © 2000-2010. All Rights Reserved.