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. How to use openssl libraries in qt cmakelist.txt
Forum Updated to NodeBB v4.3 + New Features

How to use openssl libraries in qt cmakelist.txt

Scheduled Pinned Locked Moved Unsolved General and Desktop
5 Posts 3 Posters 648 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.
  • P Offline
    P Offline
    Pawankumar
    wrote on last edited by
    #1

    I have selected openssl while selecting components during the installing of QT Creator.
    How to include openssl libraries in cmakelist.txt as i am unable to detect it ?
    DO I NEED TO UPDATE THE ENVIRONMENT VARIABLES OF THE SYSTEM ?
    Please help me out .

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

      Hi,

      Do you want to use OpenSSL manually in your project ?

      @Pawankumar said in How to use openssl libraries in qt cmakelist.txt:

      DO I NEED TO UPDATE THE ENVIRONMENT VARIABLES OF THE SYSTEM ?

      On a side note, writing phrases all uppercased like that is considered shouting and rude in written language.

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

      P 1 Reply Last reply
      1
      • SGaistS SGaist

        Hi,

        Do you want to use OpenSSL manually in your project ?

        @Pawankumar said in How to use openssl libraries in qt cmakelist.txt:

        DO I NEED TO UPDATE THE ENVIRONMENT VARIABLES OF THE SYSTEM ?

        On a side note, writing phrases all uppercased like that is considered shouting and rude in written language.

        P Offline
        P Offline
        Pawankumar
        wrote on last edited by
        #3

        Hello @SGaist thanks for your reply .
        Yes i want to use openssl on windows QT environment . I have tried many solutions for including openssl in my cmakelist.txt .
        But it is unable to detect it .
        solutions i have tried so far .

        1. Installing openssl.exe on system and including it's path in the cmakelist.txt .
          2)Tried compiling openssl with mingw32 .
          3)I have also reinstalled QT on windows and while selecting the components there was a option of selecting openssl i have selected it and installed it but i am use it .
          Please help me out .
        C 1 Reply Last reply
        0
        • P Pawankumar

          Hello @SGaist thanks for your reply .
          Yes i want to use openssl on windows QT environment . I have tried many solutions for including openssl in my cmakelist.txt .
          But it is unable to detect it .
          solutions i have tried so far .

          1. Installing openssl.exe on system and including it's path in the cmakelist.txt .
            2)Tried compiling openssl with mingw32 .
            3)I have also reinstalled QT on windows and while selecting the components there was a option of selecting openssl i have selected it and installed it but i am use it .
            Please help me out .
          C Offline
          C Offline
          ChrisW67
          wrote on last edited by ChrisW67
          #4

          @Pawankumar
          At build time: If you intend to use only the Qt classes for SSL connections then you should not need to directly reference the OpenSSL libraries in your project file at all.

          At run time:

          • During Development. Set your IDE, or equivalent, to include the location of the OpenSSL DLL files in the PATH passed to your executable.
          • Deployed. The OpenSSL DLLs would need to be found either beside the application executable or in a location on the system's PATH.
          P 1 Reply Last reply
          2
          • C ChrisW67

            @Pawankumar
            At build time: If you intend to use only the Qt classes for SSL connections then you should not need to directly reference the OpenSSL libraries in your project file at all.

            At run time:

            • During Development. Set your IDE, or equivalent, to include the location of the OpenSSL DLL files in the PATH passed to your executable.
            • Deployed. The OpenSSL DLLs would need to be found either beside the application executable or in a location on the system's PATH.
            P Offline
            P Offline
            Pawankumar
            wrote on last edited by
            #5

            @ChrisW67 Thanks for your answer . I have referred to the document 72cc0e47-4ada-40f9-af9c-159339bc304c-image.png https://wiki.qt.io/Compiling_OpenSSL_with_MinGW but while building project in windows environment . I am getting error that some libraries are not found . Which are of openssl .
            Also another approach which i followed is directly installing openssl using it's installer ,it worked but i want to compile it and make it work .Help me out please.

            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