PDA

View Full Version : Failure to build Debug libs - Vista Mingw Qt 4.3.2



pmabie
15th October 2007, 06:46
Hi
I was searching the threads hoping to find an answer , some came close ...

my INCLUDE and LIB are both Empty;
I Installed via the Binary Pack , trying to build debug libs for use in Eclipse.

I tried to put Mingw\include in the INCLUDE but that just made it worse , this
is the base error I get .

I am using the Qt Build Debug bat, I have tried to build with -no-zlib , but it just errors out later on telling me it can't find winver.h.

Any help would be greatly appreciated.

Patrick :)

set QTDIR=C:\Qt\4.3.2
set PATH=C:\Qt\4.3.2\bin
set PATH=%PATH%;D:\MinGW\bin;D:\MinGW\libexec\gcc\ming w32\3.4.2
set PATH=%PATH%;%SystemRoot%\System32
set QMAKESPEC=win32-g++

In file included from ..\..\3rdparty\zlib\crc32.c:29:
..\..\3rdparty\zlib\/zutil.h:21:24: stddef.h: No such file or directory
..\..\3rdparty\zlib\/zutil.h:23:22: string.h: No such file or directory
..\..\3rdparty\zlib\/zutil.h:24:22: stdlib.h: No such file or directory
..\..\3rdparty\zlib\/zutil.h:38:23: errno.h: No such file or directory
..\..\3rdparty\zlib\crc32.c:36:24: limits.h: No such file or directory
mingw32-make[2]: *** [tmp\obj\release_shared\crc32.o] Error 1
mingw32-make[2]: Leaving directory `C:/Qt/4.3.2/src/tools/rcc'
mingw32-make[1]: *** [release] Error 2
mingw32-make[1]: Leaving directory `C:/Qt/4.3.2/src/tools/rcc'
mingw32-make: *** [debug-C__Qt_4_3_2_src_tools_rcc] Error 2
C:\Qt\4.3.2\src>

ChristianEhrlicher
15th October 2007, 07:09
D:\MinGW\libexec\gcc\ming w32\3.4.2 is wrong. Remove it and try again.

pmabie
15th October 2007, 07:13
will do , but I am sure it's going to tell me , CC1 not found .

Thanks :) hope it works

ChristianEhrlicher
15th October 2007, 07:27
Ok, then you've the 'classic' mingw on vista problem. You have to update your mingw runtime. Download it from sf.net/projects/mingw (Download section, 'mingw runtime') and unpack it to your mingw install dir.
See also mingw-users mailing list about the discussion using mingw/vista.

pmabie
15th October 2007, 07:30
Will do thanks so much for your help!

pmabie
15th October 2007, 07:35
mingw-runtime-3.13.tar is this the correct one ?
Thanks .

pmabie
15th October 2007, 07:43
Qt is now configured for building. Just run mingw32-make.
To reconfigure, run mingw32-make confclean and configure.

(cd C:\Qt\4.3.2\src\winmain && mingw32-make -f Makefile debug)
mingw32-make[1]: *** No rule to make target `debug'. Stop.
mingw32-make[1]: Entering directory `C:/Qt/4.3.2/src/winmain'
mingw32-make[1]: Leaving directory `C:/Qt/4.3.2/src/winmain'
mingw32-make: *** [debug-C__Qt_4_3_2_src_winmain] Error 2
C:\Qt\4.3.2\src>

this is what I got :)

Thans again .

ChristianEhrlicher
15th October 2007, 07:52
What configure options did you use? Looks like you added '-debug' or '-release' which is not good on windows. Maybe post configure.exe output.
Try "..\..\bin\qmake -spec win32-g++" in src\winmain to regenerate Makefiles in there.

pmabie
15th October 2007, 18:04
Thanks so much for your help Christian!

I got it!

How are you in Eclipse :)

:cool: