Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. QtCreator - cannot add build kit
Forum Updated to NodeBB v4.3 + New Features

QtCreator - cannot add build kit

Scheduled Pinned Locked Moved Qt Creator and other tools
25 Posts 4 Posters 11.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.
  • J Offline
    J Offline
    jeroen.dierckx
    wrote on last edited by
    #1

    I want to test my qml app on my iphone, but i cannot add a build kit in QtCreator 3.
    In the Projects section, under Build & Run, in the Add Kit dropdown, i have 4 (auto-detected) kits, all of them greyed out, so unselectable;

    • iphoneos-clang Qt 5.2.1 (ios)
    • iphoneos-clang Qt 5.2.1 for iOS
    • iphonesimulator-clang Qt 5.2.1 (ios)
    • iphonesimulator-clang Qt 5.2.1 for iOS

    All of them display the following message when i mouse-hover:
    "Device type is not desktop."

    Can anyone point me in the right direction to solve this issue?
    Thanks in advance.

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

      Hi and welcome to devnet,

      Did you setup Xcode correctly before installing Qt ?

      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
      • J Offline
        J Offline
        jeroen.dierckx
        wrote on last edited by
        #3

        Thanks for the welcome.

        I think i setup Xcode correctly ... i just installed it. Could you elaborate on "setting it up correctly"?
        I updated the iOS simulators in Xcode just now, but the problem in QtCreator remains.
        I updated the Qt components using MaintainanceTool.app , but that didn't help either.

        1 Reply Last reply
        0
        • J Offline
          J Offline
          jeroen.dierckx
          wrote on last edited by
          #4

          OK, small update:
          I seem to have had two Qt SDK installations and have removed one, now i have two kits in the dropdown:

          • iphoneos-clang Qt 5.2.1 for iOS
          • iphonesimulator-clang Qt 5.2.1 for iOS

          Which makes sense, since they were autodetected.
          But the problem remains; both indicate that "Device type is not desktop." and are not selectable.

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

            Are you sure the device type of your kits are configured correctly ?

            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
            • J Offline
              J Offline
              jeroen.dierckx
              wrote on last edited by
              #6

              They are iOS Device and iOS Simulator respectively and greyed out, so unchangeable.

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

                Just realized you had several SDK installed. So I wonder if you don't have something that might have corrupted Qt Creator configuration file.

                I would recommend removing everything and re-install. Since you are going to develop for several platforms you should consider using the online installer, so you can install/update each version of Qt more easily

                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
                • J Offline
                  J Offline
                  jeroen.dierckx
                  wrote on last edited by
                  #8

                  OK, will try, is there a sure way to know everything is gone besides grep?

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

                    AFAIK, the uninstaller is pretty good at this. Also the Qt install is done in one folder so if there's something remaining then you can just delete that folder

                    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
                    • J Offline
                      J Offline
                      jeroen.dierckx
                      wrote on last edited by
                      #10

                      Uninstalled, reinstalled with online installer. Same problem :(.
                      Uninstalled and Xcode as well. No dice.

                      Any other tips are welcome ...

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

                        Did you also install the command line tools from Xcode ?

                        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
                        • J Offline
                          J Offline
                          jeroen.dierckx
                          wrote on last edited by
                          #12

                          yes, Preferences > Locations > Command Line Tools: Xcode 5.1 (5B130a)

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

                            What version of Qt Creator are you having ?

                            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
                            • J Offline
                              J Offline
                              jeroen.dierckx
                              wrote on last edited by
                              #14

                              Qt Creator 3.0.1

                              Based on Qt 5.2.1 (Clang 5.0 (Apple), 64 bit)

                              Built on Jan 31 2014 at 06:00:56

                              From revision 51af63bb9e

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

                                Strange, everything looks fine. Can you check the state of the iOS plugin ?

                                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
                                • J Offline
                                  J Offline
                                  jeroen.dierckx
                                  wrote on last edited by
                                  #16

                                  1/
                                  Current state: (green) Ready to use

                                  on both iphonesimulator and iphoneos when iphone is connected of course

                                  i also installed Kenneth Reitz's osx-gcc (https://github.com/kennethreitz/osx-gcc-installer/) but that didn't help.

                                  2/
                                  could it have something to do with Qt Creator/Qt licenses?

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

                                    Do you have a compiler setup for arm in the Compilers panel ?

                                    2/ AFAIK, no

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

                                      Same issue here. iphoneos kit is automatically set when you create an example application, but not available (disabled) when you create new QtQuick 2.0 project.

                                      Qt Creator 3.0.1
                                      Based on Qt 5.2.1 (Clang 5.0 (Apple), 64 bit)

                                      1 Reply Last reply
                                      0
                                      • J Offline
                                        J Offline
                                        jeroen.dierckx
                                        wrote on last edited by
                                        #19

                                        pfff, getting really frustrated; i thought some conflicting and badly administrated installs led up to this issue, so i re-installed my whole system (OS X Mavericks).
                                        I needed Qt4 for current projects, so installed that with MacPorts, then installed Qt5.2.1 and Qt Creator using the Online Installer.

                                        The exact same problem remains; i cannot add build kits to my project, the message "Device type is not desktop." shows when i hover both "iphoneos-clang Qt 5.2.1 for iOS" and "iphonesimulator Qt 5.2.1 for iOS" in the "Add Kit" dropdown, the options remain grey and unselectable.

                                        To answer your latest question SGaist: Yes, in the compilers tab, i can see iphoneos-clang with Platform codegen flags "-arch armv7".
                                        Would you like to see screenshots? I can provide them, just name the windows and tabs ... Thanks in advance, and thanks for the patience and guidance so far.

                                        1 Reply Last reply
                                        0
                                        • F Offline
                                          F Offline
                                          fawzi
                                          wrote on last edited by
                                          #20

                                          In QtCreator 3.0.1 the iOS plugin was still experimental, and was (in theory) activated for the creator iOS SDK.
                                          Any other creator will have it disabled unless you enable it from in Qt Creator > About Plugins...

                                          The problems described here look like not having the plugin enabled, and so not recognising the correct type of the device, and being able to use the kit.

                                          If the iOS plugin is enabled you should see iOS pane in the preferences (or in the plugins).

                                          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