Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. Building Qt 5.3.0 ios with SSL

Building Qt 5.3.0 ios with SSL

Scheduled Pinned Locked Moved Installation and Deployment
18 Posts 2 Posters 6.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.
  • D Offline
    D Offline
    devuser
    wrote on last edited by
    #1

    Hi everybody,

    I have a qt5.2.1 version compiled successfully with ssl support but because of the new features of 5.3 I need to compile this with support for SSL, I tried to with these commands:

    OPENSSL_LIBS='-L/Users/devUser/openssl_IOS/lib -lssl -lcrypto' ./configure -openssl-linked -developer-build -opensource -nomake examples -nomake tests -xplatform macx-ios-clang -confirm-license -platform macx-clang

    OPENSSL_LIBS='-L/Users/devUser/openssl_IOS/lib -lssl -lcrypto' ./configure -openssl-linked -developer-build -opensource -nomake examples -nomake tests -xplatform macx-ios-clang -confirm-license -debug-and-release -skip qtwebkit -skip qtserialport -skip qtwebkit-examples -no-warnings-are-errors

    always I get the error

    ndefined symbols for architecture armv7:
    "std::ios_base::Init::~Init()", referenced from:

    after this I tried to find out the reason and I believe that the problem is related to C++11 support. so I tried both command above adding "-c++11" this doesnt work.

    after this, I tried to install the precompiled packed. When I try to compile the project with this it complains as is expected about QSslSockets and QSslerror.

    I tried everything for 2 days and it did not works.

    So please if somebody has a clue I will be very gratefull

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

      Hi,

      Do you already have a statically built OpenSSL for ARM ?

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

        yes, It is the same that I used to compiled the QT 5.2.1

        1 Reply Last reply
        0
        • D Offline
          D Offline
          devuser
          wrote on last edited by
          #4

          I tried it again with these command, but this time from git:
          git clone git://gitorious.org/qt/qt5.git qt5
          cd qt5
          git checkout stable

          perl init-repository --no-webkit

          OPENSSL_LIBS='-L/Users/DevUser/openssl_IOS/lib -lssl -lcrypto' ./configure -openssl-linked -developer-build -opensource -nomake examples -nomake tests -xplatform macx-ios-clang -confirm-license -debug-and-release -skip qtwebkit -skip qtserialport -skip qtwebkit-examples -no-warnings-are-errors -c++11 -platform macx-clang

          make -j4

          It compiles succesfully but :

          The result when i compile the project:

          Undefined symbols for architecture armv7:
          "std::ios_base::Init::~Init()", referenced from:
          __GLOBAL__I_a in libToolAPI-1.6.1.a(AE_AudioPlayerAndRecorder.o)
          __GLOBAL__I_a in libTool2API-2.0.1.a(Reader_FskController.o)
          __GLOBAL__I_a in libTool2API-2.0.1.a(Reader_WavBuffer.o)
          __GLOBAL__I_a in llibToolAPI-1.6.1.a(AE_WavBuffer.o)
          __GLOBAL__I_a in libTool2API-2.0.1.aAE_ManchesterRealTimeDecoder.o)
          __GLOBAL__I_a in libToolAPI-1.6.1.a(AE_ManchesterRealTimeDecoder.o)
          __GLOBAL__I_a in libTool2API-2.0.1.a(AE_ManchesterState.o)
          ...
          "std::ios_base::Init::Init()", referenced from:
          __GLOBAL__I_a in libToolAPI-1.6.1.a(AE_AudioPlayerAndRecorder.o)
          __GLOBAL__I_a in libTool2API-2.0.1.a(Reader_FskController.o)
          __GLOBAL__I_a in libTool2API-2.0.1.a(Reader_WavBuffer.o)
          __GLOBAL__I_a in libToolAPI-1.6.1.a(AE_WavBuffer.o)
          __GLOBAL__I_a in libTool2API-2.0.1.a(AE_ManchesterRealTimeDecoder.o)
          __GLOBAL__I_a in llibToolAPI-1.6.1.a(AE_ManchesterRealTimeDecoder.o)
          __GLOBAL__I_a in libTool2API-2.0.1.a(AE_ManchesterState.o)
          ...
          ld: symbol(s) not found for architecture armv7
          clang: error: linker command failed with exit code 1 (use -v to see invocation)

          make[1]: *** [iphoneos-release] Error 65
          make: *** [release-iphoneos] Error 2
          11:52:49: The process "/usr/bin/make" exited with code 2.
          Error while building/deploying project Product1 (kit: iphoneos-clang Qt 5.3.0ssl))
          When executing step 'Make'

          , it still didnt work :(

          1 Reply Last reply
          0
          • D Offline
            D Offline
            devuser
            wrote on last edited by
            #5

            just I want to highligh that in the version 5.2.1 it works with no problem

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

              It seems that it's you are missing a symbol from the stdc++ library

              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
              • D Offline
                D Offline
                devuser
                wrote on last edited by
                #7

                Thanks SGaist, that was also my guess, can you give me any suggestion or do you see any mistake?

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

                  Wait, I may have missed something. Are you saying that your project fails to build with your custom version of Qt 5.3 ?

                  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
                  • D Offline
                    D Offline
                    devuser
                    wrote on last edited by
                    #9

                    yes, exactly.

                    When I try to compile my project with any of the many different customs versions I have built of 5.3.0 it fails as you can see above.

                    But with a version 5.2.1 that I also built before it works.

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

                      Just to rule out the obvious, did you rebuild your project from scratch ?

                      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
                      • D Offline
                        D Offline
                        devuser
                        wrote on last edited by
                        #11

                        yes, after building I tried to make clean and recompile, also, erase the building folder of my project even try to compile from Xcode.

                        Exact the same behavior

                        1 Reply Last reply
                        0
                        • D Offline
                          D Offline
                          devuser
                          wrote on last edited by
                          #12

                          SGaist did you do this operation before?
                          or do you know where should I start looking because at this moment I am really lost

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

                            I've not yet built 5.3 completely from scratch (I've updated it regularly from git so it might be something subtle).

                            What I'm wondering is where do you the wrong lib since AFAIK, the mkspecs haven't changed.

                            I'll do a clean build later

                            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
                            • D Offline
                              D Offline
                              devuser
                              wrote on last edited by
                              #14

                              SGaist. Any advance on this?

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

                                The error you are getting is not a bug, you have c++11 activated, this means that you have to use libc++ and you can't mix it with libstdc++.

                                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
                                • D Offline
                                  D Offline
                                  devuser
                                  wrote on last edited by
                                  #16

                                  So. The answer should be -no-c++11.

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

                                    Or (if it is a possibility) rebuild your dependencies to also use libc++

                                    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
                                    • D Offline
                                      D Offline
                                      devuser
                                      wrote on last edited by
                                      #18

                                      Thanks very much SGaist. Sadly recompile the libraries is not in the menu. So I will disable the c++11. And i will try it on monday.

                                      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