Failed to build Qt5.8 with openssl1.0.2p linked[MSVC2015]
-
Hi every one.
I'm trying to build qt via following options :configure -developer-build -debug-and-release -opensource -confirm-license -shared -mp -openssl-linked -IC:\OpenSSL-Win32\include -LC:\OpenSSL-Win32\lib -nomake examples -nomake tests -platform win32-msvc2015 -skip qt3d -skip qtactiveqt -skip qtandroidextras -skip qtcanvas3d -skip qtcharts -skip qtconnectivity -skip qtdatavis3d -skip qtdoc -skip qtdeclarative -skip qtgamepad -skip qtgraphicaleffects -skip qtimageformats -skip qtlocation -skip qtmacextras -skip qtmultimedia -skip qtpurchasing -skip qtquickcontrols -skip qtquickcontrols2 -skip qtscript -skip qtsensors -skip qtspeech -skip qtsvg -skip qtvirtualkeyboard -skip qtwebchannel -skip qtwebengine -skip qtwebview -skip qtwebsockets -skip qtwayland -skip qtxmlpatterns
But here's the compiler failure when building network part:
.
.
.
moc_qsslsocket_openssl_p.cpp
Generating Code...
link /NOLOGO /DYNAMICBASE /NXCOMPAT /BASE:0x64000000 /DEBUG /DLL /SUBSYSTEM:WINDOWS /VERSION:5.8 /MANIFEST:embed /OUT:....\lib\Qt5Networkd.dll @C:\Users\Iman\AppData\Local\Temp\nm2F86.tmp
Creating library ....\lib\Qt5Networkd.lib and object ....\lib\Qt5Networkd.exp
libeay32MDd.lib(gost_eng.obj) : error LNK2001: unresolved external symbol __imp____iob_func
libeay32MDd.lib(ui_openssl.obj) : error LNK2001: unresolved external symbol __imp____iob_func
ssleay32MDd.lib(t1_enc.obj) : error LNK2001: unresolved external symbol __imp____iob_func
libeay32MDd.lib(cryptlib.obj) : error LNK2001: unresolved external symbol __imp____iob_func
libeay32MDd.lib(txt_db.obj) : error LNK2001: unresolved external symbol __imp____iob_func
libeay32MDd.lib(e_capi.obj) : error LNK2001: unresolved external symbol __imp____iob_func
ssleay32MDd.lib(t1_enc.obj) : error LNK2019: unresolved external symbol __imp__fprintf referenced in function _tls1_enc
libeay32MDd.lib(txt_db.obj) : error LNK2001: unresolved external symbol __imp__fprintf
libeay32MDd.lib(gost_eng.obj) : error LNK2001: unresolved external symbol __imp__fprintf
libeay32MDd.lib(ui_openssl.obj) : error LNK2001: unresolved external symbol __imp__fprintf
libeay32MDd.lib(cryptlib.obj) : error LNK2019: unresolved external symbol __imp__sscanf referenced in function _OPENSSL_cpuid_setup
libeay32MDd.lib(v3_utl.obj) : error LNK2001: unresolved external symbol __imp__sscanf
libeay32MDd.lib(cryptlib.obj) : error LNK2019: unresolved external symbol __imp___vsnprintf referenced in function _OPENSSL_showfatal
libeay32MDd.lib(pqueue.obj) : error LNK2019: unresolved external symbol __imp__printf referenced in function _pqueue_print
libeay32MDd.lib(gost_eng.obj) : error LNK2001: unresolved external symbol __imp__printf
libeay32MDd.lib(e_cswift.obj) : error LNK2019: unresolved external symbol __imp__sprintf referenced in function _cswift_dsa_sign
libeay32MDd.lib(dso_win32.obj) : error LNK2001: unresolved external symbol __imp__sprintf
....\lib\Qt5Networkd.dll : fatal error LNK1120: 6 unresolved externals
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\link.EXE"' : return code '0x460'
Stop.
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\nmake.exe"' : return code '0x2'
Stop.
NMAKE : fatal error U1077: 'cd' : return code '0x2'
Stop.
NMAKE : fatal error U1077: 'cd' : return code '0x2'
Stop.
NMAKE : fatal error U1077: 'cd' : return code '0x2'
Stop.What's wrong ?
-
Hi,
Please be more patient before bumping your own thread and allow at least 24 hours before doing it. Not all people coming on this forum are living in the same time zone as you.
That said, are you sure you got OpenSSL for the correct architecture ?
-
@SGaist
Sorry, you're right.I've downloaded this version(
1.0.2p
) from HERE:
With following structure:
| changes.txt | faq.txt | libeay32.dll | libssl32.dll | license.txt | news.txt | readme.txt | ssleay32.dll | unins000.dat | unins000.exe | +---bin | | 4758cca.dll | | aep.dll | | atalla.dll | | bad_dtls_test.exe | | bftest.exe | | bntest.exe | | CA.pl | | capi.dll | | casttest.exe | | chil.dll | | clienthellotest.exe | | constant_time_test.exe | | cswift.dll | | destest.exe | | dhtest.exe | | dsatest.exe | | dtlstest.exe | | ecdhtest.exe | | ecdsatest.exe | | ectest.exe | | enginetest.exe | | evp_extra_test.exe | | evp_test.exe | | exptest.exe | | fatalerrtest.exe | | gmp.dll | | gost.dll | | heartbeat_test.exe | | hmactest.exe | | ideatest.exe | | igetest.exe | | libeay32.dll | | md4test.exe | | md5test.exe | | mdc2test.exe | | msvcr120.dll | | nuron.dll | | openssl.cfg | | openssl.exe | | padlock.dll | | randtest.exe | | rc2test.exe | | rc4test.exe | | rmdtest.exe | | rsa_test.exe | | sha1test.exe | | sha256t.exe | | sha512t.exe | | shatest.exe | | srptest.exe | | ssleay32.dll | | ssltest.exe | | sslv2conftest.exe | | sureware.dll | | ubsec.dll | | v3nametest.exe | | verify_extra_test.exe | | wp_test.exe | | | \---PEM | | ca-cert.srl | | ca-key.pem | | ca-req.pem | | cert.pem | | client.pem | | dh1024.pem | | dh2048.pem | | dh4096.pem | | dh512.pem | | dsa-ca.pem | | dsa-pca.pem | | dsa1024.pem | | dsa512.pem | | dsap.pem | | pca-cert.srl | | pca-key.pem | | pca-req.pem | | privkey.pem | | req.pem | | rsa8192.pem | | s1024key.pem | | s1024req.pem | | s512-key.pem | | s512-req.pem | | server.pem | | server.srl | | server2.pem | | testCA.pem | | | +---demoCA | | | cacert.pem | | | index.txt | | | serial | | | | | \---private | | cakey.pem | | | \---set | set-g-ca.pem | set-m-ca.pem | set_b_ca.pem | set_c_ca.pem | set_d_ct.pem | set_root.pem | +---exp | 4758cca.exp | aep.exp | atalla.exp | capi.exp | chil.exp | cswift.exp | gmp.exp | gost.exp | libeay32.exp | nuron.exp | padlock.exp | ssleay32.exp | sureware.exp | ubsec.exp | +---include | \---openssl | aes.h | applink.c | asn1.h | asn1t.h | asn1_mac.h | bio.h | blowfish.h | bn.h | buffer.h | camellia.h | cast.h | cmac.h | cms.h | comp.h | conf.h | conf_api.h | crypto.h | des.h | des_old.h | dh.h | dsa.h | dso.h | dtls1.h | ebcdic.h | ec.h | ecdh.h | ecdsa.h | engine.h | err.h | evp.h | e_os2.h | hmac.h | idea.h | krb5_asn.h | kssl.h | lhash.h | md4.h | md5.h | mdc2.h | modes.h | objects.h | obj_mac.h | ocsp.h | opensslconf.h | opensslv.h | ossl_typ.h | pem.h | pem2.h | pkcs12.h | pkcs7.h | pqueue.h | rand.h | rc2.h | rc4.h | ripemd.h | rsa.h | safestack.h | seed.h | sha.h | srp.h | srtp.h | ssl.h | ssl2.h | ssl23.h | ssl3.h | stack.h | symhacks.h | tls1.h | ts.h | txt_db.h | ui.h | ui_compat.h | whrlpool.h | x509.h | x509v3.h | x509_vfy.h | \---lib | 4758cca.lib | aep.lib | atalla.lib | capi.lib | chil.lib | cswift.lib | gmp.lib | gost.lib | libeay32.lib | nuron.lib | padlock.lib | ssleay32.lib | sureware.lib | ubsec.lib | +---MinGW | libeay32.a | libeay32.def | ssleay32.a | ssleay32.def | \---VC | libeay32MD.lib | libeay32MDd.lib | libeay32MT.lib | libeay32MTd.lib | ssleay32MD.lib | ssleay32MDd.lib | ssleay32MT.lib | ssleay32MTd.lib | \---static libeay32MD.lib libeay32MDd.lib libeay32MT.lib libeay32MTd.lib ssleay32MD.lib ssleay32MDd.lib ssleay32MT.lib ssleay32MTd.lib
-
Aren't you building a 64bit version of Qt while using a 32bit version of OpenSSL ?