Details
-
Bug
-
Resolution: Invalid
-
Not Evaluated
-
None
-
5.4.1
-
None
-
win32-msvc2013
Description
I am trying to make a static build of Qt (version 5.4) with OpenSSL support. I configured it as follows:
configure -opensource -release -c++11 -static -platform win32-msvc2013 -openssl-linked -I C:\OpenSSL-Win32\include -L C:\OpenSSL-Win32\lib\VC\static -nomake examples -nomake tests
The include and lib directories are valid. I am getting loads of linking errors in Qt5Network.lib.
Qt5Network.lib(qhttpnetworkconnectionchannel.obj) : error LNK2019: unresolved ex ternal symbol "public: static class QSharedPointer<class QSslContext> __cdecl QS slSocketPrivate::sslContext(class QSslSocket *)" (?sslContext@QSslSocketPrivate@ @SA?AV?$QSharedPointer@VQSslContext@@@@PAVQSslSocket@@@Z) referenced in function "protected: void __thiscall QHttpNetworkConnectionChannel::_q_connected(void)" (?_q_connected@QHttpNetworkConnectionChannel@@IAEXXZ) Qt5Network.lib(qhttpprotocolhandler.obj) : error LNK2019: unresolved external sy mbol "public: __int64 __thiscall QSslSocket::encryptedBytesToWrite(void)const " (?encryptedBytesToWrite@QSslSocket@@QBE_JXZ) referenced in function "private: vi rtual bool __thiscall QHttpProtocolHandler::sendRequest(void)" (?sendRequest@QHt tpProtocolHandler@@EAE_NXZ) C:\Qt\5.4\qtbase\bin\xmlpatterns.exe : fatal error LNK1120: 31 unresolved extern als jom: C:\Qt\5.4\qtxmlpatterns\tools\xmlpatterns\Makefile [release] Error 2 jom: C:\Qt\5.4\qtxmlpatterns\tools\Makefile [sub-xmlpatterns-make_first] Error 2 jom: C:\Qt\5.4\qtxmlpatterns\Makefile [sub-tools-make_first] Error 2 jom: C:\Qt\5.4\Makefile [module-qtxmlpatterns-make_first] Error 2
I was able to create a static build before without OpenSSL support. The error messages also suggest, that the problem is associated to OpenSSL.
On StackOverflow it was suggested that this may be a Qt bug:
http://stackoverflow.com/questions/30556162/static-build-of-qt-qt5network-linking-error