Building Qt 4.3.4 on Win Vista & MinGW
Hi,
I'm having a little problem building my Qt version on Windows Vista using MinGW.
After configuring qt with configure -platform win32-g++
and calling mingw32-make
to build Qt, I get the following error(s):
Code:
mingw32-make -f Makefile.Release
mingw32-make[2]: Entering directory 'C:/Libs/Qt/4.3.4/src/tools/rcc'
gcc -c -O2 -Wall -DUNICODE -DQT_LARGEFILE_SUPPORT -DQT_BOOTSTRAPPED -DQT_RCC -DQ
T_LITE_UNICODE -DQT_NO_DATASTREAM -DQT_NO_THREAD -DQT_NO_QOBJECT -DQT_NO_UNICODE
TABLES -DQT_NO_LIBRARY -DQT_NO_SYSTEMLOCALE -DQT_NO_GEOM_VARIANT -DQT_NODLL -I".
.\..\corelib\arch\generic" -I"..\..\..\include" -I"." -I"..\..\..\include\QtCore
" -I"..\..\..\include\QtXml" -I"..\..\3rdparty\zlib" -I"." -I"..\..\..\mkspecs\w
in32-g++" -o tmp\obj\release_shared\crc32.o ..\..\3rdparty\zlib\crc32.c
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:/Libs/Qt/4.3.4/src/tools/rcc'
mingw32-make[1]: *** [release] Error 2
mingw32-make[1]: Leaving directory 'C:/Libs/Qt/4.3.4/src/tools/rcc'
mingw32-make: *** [sub-rcc-make_default-ordered] Error 2
Obviously stddef.h, string.h, stdlib.h, errno.h, limits.h (included in zutil.h) can't for some reason not beeing found, which is strange, because all files can be found in MinGW's default include path "...\MinGW\include".
I'm not sure why gcc can't find those files, I tried editing "...\mkspecs\win32-g++\qmake.conf" and change
to
Code:
QMAKE_INCDIR = C:\Libs\MinGW\include
which DID solve the above problem, but introduced another one. I'm getting a lot of errors, like:
Code:
c:/Libs/MinGW/include/string.h:136: error: syntax error before "wcsxfrm"
c:/Libs/MinGW/include/string.h:146: warning: type defaults to 'int' in declaration of 'wchar_t'
c:/Libs/MinGW/include/string.h:146: error: syntax error before '*' token
c:/Libs/MinGW/include/string.h:146: warning: type defaults to 'int' in declaration of '_wcsdup'
c:/Libs/MinGW/include/string.h:146: warning: data definition has no type or storage class
c:/Libs/MinGW/include/string.h:147: warning: type defaults to 'int' in declaration of 'wchar_t'
c:/Libs/MinGW/include/string.h:147: error: syntax error before '*' token
c:/Libs/MinGW/include/string.h:148: warning: type defaults to 'int' in declaration of 'wchar_t'
Anyone has an idea? (Yeah I know, stupid Windows user, I'm not building source code very often :rolleyes: )
I'm using the following Versions (qt-win-opensource-4.3.4-mingw.exe):
- Qt 4.3.4 (opensource), installed to c:\Libs\Qt\4.3.4
- MinGW 3.4.2 (packed with Qt version), installed to c:\Libs\MinGW\
PATH: "...;C:\Libs\Qt\4.3.4\bin;C:\Libs\MinGW\bin;C:\Lib s\MinGW\libexec\gcc\mingw32\3.4.2"
I DO have MS Visual Studio 2005 installed, but temporary removed it from PATH and VS80COMNTOOLS.
Re: Building Qt 4.3.4 on Win Vista & MinGW
Maybe try recent 3.4.5 instead the one package with Qt. Afaik 4.3.2 has some problems with vista (3.4.5 was recently updated to solve those). See http://sf.net/projects/mingw
Re: Building Qt 4.3.4 on Win Vista & MinGW
Thanks alot, It did compile now :cool: