[Solved] Windows and OpenSSL linker error: cannot open file 'ssl.lib'



  • As the above says: Getting linker error when building.

    Qt version: Windows Desktop Qt 5.1.0 MSVC2010 32bit
    Installed OpenSSL libraries/headers; header files are found just fine.

    Relevant pieces of my .pro file:

    LIBS+= -LC:/OpenSSL-Win32/lib -lubsec -lssl -llibeay32
    INCLUDEPATH+= C:/OpenSSL-Win32/include
    CONFIG+= openssl-linked # same result using CONFIG+= openssl

    Edit: Had this as well, but not sure if it's useful on windows - at least it has no effect on the problem described:

    CONFIG += kqoauth crypto

    Any pointers? This works out of the box on Mac OS.



  • Change
    LIBS+= -LC:/OpenSSL-Win32/lib -lubsec -lssl -llibeay32
    to
    LIBS+= -LC:/OpenSSL-Win32/lib -lubsec -lssleay32 -llibeay32



  • Thanks a bunch!


Log in to reply
 

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