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. Include openssl source in qt project
Forum Updated to NodeBB v4.3 + New Features

Include openssl source in qt project

Scheduled Pinned Locked Moved Unsolved General and Desktop
6 Posts 3 Posters 1.6k Views 2 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.
  • M Offline
    M Offline
    msauer75
    wrote on last edited by
    #1

    Hi,
    I want to include the openssl source in my qmake qt project. The project should compile the openssl libraries at compile time.
    I have to crosscompile my project for android and windows. On both system I will get problems with missing openssl libraries, so I want to include the sources direct in my qt project.

    Thank you for your help.
    BR
    martin

    jsulmJ 1 Reply Last reply
    0
    • Kent-DorfmanK Offline
      Kent-DorfmanK Offline
      Kent-Dorfman
      wrote on last edited by
      #2

      there is no question in your post...and please don't ask "how do I include ssl source in my project for all my platforms?" Have you googled relevant topics? there should be much already online addressing how to compile or link with openssl.

      M 1 Reply Last reply
      0
      • M msauer75

        Hi,
        I want to include the openssl source in my qmake qt project. The project should compile the openssl libraries at compile time.
        I have to crosscompile my project for android and windows. On both system I will get problems with missing openssl libraries, so I want to include the sources direct in my qt project.

        Thank you for your help.
        BR
        martin

        jsulmJ Offline
        jsulmJ Offline
        jsulm
        Lifetime Qt Champion
        wrote on last edited by
        #3

        @msauer75 You should use subdirs project structure like https://riptutorial.com/qt/example/16535/subdirs-example and put OpenSSL as subdir generating a lib which is then referenced in places.

        https://forum.qt.io/topic/113070/qt-code-of-conduct

        1 Reply Last reply
        4
        • Kent-DorfmanK Kent-Dorfman

          there is no question in your post...and please don't ask "how do I include ssl source in my project for all my platforms?" Have you googled relevant topics? there should be much already online addressing how to compile or link with openssl.

          M Offline
          M Offline
          msauer75
          wrote on last edited by
          #4

          @Kent-Dorfman

          Sorry for the bad post. I searched on google, but I can't find postings which are solved my problem.

          1 Reply Last reply
          0
          • Kent-DorfmanK Offline
            Kent-DorfmanK Offline
            Kent-Dorfman
            wrote on last edited by
            #5

            Upon re-reading your post I think you would do better to separate the tasks out as

            1. building/installing ssl on the target platform
            2. building it for cross compile on the dev host
            3. and then linking against the cross compiled libs in your qt project.

            Trying to build a cross compiled ssl packaged on every qt build seems friviluos and overly complex.

            https://stackoverflow.com/questions/14681012/how-to-include-openssl-in-a-qt-project should help with step 3.

            M 1 Reply Last reply
            2
            • Kent-DorfmanK Kent-Dorfman

              Upon re-reading your post I think you would do better to separate the tasks out as

              1. building/installing ssl on the target platform
              2. building it for cross compile on the dev host
              3. and then linking against the cross compiled libs in your qt project.

              Trying to build a cross compiled ssl packaged on every qt build seems friviluos and overly complex.

              https://stackoverflow.com/questions/14681012/how-to-include-openssl-in-a-qt-project should help with step 3.

              M Offline
              M Offline
              msauer75
              wrote on last edited by
              #6

              @Kent-Dorfman
              In Qt 5.12.4 is openssl 1.1.1 included. Do you know, how I use this version or compile the libs?

              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