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
-
I have just installed Qt Creator 5.2.1 on Mac OS 10.9 (Mavericks) and when I try to build a project I get the next message
:-1: error: Qt Creator needs a compiler set up to build. Configure a compiler in the kit options.
I have reinstalled Xcode but still not working.
I hope you could help me.
-
Hi and welcome to devnet,
You should install the command line tools.
Go to Preferences -> Downloads -> Components
-
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.
-
Command Line Tools is not in Xcode
I just have this
http://www.hostingpics.net/viewer.php?id=837482Capturadepantalla20140306alas213023.png
-
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.
-
Did you restart Qt Creator after installing the command line tools ?
-
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.
-
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. -
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.