Welcome, Guest. Please Login or Register
UGENE Bulletin Board
  Welcome to our forum.
  HomeHelpSearchLoginRegister  
 
 
Page Index Toggle Pages: 1
compiling QT1.9.0 on windows (Read 8480 times)
Jan 6th, 2011 at 10:31am

Poh   Offline
YaBB Newbies

Posts: 46
*
 
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.
 
IP Logged
 
Reply #1 - Jan 6th, 2011 at 3:26pm

Konstantin Okonechnikov   Offline
Global Moderator

Posts: 173
*****
 
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?
 
IP Logged
 
Reply #2 - Jan 6th, 2011 at 5:55pm

Poh   Offline
YaBB Newbies

Posts: 46
*
 
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.


« Last Edit: Jan 7th, 2011 at 3:23pm by Poh »  
IP Logged
 
Reply #3 - Jan 10th, 2011 at 6:32pm

Mikhail Fursov   Offline
YaBB Administrator

Gender: male
Posts: 162
*****
 
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 team
IP Logged
 
Page Index Toggle Pages: 1