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. Qt for iOS adding WatchKit for Apple iWatch
Forum Updated to NodeBB v4.3 + New Features

Qt for iOS adding WatchKit for Apple iWatch

Scheduled Pinned Locked Moved Mobile and Embedded
10 Posts 4 Posters 3.1k 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.
  • michaelLM Offline
    michaelLM Offline
    michaelL
    wrote on last edited by
    #1

    Hi,

    i am able to run the shadereffects example project from Qt Creator for iOS device. I open the xcode project with xcode and run with the simulator for iphone 6 for example. It build correct and the simulator ran the example with no problem.
    Now when i add the watch kit to the project i get this build errors:

    Undefined symbols for architecture i386:
    "_qt_main_wrapper", referenced from:
    implicit entry/start for main executable
    "_qt_registerPlatformPlugin", referenced from:
    -u command line option
    ld: symbol(s) not found for architecture i386
    clang: error: linker command failed with exit code 1 (use -v to see invocation)

    Any idea? How do i fix it?

    jsulmJ 1 Reply Last reply
    0
    • michaelLM michaelL

      Hi,

      i am able to run the shadereffects example project from Qt Creator for iOS device. I open the xcode project with xcode and run with the simulator for iphone 6 for example. It build correct and the simulator ran the example with no problem.
      Now when i add the watch kit to the project i get this build errors:

      Undefined symbols for architecture i386:
      "_qt_main_wrapper", referenced from:
      implicit entry/start for main executable
      "_qt_registerPlatformPlugin", referenced from:
      -u command line option
      ld: symbol(s) not found for architecture i386
      clang: error: linker command failed with exit code 1 (use -v to see invocation)

      Any idea? How do i fix it?

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

      @michaelL i386 ?
      Isn't Apple watch using an ARM CPU?
      I guess your Kit is configured wrongly?

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

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

        Hi,

        @jsulm AFAIR the emulator runs on x86.

        But the best thing for @michaelL is to update Qt to at least 5.8. The iWatch support is provided a Technical Preview.

        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
        • michaelLM Offline
          michaelLM Offline
          michaelL
          wrote on last edited by
          #4

          I downloaded Qt5.8 and ran the same example but got the same error.
          How does Qt know if I add WatchKit on Xcode?
          How do I have to modify my iOS kit on at and add watchOS with it?

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

            I'd rather build Qt for watchOS and use it to build the watch application. (haven't done it yet)

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

            B 1 Reply Last reply
            0
            • SGaistS SGaist

              I'd rather build Qt for watchOS and use it to build the watch application. (haven't done it yet)

              B Offline
              B Offline
              bharat446
              wrote on last edited by
              #6

              @SGaist Dear Mr.SGaist i have posted a question in this forum titled "CROSS COMPILING QT WITH BBB". I am stuck at that error since last 3 days. no one has replied. I request you to reply me so that i can solve the problem.

              Thanking you
              bharat446.

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

                @bharat446

                Hi,

                Please don't highjack other people's threads with unrelated posts.

                You did got an answer one day after you posted your question but you didn't do any follow up about the wiki entry helping or not.

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

                B 1 Reply Last reply
                1
                • SGaistS SGaist

                  @bharat446

                  Hi,

                  Please don't highjack other people's threads with unrelated posts.

                  You did got an answer one day after you posted your question but you didn't do any follow up about the wiki entry helping or not.

                  B Offline
                  B Offline
                  bharat446
                  wrote on last edited by bharat446
                  #8

                  @SGaist I am new to this forum. can you tell me what wiki entry is?

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

                    The link you received as an answer points to an article in the Qt project's Wiki.

                    For a definition of Wiki go here.

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

                      @SGaist The Watch Application needs a base application which it communicates with. This would be in this case my application.
                      I search for Watch o Qt so i could make a kit to deploy but i didnt found anything.
                      How do i use the mkspecs from WatchOs on my IOS Kit?

                      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