Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
(solved) error building debugging helper for clang_64
I recently started with Qt 5.0.0 and clang_64. When I try to build the debugging helper, I get the following message:
bq. Building helper(s) with toolchain 'GCC (x86 64bit)'...
Building helper 'GDB helper' in /Developer/Applications/QtLibs/5.0.0/clang_64//qtc-debugging-helper/
Running /Developer/Applications/QtLibs/5.0.0/clang_64/bin/qmake -spec macx-clang dumper.pro -nocache CONFIG+=x86_64 ...
Running /usr/bin/make all -k ...
Error running '/usr/bin/make all -k' in /Developer/Applications/QtLibs/5.0.0/clang_64//qtc-debugging-helper/: The process returned exit code 2:
clang++ -c -pipe -mmacosx-version-min=10.6 -O2 -Wall -W -fPIC -DUSE_QT_CORE=1 -DUSE_QT_GUI=1 -DQT_NO_DEBUG -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I../mkspecs/macx-clang -I. -I../include -I../include/QtWidgets -I../lib/QtWidgets.framework/Versions/5/Headers -I../include/QtGui -I../lib/QtGui.framework/Versions/5/Headers -I../include/QtCore -I../lib/QtCore.framework/Versions/5/Headers -I. -I/System/Library/Frameworks/OpenGL.framework/Versions/A/Headers -I/System/Library/Frameworks/AGL.framework/Headers -o dumper.o dumper.cpp
make: clang++: No such file or directory
make: *** [dumper.o] Error 1
make: Target `all' not remade because of errors.
Is this because my /usr directory is hidden? If so, what's the solution? If not, what is the likely culprit?
I'm running 10.6.
andrep last edited by
The problem seems to be that it uses a macx-clang mkspec whereas there seems to be no clang++ found. Do you have clang installed? Do you want to use it?
I thought clang was included with the 5.0.0 release. I do have a directory:
With a bin directory. I'm not sure I know what I'm looking for here, though.
Any suggestions on this? The goal is to be able to view the contents of a vector in the debugger, in the "locals" window. Right now, I have no visibility into vectors (other than the first and last elements), which makes debugging rather tedious.
OK...I just uninstalled everything, and reinstalled from scratch, using the newest available downloads. I'm still getting an error message when I try to build the helper.
Could someone PLEASE give me some idea of what I'm doing wrong? I'm about to enter some significant coding time, and need all the tools working that I can get.
OK, for posterity, here's the answer:
Cliff Notes: The clang++ is in the CLI extras package on the Mac. In order to get these, I had to install the newest version of XCode, which in turn entailed an OS upgrade (was on 10.6 before).