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. Archive building error with architecture armv7s in IOS device

Archive building error with architecture armv7s in IOS device

Scheduled Pinned Locked Moved Mobile and Embedded
10 Posts 3 Posters 3.3k Views
  • 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.
  • R Offline
    R Offline
    robust1231
    wrote on last edited by
    #1

    I wrote a iOS program that run at armv7s.it is fine in the simulator(i guess simulator is not the newest architecture).But when i build archive or run at device(ipad 4), there are many link errors.The reason from the information is libQt5Core and libQt5Network are not build for architecture armv7s.
    so, Is this a bug,or i used wrong lib?
    by the way,i use QT 5.2 Beta1,lib path is ios_armv7,developer IDE is xcode 5.0.1.

    Please help me!
    Thanks a lot!
    Best regards~

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

      Hi and welcome to devnet,

      You have to use a Qt build that was built agains the iPhone SDK for that. The simulator uses another SDK.

      This means you need two different builds, one for the simulator and one for the actual devices.

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

        Hi,
        I've built Qt 5.3 for iOS, and it compiles for armv7 by default. Does anybody know how could I compile it also for armv7s and, if possible, for arm64?

        Thanks,
        Robert.

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

          Haven't tested it but you can try by editing the macx-io-clang mkspec and add arm64 to the QMAKE_IOS_DEVICE_ARCHS

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

            Hi,
            thanks, I have already done that, and it didn't work.

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

              Did you re-run configure after modifying the file ?

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

                You are right, but after reconfiguring, I get this error while compiling:
                clang: error: cannot use 'precompiled-header' output with multiple -arch options

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

                  Because they where generated when you configured the first time, you have to do a make confclean when modify things like that.

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

                    It seems that confclean is not working on Qt5. I'm trying now with 'make clean', but I think I have tried it before.

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

                      Then just delete the build folder and start 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

                      • Login

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