I'm compiling Qt 4.3.2 in vista with the following bat file running as administrator
set MINGWROOT=C:\Dev\Qt\MinGW
set MINGWBIN=%MINGWROOT%\bin
set MINGWINCLUDE=%MINGWROOT%\include
set MINGWLIB=%MINGWROOT%\lib
set MINGWLIBEXEC=%MINGWROOT%\libexec\gcc\mingw32\3.4.2
set MINGWBIN2=%MINGWROOT%\mingw32\bin
set MINGWLIB2=%MINGWROOT%\mingw32\lib\ldscripts
set MINGW=%MINGWROOT%;%MINGWBIN%;%MINGWINCLUDE%;%MINGWLIB%;%MINGWLIBEXEC%;%MINGWLIB2%;%MINGWLIB2%
set QTDIR=C:\Dev\Qt\4.3.2
set PATH=%MINGW%;C:\Dev\Qt\4.3.2\bin
set PATH=%PATH%;C:\Dev\Qt\MinGW\bin
set PATH=%PATH%;%SystemRoot%\System32
set QMAKESPEC=win32-g++
path
if not "%1"=="compile_debug" goto END
cd %QTDIR%
echo This will configure and compile qt in debug.
echo The release libraries will not be recompiled.
pause
configure -plugin-sql-sqlite -plugin-sql-odbc -qt-libpng -qt-libjpeg -qt-gif
cd %QTDIR%\src
qmake
mingw32-make debug
set MINGWROOT=C:\Dev\Qt\MinGW
set MINGWBIN=%MINGWROOT%\bin
set MINGWINCLUDE=%MINGWROOT%\include
set MINGWLIB=%MINGWROOT%\lib
set MINGWLIBEXEC=%MINGWROOT%\libexec\gcc\mingw32\3.4.2
set MINGWBIN2=%MINGWROOT%\mingw32\bin
set MINGWLIB2=%MINGWROOT%\mingw32\lib\ldscripts
set MINGW=%MINGWROOT%;%MINGWBIN%;%MINGWINCLUDE%;%MINGWLIB%;%MINGWLIBEXEC%;%MINGWLIB2%;%MINGWLIB2%
set QTDIR=C:\Dev\Qt\4.3.2
set PATH=%MINGW%;C:\Dev\Qt\4.3.2\bin
set PATH=%PATH%;C:\Dev\Qt\MinGW\bin
set PATH=%PATH%;%SystemRoot%\System32
set QMAKESPEC=win32-g++
path
if not "%1"=="compile_debug" goto END
cd %QTDIR%
echo This will configure and compile qt in debug.
echo The release libraries will not be recompiled.
pause
configure -plugin-sql-sqlite -plugin-sql-odbc -qt-libpng -qt-libjpeg -qt-gif
cd %QTDIR%\src
qmake
mingw32-make debug
To copy to clipboard, switch view to plain text mode
I get those includes errors:
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:/Dev/Qt/4.3.2/src/tools/rcc'
mingw32-make[1]: *** [release] Error 2
mingw32-make[1]: Leaving directory `C:/Dev/Qt/4.3.2/src/tools/rcc'
mingw32-make: *** [debug-C__Qt_4_3_2_src_tools_rcc] Error 2
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:/Dev/Qt/4.3.2/src/tools/rcc'
mingw32-make[1]: *** [release] Error 2
mingw32-make[1]: Leaving directory `C:/Dev/Qt/4.3.2/src/tools/rcc'
mingw32-make: *** [debug-C__Qt_4_3_2_src_tools_rcc] Error 2
To copy to clipboard, switch view to plain text mode
I've seen other people having the same issues, so I updated the Mingw runtime, but it doesn't seem to fix anything.
Any idea?
Bookmarks