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. Qt 5.8 build on iOS
Qt 6.11 is out! See what's new in the release blog

Qt 5.8 build on iOS

Scheduled Pinned Locked Moved Solved Installation and Deployment
15 Posts 4 Posters 5.9k 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.
  • dheerendraD Offline
    dheerendraD Offline
    dheerendra
    Moderators Qt Champions 2024 Qt Champions 2022 Qt Champions 2017
    wrote on last edited by
    #3

    I got the source from git clone git://code.qt.io/qt/qt5.git
    I have xcode 8.2.1 and OSX EL Captain 10.11.6

    Finding it difficult to build of iOS. Are there any special considerations for building on iOS ? I'm able to build the same qt code for OSX & it works as well.

    Dheerendra
    @Community Service
    Certified Qt Specialist
    https://www.pthinks.com

    1 Reply Last reply
    2
    • dheerendraD dheerendra

      Trying to build the Qt 5.8 for iOS. I tried to use the following configure command

      ./configure -xplatform macx-ios-clang -release -I /usr/local/opt/openssl/include/ -opensource -L /usr/local/opt/iOS/openssl -nomake examples -nomake tests -openssl-linked -prefix /Users/dheerendrapurohit/QtSsl/iOS

      It failed with error error: unknown FP unit 'sse'

      Any hints on this issue ?

      A Offline
      A Offline
      ambershark
      wrote on last edited by
      #4

      @dheerendra It sounds like you are building in SSE/SSE2 support. This won't work on most iOS devices as they run ARM processors which do not support SSE (an Intel thing).

      There are configure options to disable SSE. I don't know them off the top of my head but ./configure --help should show them to you.

      My L-GPL'd C++ Logger github.com/ambershark-mike/sharklog

      1 Reply Last reply
      0
      • dheerendraD Offline
        dheerendraD Offline
        dheerendra
        Moderators Qt Champions 2024 Qt Champions 2022 Qt Champions 2017
        wrote on last edited by
        #5

        I did not do any configuration like this. I thought mkspec should take care of this.

        Dheerendra
        @Community Service
        Certified Qt Specialist
        https://www.pthinks.com

        jsulmJ 1 Reply Last reply
        2
        • dheerendraD dheerendra

          I did not do any configuration like this. I thought mkspec should take care of this.

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

          @dheerendra "It failed with error error: unknown FP unit 'sse'" - this is actually not an error. configure builds some small tests to check whether some features are available or not. For example it tries to build test code with SSE support. For iOS this test fails, which is OK since ARM does not support SSE, so configure disables SSE. This should not stop you from building for iOS - just ignore it.

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

          1 Reply Last reply
          0
          • dheerendraD Offline
            dheerendraD Offline
            dheerendra
            Moderators Qt Champions 2024 Qt Champions 2022 Qt Champions 2017
            wrote on last edited by
            #7

            @jsulm

            Thank you for response. Build does not proceed further from here. Tried 2-3 times.

            Dheerendra
            @Community Service
            Certified Qt Specialist
            https://www.pthinks.com

            jsulmJ 1 Reply Last reply
            2
            • dheerendraD dheerendra

              @jsulm

              Thank you for response. Build does not proceed further from here. Tried 2-3 times.

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

              @dheerendra Are you sure it stops on this SSE test? Is there something else?

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

              1 Reply Last reply
              0
              • dheerendraD Offline
                dheerendraD Offline
                dheerendra
                Moderators Qt Champions 2024 Qt Champions 2022 Qt Champions 2017
                wrote on last edited by
                #9

                It is not stopping while configuring. It is stopping while building it. Build fails & stops there.

                Dheerendra
                @Community Service
                Certified Qt Specialist
                https://www.pthinks.com

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

                  Then can you post the part of the log that is just before the actual stop ?

                  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
                  • dheerendraD Offline
                    dheerendraD Offline
                    dheerendra
                    Moderators Qt Champions 2024 Qt Champions 2022 Qt Champions 2017
                    wrote on last edited by
                    #11

                    From the Qt 5.8.1 source, I build for Qt Desktop OSX. After that I did clean and tried to build for iOS. It started failing in weird manner. Once it failed is certificate, then it failed the current problem, after that it was complaining something else.

                    Finally I did git check out of Qt 5.8 again in another directory. Started the fresh build. It worked perfectly.

                    So conclusion is that it is not a good idea to use the same git checkout code for building for different platform. It is better to checkout for each platform build. At least this(new checkout) looked smooth to me after spending day to figure out why it failed earlier.

                    Dheerendra
                    @Community Service
                    Certified Qt Specialist
                    https://www.pthinks.com

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

                      No need to have several copies of the sources, that is just a wast of space.

                      Do out of source builds, one per platform, that way you'll always be in a clean state. And if something goes wrong, just nuke the folder and start new.

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

                      A 1 Reply Last reply
                      1
                      • dheerendraD Offline
                        dheerendraD Offline
                        dheerendra
                        Moderators Qt Champions 2024 Qt Champions 2022 Qt Champions 2017
                        wrote on last edited by
                        #13

                        I wanted to the same. Build for different platform from single source. It just did not work. Many times failed with some weird reason. Finally I built with fresh code and it worked. Offcourse I deleted old sources as well to save space in my system.

                        Thank you all again

                        Dheerendra
                        @Community Service
                        Certified Qt Specialist
                        https://www.pthinks.com

                        1 Reply Last reply
                        0
                        • SGaistS SGaist

                          No need to have several copies of the sources, that is just a wast of space.

                          Do out of source builds, one per platform, that way you'll always be in a clean state. And if something goes wrong, just nuke the folder and start new.

                          A Offline
                          A Offline
                          ambershark
                          wrote on last edited by
                          #14

                          @SGaist I've never done an out of source built with Qt. I do them all the time with my own projects via cmake though.

                          How do you do it with Qt? That is something that might come in very handy. I have had similar issues to @dheerendra. When I mess up a Qt build I usually nuke the whole directory re-extract the source and start over just to avoid problems like this one. Knowing how to shadow build Qt will be pretty useful in the future. :)

                          My L-GPL'd C++ Logger github.com/ambershark-mike/sharklog

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

                            Let's assume you have a Code folder and that your sources is uncompressed/checked out under Code/Qt_src
                            The commands assume Unix like environment but the concept is the same for Windows.

                            cd Code
                            mkdir build_Qt5
                            ../Qt_src/configure
                            make -jX #where X = 2 * cpu_count + 1
                            

                            If you need to rebuild Qt because of a developer environment upgrade like a new major version of Xcode, don't just do rm -rf ./* nuke the build_Qt5 folder before starting over otherwise you'll miss hidden files that caches some settings and then can become problematic on new builds.

                            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
                            1

                            • Login

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