Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Problem when using OpenSSL in the phone
Forum Updated to NodeBB v4.3 + New Features

Problem when using OpenSSL in the phone

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
7 Posts 3 Posters 249 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.
  • S Offline
    S Offline
    sfaei_Ahmed
    wrote 17 days ago last edited by
    #1

    Hello, I have built a project that uses a qt network and works without problems in the desktop and when I convert it to Android, it also works, but if I click on the button that sends the data to the server, this error occurs and no data is sent.IMG_0496.jpeg IMG_0495.jpeg

    R 1 Reply Last reply 17 days ago
    0
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote 17 days ago last edited by
      #2

      Hi and welcome to devnet,

      Did you include the OpenSSL libraries in your apk ?

      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
      • S sfaei_Ahmed
        17 days ago

        Hello, I have built a project that uses a qt network and works without problems in the desktop and when I convert it to Android, it also works, but if I click on the button that sends the data to the server, this error occurs and no data is sent.IMG_0496.jpeg IMG_0495.jpeg

        R Offline
        R Offline
        Ronel_qtmaster
        wrote 17 days ago last edited by
        #3

        @sfaei_Ahmed Just add android openssl libraries to your project.
        here is the guide https://github.com/KDAB/android_openssl
        I hope that it helps

        1 Reply Last reply
        0
        • S Offline
          S Offline
          sfaei_Ahmed
          wrote 16 days ago last edited by sfaei_Ahmed
          #4

          I included it inside the cmakelist.txt file, but I don't know how to include it in the apk file.Capture.PNG

          R 1 Reply Last reply 16 days ago
          0
          • S sfaei_Ahmed
            16 days ago

            I included it inside the cmakelist.txt file, but I don't know how to include it in the apk file.Capture.PNG

            R Offline
            R Offline
            Ronel_qtmaster
            wrote 16 days ago last edited by
            #5

            @sfaei_Ahmed first of all you have wrongly included it in cmakelist. second of all i already gave you the solution in the link above. There are guidelines for including openssl libs in cmake projects. Just take your time and read carefully.

            S 1 Reply Last reply 16 days ago
            0
            • R Ronel_qtmaster
              16 days ago

              @sfaei_Ahmed first of all you have wrongly included it in cmakelist. second of all i already gave you the solution in the link above. There are guidelines for including openssl libs in cmake projects. Just take your time and read carefully.

              S Offline
              S Offline
              sfaei_Ahmed
              wrote 16 days ago last edited by
              #6

              @Ronel_qtmaster I tried, but the problem is not solved. Please, if there are any projects or examples in which it is used, send it to me.

              1 Reply Last reply
              0
              • S Offline
                S Offline
                SGaist
                Lifetime Qt Champion
                wrote 16 days ago last edited by
                #7

                What exactly do you have now ?
                Did you get any error message on build ?
                Did you inspect the content of the APK ?

                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

                1/7

                16 May 2025, 08:14

                • Login

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