[Interest] Compile issues Qt5.5.0 with msvc2010 and openssl

Mathieu Slabbinck matty.slabbinck at gmail.com
Thu Aug 20 11:20:26 CEST 2015


Hi,

I'm trying to get a static compilation of Qt with msvc2010 and Openssl
(static) but I cannot seem to get it to work.

I'm running this configure line:

configure -static -debug-and-release -opengl desktop
-no-compile-examples -nomake tools -nomake examples -nomake tests
-openssl-linked -I C:\OpenSSL-Win32\include -L
C:\OpenSSL-Win32\lib\VC\static OPENSSL_LIBS="-lUser32 -lAdvapi32
-lGdi32" OPENSSL_LIBS_DEBUG="-lssleay32MTd -llibeay32MTd"
OPENSSL_LIBS_RELEASE="-lssleay32MT -llibeay32MT"
Compiling with jom, I always end up with the following error:

...
cl -c -FIQtXmlPatternsDepends -YuQtXmlPatternsDepends
-Fp.pch\release\Qt5XmlPatterns_pch.pch -nologo -Zc:wchar_t -arch:SSE2
-O2 -MD -EHsc -GR -W3 -w34100 -w34189 -w44996 -DUNICODE -DWIN32
-DQT_NO_USING_NAMESPACE
-DQT_ENABLE_QEXPLICITLYSHAREDDATAPOINTER_STATICCAST
-DQT_BUILD_XMLPATTERNS_LIB -DQT_BUILDING_QT -D_CRT_SECURE_NO_WARNINGS
-D_USE_MATH_DEFINES -DQT_NO_CAST_TO_ASCII -DQT_ASCII_CAST_WARNINGS
-DQT_MOC_COMPAT -DQT_USE_QSTRINGBUILDER -DQT_DEPRECATED_WARNINGS
-DQT_DISABLE_DEPRECATED_BEFORE=0x040800 -DQT_NO_DEBUG -DQT_NETWORK_LIB
-DQT_CORE_LIB -DNDEBUG -I. -IC:\OpenSSL-Win32\include -I..\..\include
-I..\..\include\QtXmlPatterns
-IC:\Qt\Qt5.5.0-msvc2010-static\qtbase\include
-IC:\Qt\Qt5.5.0-msvc2010-static\qtbase\include\QtXmlPatterns
-I..\..\include\QtXmlPatterns\5.5.0
-I..\..\include\QtXmlPatterns\5.5.0\QtXmlPatterns -Itmp -Iacceltree
-Idata -Iapi -Ienvironment -Iexpr -Ifunctions -Iiterators -Ijanitors
-Iparser -Ischema -Itype -Iutils
-IC:\Qt\Qt5.5.0-msvc2010-static\qtbase\include\QtCore\5.5.0
-IC:\Qt\Qt5.5.0-msvc2010-static\qtbase\include\QtCore\5.5.0\QtCore
-IC:\Qt\Qt5.5.0-msvc2010-static\qtbase\include\QtNetwork
-IC:\Qt\Qt5.5.0-msvc2010-static\qtbase\include\QtCore -I.moc\release
-IC:\Qt\Qt5.5.0-msvc2010-static\qtbase\mkspecs\win32-msvc2010
-Fo.obj\release\
@C:\Users\Mathieu\AppData\Local\Temp\moc_qabstracturiresolver.obj.5268.92078.jom
moc_qabstracturiresolver.cpp cl -c -FIQtXmlPatternsDepends
-YuQtXmlPatternsDepends -Fp.pch\release\Qt5XmlPatterns_pch.pch -nologo
-Zc:wchar_t -arch:SSE2 -O2 -MD -EHsc -GR -W3 -w34100 -w34189 -w44996
-DUNICODE -DWIN32 -DQT_NO_USING_NAMESPACE
-DQT_ENABLE_QEXPLICITLYSHAREDDATAPOINTER_STATICCAST
-DQT_BUILD_XMLPATTERNS_LIB -DQT_BUILDING_QT -D_CRT_SECURE_NO_WARNINGS
-D_USE_MATH_DEFINES -DQT_NO_CAST_TO_ASCII -DQT_ASCII_CAST_WARNINGS
-DQT_MOC_COMPAT -DQT_USE_QSTRINGBUILDER -DQT_DEPRECATED_WARNINGS
-DQT_DISABLE_DEPRECATED_BEFORE=0x040800 -DQT_NO_DEBUG -DQT_NETWORK_LIB
-DQT_CORE_LIB -DNDEBUG -I. -IC:\OpenSSL-Win32\include -I..\..\include
-I..\..\include\QtXmlPatterns
-IC:\Qt\Qt5.5.0-msvc2010-static\qtbase\include
-IC:\Qt\Qt5.5.0-msvc2010-static\qtbase\include\QtXmlPatterns
-I..\..\include\QtXmlPatterns\5.5.0
-I..\..\include\QtXmlPatterns\5.5.0\QtXmlPatterns -Itmp -Iacceltree
-Idata -Iapi -Ienvironment -Iexpr -Ifunctions -Iiterators -Ijanitors
-Iparser -Ischema -Itype -Iutils
-IC:\Qt\Qt5.5.0-msvc2010-static\qtbase\include\QtCore\5.5.0
-IC:\Qt\Qt5.5.0-msvc2010-static\qtbase\include\QtCore\5.5.0\QtCore
-IC:\Qt\Qt5.5.0-msvc2010-static\qtbase\include\QtNetwork
-IC:\Qt\Qt5.5.0-msvc2010-static\qtbase\include\QtCore -I.moc\release
-IC:\Qt\Qt5.5.0-msvc2010-static\qtbase\mkspecs\win32-msvc2010
-Fo.obj\release\
@C:\Users\Mathieu\AppData\Local\Temp\moc_qiodevicedelegate_p.obj.5268.92250.jom
moc_qiodevicedelegate_p.cpp lib /NOLOGO
/OUT:C:\Qt\Qt5.5.0-msvc2010-static\qtbase\lib\Qt5XmlPatterns.lib
@C:\Users\Mathieu\AppData\Local\Temp\Qt5XmlPatterns.lib.5268.103500.jom
cd tools\ && ( if not exist Makefile
C:\Qt\Qt5.5.0-msvc2010-static\qtbase\bin\qmake
C:\Qt\Qt5.5.0-msvc2010-static\qtxmlpatterns\tools\tools.pro -o
Makefile ) && c:\Qt\jom\jom.exe -f Makefile Qt: Untested Windows
version 10.0 detected! cd xmlpatterns\ && ( if not exist Makefile
C:\Qt\Qt5.5.0-msvc2010-static\qtbase\bin\qmake
C:\Qt\Qt5.5.0-msvc2010-static\qtxmlpatterns\tools\xmlpatterns\xmlpatterns.pro
-o Makefile ) && c:\Qt\jom\jom.exe -f Makefile Qt: Untested Windows
version 10.0 detected! c:\Qt\jom\jom.exe -f Makefile.Release Qt:
Untested Windows version 10.0 detected! cl -c -nologo -Zc:wchar_t -O2
-MD -GR -W3 -w34100 -w34189 -w44996 -DUNICODE -DWIN32
-DQT_NO_EXCEPTIONS -DQT_NO_DEBUG -DQT_XMLPATTERNS_LIB -DQT_NETWORK_LIB
-DQT_CORE_LIB -DNDEBUG -I. -IC:\OpenSSL-Win32\include
-I..\..\include\QtXmlPatterns\5.5.0
-I..\..\include\QtXmlPatterns\5.5.0\QtXmlPatterns -I..\..\include
-I..\..\include\QtXmlPatterns
-IC:\Qt\Qt5.5.0-msvc2010-static\qtbase\include
-IC:\Qt\Qt5.5.0-msvc2010-static\qtbase\include\QtXmlPatterns
-IC:\Qt\Qt5.5.0-msvc2010-static\qtbase\include\QtNetwork
-IC:\Qt\Qt5.5.0-msvc2010-static\qtbase\include\QtCore -I.moc\release
-IC:\Qt\Qt5.5.0-msvc2010-static\qtbase\mkspecs\win32-msvc2010
-Fo.obj\release\
@C:\Users\Mathieu\AppData\Local\Temp\main.obj.3928.16.jom main.cpp cl
-c -nologo -Zc:wchar_t -O2 -MD -GR -W3 -w34100 -w34189 -w44996
-DUNICODE -DWIN32 -DQT_NO_EXCEPTIONS -DQT_NO_DEBUG
-DQT_XMLPATTERNS_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DNDEBUG -I.
-IC:\OpenSSL-Win32\include -I..\..\include\QtXmlPatterns\5.5.0
-I..\..\include\QtXmlPatterns\5.5.0\QtXmlPatterns -I..\..\include
-I..\..\include\QtXmlPatterns
-IC:\Qt\Qt5.5.0-msvc2010-static\qtbase\include
-IC:\Qt\Qt5.5.0-msvc2010-static\qtbase\include\QtXmlPatterns
-IC:\Qt\Qt5.5.0-msvc2010-static\qtbase\include\QtNetwork
-IC:\Qt\Qt5.5.0-msvc2010-static\qtbase\include\QtCore -I.moc\release
-IC:\Qt\Qt5.5.0-msvc2010-static\qtbase\mkspecs\win32-msvc2010
-Fo.obj\release\
@C:\Users\Mathieu\AppData\Local\Temp\xmlpatterns_plugin_import.obj.3928.63.jom
xmlpatterns_plugin_import.cpp cl -c -nologo -Zc:wchar_t -O2 -MD -GR
-W3 -w34100 -w34189 -w44996 -DUNICODE -DWIN32 -DQT_NO_EXCEPTIONS
-DQT_NO_DEBUG -DQT_XMLPATTERNS_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB
-DNDEBUG -I. -IC:\OpenSSL-Win32\include
-I..\..\include\QtXmlPatterns\5.5.0
-I..\..\include\QtXmlPatterns\5.5.0\QtXmlPatterns -I..\..\include
-I..\..\include\QtXmlPatterns
-IC:\Qt\Qt5.5.0-msvc2010-static\qtbase\include
-IC:\Qt\Qt5.5.0-msvc2010-static\qtbase\include\QtXmlPatterns
-IC:\Qt\Qt5.5.0-msvc2010-static\qtbase\include\QtNetwork
-IC:\Qt\Qt5.5.0-msvc2010-static\qtbase\include\QtCore -I.moc\release
-IC:\Qt\Qt5.5.0-msvc2010-static\qtbase\mkspecs\win32-msvc2010
-Fo.obj\release\
@C:\Users\Mathieu\AppData\Local\Temp\qapplicationargument.obj.3928.31.jom
qapplicationargument.cpp cl -c -nologo -Zc:wchar_t -O2 -MD -GR -W3
-w34100 -w34189 -w44996 -DUNICODE -DWIN32 -DQT_NO_EXCEPTIONS
-DQT_NO_DEBUG -DQT_XMLPATTERNS_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB
-DNDEBUG -I. -IC:\OpenSSL-Win32\include
-I..\..\include\QtXmlPatterns\5.5.0
-I..\..\include\QtXmlPatterns\5.5.0\QtXmlPatterns -I..\..\include
-I..\..\include\QtXmlPatterns
-IC:\Qt\Qt5.5.0-msvc2010-static\qtbase\include
-IC:\Qt\Qt5.5.0-msvc2010-static\qtbase\include\QtXmlPatterns
-IC:\Qt\Qt5.5.0-msvc2010-static\qtbase\include\QtNetwork
-IC:\Qt\Qt5.5.0-msvc2010-static\qtbase\include\QtCore -I.moc\release
-IC:\Qt\Qt5.5.0-msvc2010-static\qtbase\mkspecs\win32-msvc2010
-Fo.obj\release\
@C:\Users\Mathieu\AppData\Local\Temp\qapplicationargumentparser.obj.3928.31.jom
qapplicationargumentparser.cpp link /NOLOGO /DYNAMICBASE /NXCOMPAT
/INCREMENTAL:NO /SUBSYSTEM:CONSOLE "/MANIFESTDEPENDENCY:type='win32'
name='Microsoft.Windows.Common-Controls' version='6.0.0.0'
publicKeyToken='6595b64144ccf1df' language='*'
processorArchitecture='*'" /MANIFEST
/MANIFESTFILE:C:\Qt\Qt5.5.0-msvc2010-static\qtbase\bin\xmlpatterns.exe.embed.manifest
/OUT:C:\Qt\Qt5.5.0-msvc2010-static\qtbase\bin\xmlpatterns.exe
@C:\Users\Mathieu\AppData\Local\Temp\xmlpatterns.exe.3928.2266.jom
Creating library
C:\Qt\Qt5.5.0-msvc2010-static\qtbase\bin\xmlpatterns.lib and object
C:\Qt\Qt5.5.0-msvc2010-static\qtbase\bin\xmlpatterns.exp
libeay32MT.lib(obj_dat.obj) : error LNK2019: unresolved external
symbol ___report_rangecheckfailure referenced in function
_OBJ_create_objects
libeay32MT.lib(b_print.obj) : error LNK2001: unresolved external
symbol ___report_rangecheckfailure
libeay32MT.lib(pem_lib.obj) : error LNK2001: unresolved external
symbol ___report_rangecheckfailure
libeay32MT.lib(b_dump.obj) : error LNK2001: unresolved external symbol
___report_rangecheckfailure
C:\Qt\Qt5.5.0-msvc2010-static\qtbase\bin\xmlpatterns.exe : fatal error
LNK1120: 1 unresolved externals
jom: C:\Qt\Qt5.5.0-msvc2010-static\qtxmlpatterns\tools\xmlpatterns\Makefile.Release
[C:\Qt\Qt5.5.0-msvc2010-static\qtbase\bin\xmlpatterns.exe]
Error 1120 jom:
C:\Qt\Qt5.5.0-msvc2010-static\qtxmlpatterns\tools\xmlpatterns\Makefile
[release]
Error 2 jom: C:\Qt\Qt5.5.0-msvc2010-static\qtxmlpatterns\tools\Makefile
[sub-xmlpatterns-make_first]
Error 2 jom: C:\Qt\Qt5.5.0-msvc2010-static\qtxmlpatterns\Makefile
[sub-tools-make_first]
Error 2 jom: C:\Qt\Qt5.5.0-msvc2010-static\Makefile
[module-qtxmlpatterns-make_first] Error 2

Can anyone push me in the right direction to resolve this?

Kind regards

Mathieu



More information about the Interest mailing list