PDA

View Full Version : Where do I get MinGW 3.2 ?



Shwetha
31st March 2006, 20:54
I am using MinGW 3.0.0.1, Qt 4.2 and VS 2005.

Is MinGW required?

While installing Qt, I get a warning that it needs MinGW 3.2 which I am not finding it on the internet. I continue with the installation.


My simple hello world program doesn’t compile.

I have set the path, added lib, exe and includes path in the VS environment.

Could you please help me with this issue. I am using the open source version of Qt.

Thanks for all in advance
shwetha

jacek
31st March 2006, 21:00
There is MinGW bundled with Qt4, but you can get it from this site: http://www.mingw.org/download.shtml

Shwetha
31st March 2006, 21:07
yes, I download MinGW-3.0.0-1.exe from the same website.

But now finding 3.2 for Windows there.

jacek
31st March 2006, 21:10
AFAIR Qt installer wants this: http://prdownloads.sf.net/mingw/w32api-3.2.tar.gz?download

Shwetha
31st March 2006, 22:39
I downloaded 3.2 and it give an warning while installing Qt.

But, when compiling my simple app.

I get a link error which states

c:\mingw\include\stddef.h(6)

fatal error:C 1021:invalid preprocessor command 'include_next'

I have set the path, linker options in VC 2005

Please help

Thansk in advance
SD

jacek
31st March 2006, 22:48
I have set the path, linker options in VC 2005
Which compiler do you use?

Shwetha
31st March 2006, 22:57
Visual C++ 2005

jacek
31st March 2006, 23:06
Visual C++ 2005
Qt Open Source edition doesn't support Visual C++ --- only MinGW.

Shwetha
1st April 2006, 00:26
I am still unsuccessful. could you please tell me if I am following the right steps

1. Set the PATH
2. Run 'configure ' from \Qt4.1.2

3. mingw32-make which fails with error messages related to C:\Qt\4.1.2\src\gui
( assuming this step will not effect :) )

4. go to tutorial directrory and type qmake -project -main.cpp

5. qmake which will generate the exe in release folder

Please let me kwow where I am going wrong.


Thanks
Shwetha

jacek
1st April 2006, 00:35
What error do you get exactly?

You can find all MinGW releases here: http://prdownloads.sourceforge.net/mingw/
but better try the version that is bundled with Qt.

Shwetha
1st April 2006, 00:43
yes, I installed

MinGW-3.2.0-rc-1.exe
MinGW-3.2.0-rc-2.exe
MinGW-3.2.0-rc-3.exe

from the website you mentioned.

The error I get is

[tmp\obj\debug_shared\qwindowsxpstyle.o] Error 1
C:\qt\4.1.2\src\gui
Cannot find QtGuid4

thansk again for responding so quickly :)

jacek
1st April 2006, 00:44
Is that the first error you get?

Shwetha
1st April 2006, 00:50
No, while I run my step 3, I get a bunch of errors.

But it aborts and display this message at the end

mingw32-make: ***[tmp\obj\debug_shared\qwindowsxpstyle.o] Error 1
leaving directory C:\Qt\4.1.2\src\gui

***[ debug_all]Error 2 Leaving directory c:\Qt\4.1.2\src\gui
*** [ sub_gui_make_default_ordered] Error 2
Leaving directory C:\Qt\4.1.2\src

***[sub-src-make-default ordered] Error 2

jacek
1st April 2006, 01:00
And what was the first error message?

Shwetha
1st April 2006, 01:39
styles\qwindowsxpstyle.cpp 2469: error 'ABS_UPPRESSED'
undeclared<first use this function>

jacek
1st April 2006, 01:42
Have you replaced the include and lib directories from MinGW installation with contents of w32api-3.2.tar.gz (http://prdownloads.sourceforge.net/mingw/w32api-3.2.tar.gz?download) (or later)?

Shwetha
1st April 2006, 02:09
No, Should I do it ?

SD

jacek
1st April 2006, 02:13
No, Should I do it ?
Yes, that's what the installer was complaining about.

Shwetha
3rd April 2006, 23:17
No. It didnt help.

Can you point me to the downloads of QT, mingw ( even an older version is fine)

where they are all known to work ?

jacek
3rd April 2006, 23:36
ftp://ftp.trolltech.com/qt/source/qt-win-opensource-4.1.2-mingw.exe