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. Openssl problem
Forum Updated to NodeBB v4.3 + New Features

Openssl problem

Scheduled Pinned Locked Moved Mobile and Embedded
11 Posts 2 Posters 2.6k 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.
  • N Offline
    N Offline
    nikohal
    wrote on last edited by
    #1

    When I try compile qt from source to android platform, it not comile ssl support. My configure string is here:
    ./configure -verbose -openssl -I /usr/include/ -prefix $PWD/qtbase -no-rpath -release -xplatform android-g++ -nomake tests -nomake examples -android-ndk /home/nikohal/qt5/qt5/android-ndk-r10/ -android-sdk /home/nikohal/qt5/qt5/adb-bundle-linux-x68-20140702/sdk/ -android-ndk-platform android-19 -android-ndk-host linux-x86 -android-toolchain-version 4.8 -skip qttranslations -skip qtwebkit -skip qtserialport -skip qtwebkit-examples -no-warnings-are-errors -no-dbus

    I also try this: ./configure -verbose -openssl -xplatform android-g++ -nomake tests -nomake examples -android-ndk /home/nikohal/qt5/qt5/android-ndk-r10/ -android-sdk /home/nikohal/qt5/qt5/adb-bundle-linux-x68-20140702/sdk/ -android-ndk-platform android-19 -android-ndk-host linux-x86 -android-toolchain-version 4.8 -skip qttranslations -skip qtwebkit -skip qtserialport -skip qtwebkit-examples -no-warnings-are-errors -no-dbus

    What is correct configure string to do openssl support?

    Regards, Niko H.

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

      Hi,

      Do you have an OpenSSL for android available ?

      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
      • N Offline
        N Offline
        nikohal
        wrote on last edited by
        #3

        I get this error:
        !http://qt.hallikainen.cc/error2.png!
        Missing operand...

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

          IIRC, I've had some problem with fips, however building only OpenSSL is enough

          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
          • N Offline
            N Offline
            nikohal
            wrote on last edited by
            #5

            Now I get this error:
            !http://qt.hallikainen.cc/eri_errori.png!
            How I can fix that?

            1 Reply Last reply
            0
            • N Offline
              N Offline
              nikohal
              wrote on last edited by
              #6

              Tiedosto väärässä muodossa = File in wrong format

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

                Did you follow these "instructions":http://wiki.openssl.org/index.php/Android ?

                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
                • N Offline
                  N Offline
                  nikohal
                  wrote on last edited by
                  #8

                  Yes I try to do with that instruction but I get this error:
                  !http://qt.hallikainen.cc/openssl.png!
                  And
                  !http://qt.hallikainen.cc/find.png!

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

                    First thing you should do is use the latest version of OpenSSL

                    What is your config line ?
                    Did you modify setenv-android.sh ?

                    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
                    • N Offline
                      N Offline
                      nikohal
                      wrote on last edited by
                      #10

                      I use openssl 1.0.1e sources.
                      Here is "sentv-android.sh file":http://qt.hallikainen.cc/Setenv-android.sh.

                      perl -pi -e 's/install: all install_docs install_sw/install: install_docs install_sw/g' Makefile.org

                      ./config shared -no-ssl2 -no-ssl3 -no-comp -no-hw -no-engine --openssldir=/usr/local/ssl/$ANDROID_API

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

                        That's why I suggested to first use the latest version of the sources.

                        I remember I've had some problems there so in the end I've appended the instructions to setup/configure/build at the end of setenv-android.sh

                        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