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. The compiler 'iphonesimulator-clang' (x86-macos-generic-mach_o-64bit) cannot produce code for the qt version 5.2.0 'qt-everywhere-opensource-src-5.2.0

The compiler 'iphonesimulator-clang' (x86-macos-generic-mach_o-64bit) cannot produce code for the qt version 5.2.0 'qt-everywhere-opensource-src-5.2.0

Scheduled Pinned Locked Moved Mobile and Embedded
10 Posts 2 Posters 4.8k 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.
  • B Offline
    B Offline
    bcheruku
    wrote on last edited by
    #1

    I see the following error while trying to configure my Qt Creator for ios-simulator

    The compiler 'iphonesimulator-clang' (x86-macos-generic-mach_o-64bit) cannot produce code for the qt version 5.2.0 'qt-everywhere-opensource-src-5.2.0-beta1'(x86-macos-generic-mach_o-32bit)

    osx 10.9 mavericks
    xcode 5.0.2
    qt 5.2.0 beta1
    qt creator 3.0 beta

    I build the qt for ios according to this post http://doc-snapshot.qt-project.org/qt5-stable/ios-support.html and I configured my build with -sdk iphonesimulator.

    I downloaded qt creator 3.0 beta and first added my qt version by choosing the qmake I built. Then I moved to kits in Build & Run , and it Auto-detected iphonesimulator-clang Qt 5.2.0 which has an error symbol and when I hover over it, I see the error described above.

    I could however the run the qt-ios-demo on ios-simulator by following steps described in Building Applications From the Command Line at http://doc-snapshot.qt-project.org/qt5-stable/ios-support.html.

    I want to know if it is possible to build application directly from Qt Creator for ios without using xcode, like I am able to build it for android on my linux system (using same version of Qt and qt creator), or building from command line is the way to go for ios apps.

    I am very new to osx and ios, so please forgive me if this is a silly question and let me know if I am doing any thing wrong. It would also help me greatly if some one can give me some more information of qt and iphonesimualtor-clang working.

    Thank you.

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

      Hi and welcome to devnet,

      It looks like there's a compiler mismatch, you used the 32bit compiler when building Qt and somehow there's the 64bit that has been selected/detected when creating the kit. You should be able to choose the correct compiler from the combobox

      Hope it helps

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

        Thank you for your reply.

        I did search for 32bit iphonesimulator-clang compiler but did not find any. Please see the attached image, I only see one iphonesimulator-clang option in available compilers.

        http://postimg.org/image/a0c4ykpdd/
        http://postimg.org/image/yuvmsna7l/

        I also installed iOS 6.1 simulator inside xcode but that also did not help, I still see same compilers as before.

        I am still confused that Qt was able to find the 32bit compiler while building but Qt creator is not able to find that 32bit compiler which Qt used while building.

        I want to give some more information about my build and hopes it helps in finding a solution to my problem. I did build Qt from source but for Qt creator, I just installed it by extracting the .dmg file.

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

          Did you compile Qt yourself ?

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

            Yes, I compiled qt myself.

            I built it by following http://qt-project.org/doc/qt-5.1/qtdoc/ios-support.html, http://blog.qt.digia.com/blog/2013/03/05/qt-for-ios-preview/ and http://doc-snapshot.qt-project.org/qt5-stable/ios-support.html.

            My configuration was ./configure -developer-build -release -xplatform macx-ios-clang -nomake tests -nomake examples -sdk iphonesimulator

            And then make -j 2 for building it.

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

              Just to be sure, did you update Xcode recently ?

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

                Yes, I updated my Xcode before building QT, my current Xcode version is 5.0.2.

                After building Qt, i installed ios simulator 6.1 and also ios simulator 6 to get ios sdk 6.0 hoping it will find the 32 iphonesimulator-clang compiler but it did not.

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

                  Did you build Qt before or after the Xcode update ?

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

                    I did Xcode update before building Qt.

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

                      What does your compiler panel look like ? Specifically the iphonesimulator-clang

                      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