On Mon, Aug 24, 2015 at 9:39 AM, Thiago Macieira <thiago.macie...@intel.com> wrote:
> Compile from sources, for now. > Thanks Thiago. Has anybody built qt5.5.0 from sources with MSVC2015? There are people on the list that will want to build qt5.5.0 and qt5.5.1 if we must wait until qt5.6 to get a MSVC2015 binary build using Windows 10. So I would like to document a HOWTO for people in the community to repeat step-by-step to build Qt5.5.0 from sources. I did try to compile from qt.5.5.0 sources and ran into openssl path errors. Once I solve the openssl problems, I will likely run into others. Building from sources is trivial when everything goes right. Since openssl is needed and it does not come standard on a Windows machine, and since there is no "yum install openssl" on Windows 10, I found a MSVC2015 compiled developer ready package for the latest library and header files from the following link: http://p-nand-q.com/programming/windows/openssl-1.0.2d-32bit-release-dll-vs2015.7z Unzipped an put into: C:\macdev\openssl directory For those who want more security, build your openssl from sources. But that is not the goal here, we want to compile qt5.5.0 from sources using MSVC2015 Community edition. Using the git configure as a guide, I tried to do emulate as close as possible the binary package build: http://code.qt.io/cgit/qtsdk/qtsdk.git/tree/packaging-tools/releases/release-55?h=v5.5.0-packaging The closest config I could find was: -opensource -confirm-license -debug-and-release -release -nomake tests -nomake examples -qt-zlib -qt-libjpeg -qt-libpng -opengl dynamic -plugin-sql-mysql -plugin-sql-psql -plugin-sql-sqlite -plugin-sql-odbc -openssl -target xp -dbus So I removed the -target xp and removed some database stuff since I don't need it) Added in a platform option to point to the correct mkspec. Here is my shadow build batch file: *************************************************** mybuild.bat REM A script file to build mkdir C:\macdev\qt550\2015build cd C:\macdev\qt550\2015build REM Make sure you go grab a beer at Moe's with Homer before checking if the build is finished REM just clean things up before building again nmake clean REM OPENSSLBUILD -> Here is my openssl version (this fails with openssl.h path errors (copied below)) REM C:\macdev\qt550\src\configure -opensource -confirm-license -prefix C:\macdev\qt550\msvc2015x86 -opensource -debug-and-release -release -nomake tests -nomake examples -qt-zlib -qt-libjpeg -qt-libpng -opengl dynamic -dbus REM -platform win32-msvc2015 -openssl -I C:\macdev\openssl\ -I C:\macdev\openssl\include\ -I C:\macdev\openssl\include -L C:\macdev\openssl -L C:\macdev\openssl\bin -L C:\macdev\openssl\lib REM NOOPENSSLBUILD -> If it will not build with openssl, how will it work without openssl as a test? (Try below) C:\macdev\qt550\src\configure -opensource -confirm-license -prefix C:\macdev\qt550\msvc2015x86 -opensource -debug-and-release -release -nomake tests -nomake examples -qt-zlib -qt-libjpeg -qt-libpng -opengl dynamic -dbus -platform win32-msvc2015 -no-openssl -no-ssl <http://p-nand-q.com/programming/windows/openssl-1.0.2d-32bit-release-dll-vs2015.7z> REM Now Compile jom MANY SSL ERRORS ABOVE - But the net result: c:\macdev\qt550\src\qtbase\src\network\ssl\qsslsocket_p.h(185): error C2061: syntax error: identifier 'QSslCertificate' c:\macdev\qt550\src\qtbase\src\network\ssl\qsslsocket_p.h(199): error C3646: 'sessionCipher': unknown override specifier c:\macdev\qt550\src\qtbase\src\network\ssl\qsslsocket_p.h(199): error C2059: syntax error: ')' c:\macdev\qt550\src\qtbase\src\network\ssl\qsslsocket_p.h(199): error C2238: unexpected token(s) preceding ';' c:\macdev\qt550\src\qtbase\src\network\ssl\qsslsocket_openssl_p.h(75): fatal error C1083: Cannot open include file: 'openssl/asn1.h': No such file or directory What? My -no-openssl and -no-ssl should beg the question why Qt build process wants openssl. Cheers all, md
_______________________________________________ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest