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. OpenSSL libs not found on compilation

OpenSSL libs not found on compilation

Scheduled Pinned Locked Moved Unsolved General and Desktop
opensslibrabrieslink
4 Posts 2 Posters 1.8k Views
  • 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.
  • R Offline
    R Offline
    reezeus
    wrote on last edited by
    #1

    Hi

    I'm trying to use the Smtp client from morf.lv in my project. I first installed openSSL 64bits and created a CSR. I have also include the path in my environment variables PATH.
    I have linked the 2 libs "libeay32" and "ssleay32" to my project, but when I compile it says it cannot find -llibeay32 and -lssleay32.

    I have included the 2 libs using the Qt tool to be sure there's no syntax error, so the include looks like this in my .pro file:

    unix|win32: LIBS += -L$$PWD/C:/OpenSSL-Win64/lib/ -lubsec

    INCLUDEPATH += $$PWD/C:/OpenSSL-Win64/include
    DEPENDPATH += $$PWD/C:/OpenSSL-Win64/include

    unix|win32: LIBS += -L$$PWD/C:/OpenSSL-Win64/lib/ -lssleay32

    INCLUDEPATH += $$PWD/C:/OpenSSL-Win64/include
    DEPENDPATH += $$PWD/C:/OpenSSL-Win64/include

    I'm using Qt5.5 on Windows 7 64 bits.

    Does anyone have an idea how to solve it pls?
    Thanks

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      Why do you have $$PWD before C:/ ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • R Offline
        R Offline
        reezeus
        wrote on last edited by
        #3

        Hi SGaist

        Qt put it automatically, I have removed and now it seems to compile; but after compilation I have another error now, in a popup window:
        Executable Failed: During startup program exited with code 0xc000003b

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          Probably not finding the OpenSSL dlls when running. Go to the Run part of the Project panel and edit the PATH environment variable there. Add the path to where the OpenSSL dlls can be found and re-run the application.

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          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