Build 5.1 with -openssl-linked



  • Hi guys,
    I need to build Qt 5.1 with linked openssl in a64 platform via MS 2010. But I got some errors, I need some help, thanks. My steps are below:

    I download Win64 OpenSSL v1.0.1e from http://slproweb.com/products/Win32OpenSSL.html.

    Install openssl in E:\OpenSSL-Win64

    set environment variable include: SET INCLUDE=%INCLUDE%;E:\OpenSSL-Win64\include

    set environment variable lib: SET LIB=%LIB%;E:\OpenSSL-Win64\lib\VC\static

    config option:

    @configure -prefix E:\qt-5.1.0\msvc2010 -mp -opensource -confirm-license -platform win32-msvc2010 -c++11 -icu -openssl-linked -I E:\OpenSSL-Win64\include -L E:\OpenSSL-Win64\lib\VC\static OPENSSL_LIBS_DEBUG="-lssleay32MDd -llibeay32MDd" OPENSSL_LIBS_RELEASE="-lssleay32MD -llibeay32MD" -opengl desktop -nomake demos -nomake examples -nomake tests@

    but when I ran nmake, I got the error message:

        echo 2 /* CREATEPROCESS_MANIFEST_RESOURCE_ID */ 24 /* RT_MANIFEST */ "..\\..\\lib\\Qt5Networkd.dll.embed.manifest">..\..\lib\Qt5Networkd.dll_manifest.rc
        if not exist ..\..\lib\Qt5Networkd.dll if exist ..\..\lib\Qt5Networkd.dll.embed.manifest del ..\..\lib\Qt5Networkd.dll.embed.manifest
        if exist ..\..\lib\Qt5Networkd.dll.embed.manifest copy /Y ..\..\lib\Qt5Networkd.dll.embed.manifest ..\..\lib\Qt5Networkd.dll_manifest.bak
        link /NOLOGO /DYNAMICBASE /NXCOMPAT /BASE:0x64000000 /DEBUG /DLL /VERSION:5.10 /MANIFEST /MANIFESTFILE:..\..\lib\Qt5Networkd.dll.embed.manifest /OUT:..\..\lib\Qt5Networkd.dll @C:\Users\ADMINI~1\AppData\Local\Temp\2\nm9308.tmp
    

    Creating library ....\lib\Qt5Networkd.lib and object ....\lib\Qt5Networkd.exp

    *qsslsocket_openssl_symbols.obj : error LNK2019: unresolved external symbol ASN1_INTEGER_get referenced in function "long __cdecl q_ASN1_INTEGER_get(struct asn1_string_st )" (?q_ASN1_INTEGER_get@@YAJPEAUasn1_string_st@@@Z)
    *qsslsocket_openssl_symbols.obj : error LNK2019: unresolved external symbol ASN1_STRING_data referenced in function "unsigned char * __cdecl q_ASN1_STRING_data(struct asn1_string_st )" (?q_ASN1_STRING_data@@YAPEAEPEAUasn1_string_st@@@Z)
    *qsslsocket_openssl_symbols.obj : error LNK2019: unresolved external symbol ASN1_STRING_length referenced in function "int __cdecl q_ASN1_STRING_length(struct asn1_string_st )" (?q_ASN1_STRING_length@@YAHPEAUasn1_string_st@@@Z)
    qsslsocket_openssl_symbols.obj : error LNK2019: unresolved external symbol ASN1_STRING_to_UTF8 referenced in function "int __cdecl q_ASN1_STRING_to_UTF8(unsigned char * *,struct asn1_string_st *)" (?q_ASN1_STRING_to_UTF8@@YAHPEAPEAEPEAUasn1_string_st@@@Z)
    qsslsocket_openssl_symbols.obj : error LNK2019: unresolved external symbol BIO_ctrl referenced in function "long __cdecl q_BIO_ctrl(struct bio_st *,int,long,void *)" (?q_BIO_ctrl@@YAJPEAUbio_st@@HJPEAX@Z)
    qsslsocket_openssl_symbols.obj : error LNK2019: unresolved external symbol BIO_free referenced in function "int __cdecl q_BIO_free(struct bio_st *)" (?q_BIO_free@@YAHPEAUbio_st@@@Z)
    qsslsocket_openssl_symbols.obj : error LNK2019: unresolved external symbol BIO_new referenced in function "struct bio_st * __cdecl q_BIO_new(struct bio_method_st *)" (?q_BIO_new@@YAPEAUbio_st@@PEAUbio_method_st@@@Z)
    qsslsocket_openssl_symbols.obj : error LNK2019: unresolved external symbol BIO_new_mem_buf referenced in function "struct bio_st * __cdecl q_BIO_new_mem_buf(void *,int)" (?q_BIO_new_mem_buf@@YAPEAUbio_st@@PEAXH@Z)
    qsslsocket_openssl_symbols.obj : error LNK2019: unresolved external symbol BIO_read referenced in function "int __cdecl q_BIO_read(struct bio_st *,void *,int)" (?q_BIO_read@@YAHPEAUbio_st@@PEAXH@Z)
    qsslsocket_openssl_symbols.obj : error LNK2019: unresolved external symbol BIO_s_mem referenced in function "struct bio_method_st * __cdecl q_BIO_s_mem(void)" (?q_BIO_s_mem@@YAPEAUbio_method_st@@XZ)
    qsslsocket_openssl_symbols.obj : error LNK2019: unresolved external symbol BIO_write referenced in function "int __cdecl q_BIO_write(struct bio_st *,void const *,int)" (?q_BIO_write@@YAHPEAUbio_st@@PEBXH@Z)
    qsslsocket_openssl_symbols.obj : error LNK2019: unresolved external symbol BN_num_bits referenced in function "int __cdecl q_BN_num_bits(struct bignum_st const )" (?q_BN_num_bits@@YAHPEBUbignum_st@@@Z)
    qsslsocket_openssl_symbols.obj : error LNK2019: unresolved external symbol CRYPTO_num_locks referenced in function "int __cdecl q_CRYPTO_num_locks(void)" (?q_CRYPTO_num_locks@@YAHXZ)
    qsslsocket_openssl_symbols.obj : error LNK2019: unresolved external symbol CRYPTO_set_locking_callback referenced in function "void __cdecl q_CRYPTO_set_locking_callback(void (__cdecl
    )(int,int,char const ,int))" (?q_CRYPTO_set_locking_callback@@YAXP6AXHHPEBDH@Z@Z)
    qsslsocket_openssl_symbols.obj : error LNK2019: unresolved external symbol CRYPTO_set_id_callback referenced in function "void __cdecl q_CRYPTO_set_id_callback(unsigned long (__cdecl
    )(void))" (?q_CRYPTO_set_id_callback@@YAXP6AKXZ@Z)
    ......


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.