Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. [Solved] Windows and OpenSSL linker error: cannot open file 'ssl.lib'
Forum Updated to NodeBB v4.3 + New Features

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

Scheduled Pinned Locked Moved General and Desktop
3 Posts 2 Posters 4.3k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    janfaroe
    wrote on last edited by
    #1

    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.

    1 Reply Last reply
    0
    • M Offline
      M Offline
      MarianMMX
      wrote on last edited by
      #2

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

      1 Reply Last reply
      1
      • J Offline
        J Offline
        janfaroe
        wrote on last edited by
        #3

        Thanks a bunch!

        1 Reply Last reply
        0

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved