Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

Build Qt 5.2.1 with Openssl using Visual C++ 2013



  • Sorry I posted this before in the wrong place on another thread.

    The issue is I want to build Qt with Openssl on the latest version of Visual C++. I can build Qt without Openssl, but get an error trying to build it with.

    I configured openssl like this:

    perl Configure VC-WIN32 —prefix=c:\Qt\openssl-1.0.1f\openssl-1.0.1f\release

    Qt5 like this, tried both with and without -c++11:

    configure.exe -platform win32-msvc2012 -c++11 -opensource -openssl -I C:\qt\openssl-1.0.1f\openssl-1.0.1f\include

    The error message points to this line of code:

    SSL* createSsl();

    I can’t see anything wrong with it. Error message below.

    Ideas?

    Robin

    qhttpthreaddelegate.cpp
    C:\qt\openssl-1.0.1f\openssl-1.0.1f\include\openssl/ssl.h(1) : error C2059: synt
    ax error : ‘.’
    c:\qt\qt-everywhere-opensource-src-5.2.1\qt-everywhere-opensource-src-5.2.1\qtba
    se\include\qtnetwork\5.2.1\qtnetwork\private../../../../../src/network/ssl/qssl
    context_p.h(69) : error C2143: syntax error : missing ‘;’ before ‘*’
    c:\qt\qt-everywhere-opensource-src-5.2.1\qt-everywhere-opensource-src-5.2.1\qtba
    se\include\qtnetwork\5.2.1\qtnetwork\private../../../../../src/network/ssl/qssl
    context_p.h(69) : error C4430: missing type specifier – int assumed. Note: C++ d
    oes not support default-int
    c:\qt\qt-everywhere-opensource-src-5.2.1\qt-everywhere-opensource-src-5.2.1\qtba
    se\include\qtnetwork\5.2.1\qtnetwork\private../../../../../src/network/ssl/qssl
    context_p.h(69) : warning C4183: ‘createSsl’: missing return type; assumed to be a member function returning ‘int’
    c:\qt\qt-everywhere-opensource-src-5.2.1\qt-everywhere-opensource-src-5.2.1\qtba
    se\include\qtnetwork\5.2.1\qtnetwork\private../../../../../src/network/ssl/qssl
    context_p.h(70) : error C2061: syntax error : identifier ‘SSL’


Log in to reply