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 Creator needs a compiler set up to build. Configure a compiler in the kit options. Mac OS 10.9 Qt creator 5.2.1

Qt Creator needs a compiler set up to build. Configure a compiler in the kit options. Mac OS 10.9 Qt creator 5.2.1

Scheduled Pinned Locked Moved Installation and Deployment
14 Posts 3 Posters 6.1k 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.
  • sierdzioS Offline
    sierdzioS Offline
    sierdzio
    Moderators
    wrote on last edited by
    #3

    You probably need Xcode + the Command Line Tools (open Xcode, go to Preferences->Downloads).

    Then in Qt Creator, you may need to point it to the compiler, in Tools->Preferences->Build & Run.

    (Z(:^

    1 Reply Last reply
    0
    • P Offline
      P Offline
      paladoxd
      wrote on last edited by
      #4

      Have I to do that in Xcode or in QtCreator???

      Sorry I am new in this.

      thank you

      1 Reply Last reply
      0
      • P Offline
        P Offline
        paladoxd
        wrote on last edited by
        #5

        Command Line Tools is not in Xcode

        I just have this

        http://www.hostingpics.net/viewer.php?id=837482Capturadepantalla20140306alas213023.png

        1 Reply Last reply
        0
        • sierdzioS Offline
          sierdzioS Offline
          sierdzio
          Moderators
          wrote on last edited by
          #6

          Then point Qt Creator to your Xcode binary, maybe that would work. I don't actually remember how I made it work, and I don't have a mac here to check.

          (Z(:^

          1 Reply Last reply
          0
          • P Offline
            P Offline
            paladoxd
            wrote on last edited by
            #7

            I am installing the Command Line Tools but I don't know what you mean with "Then point Qt Creator to your Xcode binary"

            thanks

            1 Reply Last reply
            0
            • P Offline
              P Offline
              paladoxd
              wrote on last edited by
              #8

              I have downloaded and installed the Command Line Tools but it is still not working

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

                Did you restart Qt Creator after installing the command line tools ?

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

                  Yes I did, but the problem is that I am not sure if command line tools was fine installed, it doesn't appear in components of Xcode

                  1 Reply Last reply
                  0
                  • sierdzioS Offline
                    sierdzioS Offline
                    sierdzio
                    Moderators
                    wrote on last edited by
                    #11

                    Open the terminal and type:
                    @
                    clang --version
                    @

                    If it prints the version, it means the command line tools are installed and working. Then type that:
                    @
                    which clang
                    @

                    And remember the path. Open Qt Creator, go to Preferences->Build & Run->Compilers and see if it is there. if not, add it by hand using the button on the right-hand side.

                    Once you have the compiler, you need to set a Qt Creat "Kit": that is a pair of compiler + Qt version. Just switch to the "Kits" tab and add a new one (first check if there are any available already).

                    Then you need to configure your project to use your new kit. There are many ways to do it, but in general you should open your project, go to "Project" pane, and add your newly created kit there.

                    (Z(:^

                    1 Reply Last reply
                    0
                    • P Offline
                      P Offline
                      paladoxd
                      wrote on last edited by
                      #12

                      I have done this but I still get the next:

                      08:35:04: Running steps for project tp1...
                      08:35:04: Starting: "/Users/paladoxdoo1/Qt5.2.1/5.2.1/clang_64/bin/qmake" /Users/paladoxdoo1/Desktop/Télécom/IHM/tp1/tp1.pro -r -spec macx-g++ CONFIG+=debug CONFIG+=x86_64 CONFIG+=declarative_debug CONFIG+=qml_debug
                      Cannot find file: /Users/paladoxdoo1/Desktop/Télécom/IHM/tp1/tp1.pro.
                      08:35:04: The process "/Users/paladoxdoo1/Qt5.2.1/5.2.1/clang_64/bin/qmake" exited with code 2.
                      Error while building/deploying project tp1 (kit: Unnamed)
                      When executing step 'qmake'
                      08:35:04: Elapsed time: 00:00.

                      1 Reply Last reply
                      0
                      • P Offline
                        P Offline
                        paladoxd
                        wrote on last edited by
                        #13

                        Thank you so much, Qt is already compiling, but only when I try in new projects, if I open a project that I have worked in other computer it doesn't compiles, it shows me the message in the last post, but now I can work. Thank you :)

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

                          If you are opening a project configured on another computer you might have a myproject.pro.user file that might not be usable on your computer.

                          Close the project, remove that file and open your project again to reconfigure it.

                          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