[Development] Building Qt5 on windows

Алексей Павлов alexpux at gmail.com
Thu Sep 13 12:57:50 CEST 2012


Hi!
I try to build Qt5 with mingw64 from
https://sourceforge.net/projects/mingwbuilds/ .
First I install strawberry perl 5.16.1, mingw64-4.7.1, build some libs
(openssl icu, fontconfig, libxml2,libxslt,zlib).
Than I wrote script:

*@echo on*
*
*
*set PWD=%~dp0*
*
*
*echo Seting up a Qt-64bit Environment...*
*echo -- QTINSTDIR set to %PWD%Qt64*
*
*
*set CURRDIR=%PWD%*
*set QTDIR=*
*set QTINSTDIR=%PWD%Qt64*
*set QTSRC=%PWD%srcs\Qt5*
*set EXTRA=%PWD%ported64*
*set MINGW_HOST=x86_64-w64-mingw32*
*set MINGW_HOME=%PWD%mingw64*
*
*
*set
INCLUDE=%MINGW_HOME%\%MINGW_HOST%\include;%EXTRA%\include;%QTINSTDIR%\databases\firebird\include;%QTINSTDIR%\databases\mysql\include;%QTINSTDIR%\databases\pgsql\include
*
*set
LIB=%MINGW_HOME%\%MINGW_HOST%\lib;%EXTRA%\lib;%QTINSTDIR%\databases\firebird\lib;%QTINSTDIR%\databases\mysql\lib;%QTINSTDIR%\databases\pgsql\lib
*
*set PYTHON_HOME=C:\SDK\Python27*
*set PERL_HOME=C:\SDK\strawberry*
*set MAKE_COMMAND=mingw32-make -j3*
*
*
*echo -- Adding %MINGW_HOME%\bin;%EXTRA%\bin to PATH*
*set
PATH=%QTSRC%\qtbase\bin;%QTSRC%\qtrepotools\bin;%MINGW_HOME%\bin;%EXTRA%\bin;%PERL_HOME%\perl\bin;%PERL_HOME%\perl\site\bin;%PATH%;
*
*
*
*cd %QTSRC%*
*configure -prefix %QTINSTDIR% -opensource -confirm-license
-developer-build -debug-and-release -no-fast -plugin-sql-ibase
-plugin-sql-mysql -plugin-sql-psql -no-dbus -no-iconv -icu -fontconfig
-system-pcre -fully-process -openssl -platform win32-g++ -nomake tests
-nomake examples -I %EXTRA%\include -I %EXTRA%\include\libxml2 -L
%EXTRA%\lib > %CURRDIR%qt5-configure.log*

I have next configuration: http://tny.cz/b6b968d0
Than I build with command mingw32-make and get error on QtSvg module:
*qsvgtinydocument.cpp:58:18: fatal error: zlib.h: No such file or directory*
*compilation terminated.*
*qsvgtinydocument.cpp:58:18: fatal error: zlib.h: No such file or directory*
*compilation terminated.*
*mingw32-make[4]: *** [release/qsvgtinydocument.o] Error 1*
*mingw32-make[4]: *** Waiting for unfinished jobs....*
*mingw32-make[4]: *** [debug/qsvgtinydocument.o] Error 1*
*mingw32-make[4]: *** Waiting for unfinished jobs....*
*mingw32-make[3]: *** [debug-all] Error 2*
*mingw32-make[3]: *** Waiting for unfinished jobs....*
*mingw32-make[3]: *** [release-all] Error 2*
*mingw32-make[2]: *** [sub-svg-make_first-ordered] Error 2*
*mingw32-make[1]: *** [sub-src-make_first] Error 2*
*mingw32-make: *** [module-qtsvg-make_first] Error 2*

But zlib.h present in c:\sdk\ported64\include. Why configure script not add
INCLUDE and LIB to include paths and libs paths of svg module?
Build log: http://tny.cz/b3ea0a8b

I have successfully build qt5 in the end, but I have many errors that Ifix
in make files by hand.
I want to make Qt5 better)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/development/attachments/20120913/b8fee6de/attachment.html>


More information about the Development mailing list