2013-02-08 44 views
1

我在Qt论坛上问过这个问题,但他们现在似乎很安静。Qt Creator无法构建调试器助手

我正在运行相对较新的Qt Creator 2.6.2(使用Qt 5.0.1)。当我尝试建立调试帮手,我得到以下错误:

Building helper(s) with toolchain 'GCC (x86 64bit)'... Building helper 'GDB helper' in /Developer/Applications/Qt/5.0.1/clang_64//qtc-debugging-helper/

Running /Developer/Applications/Qt/5.0.1/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/Qt/5.0.1/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. Build failed.

所以,我看到它在寻找一个叫“铿锵++”的文件,我显然没有。有人可以向我解释这是什么解决方法吗?我习惯于使用Qt的预建安装包。

谢谢。

回答

0

您需要为包含'clang ++'编译器的Xcode安装命令行工具包。

你可以找到它们hereLooking for additional developer tools?链接。

+1

啊。看来我不能在10.6以上安装新版本的XCode。幸运的是,我昨天刚刚订购了10.7,应该很快就会有。当我得到它时,我会按照你的指示回报。谢谢。 – mzimmers

+0

再次感谢您的帮助。你的建议解决了这个问题 - 我现在可以构建调试器帮手。不幸的是,我仍*无法以有用的方式查看调试器中的矢量。 AARGH。 – mzimmers

+0

@mzimmers不幸的是,我无法帮助你,因为我只有知识才能重新编译OS X上的某些东西。但是,你应该提出新的问题,并且很可能有人会回答你! –