3

更新
我认为问题可能与安装程序试图将不同的框架解压缩到/Users/bld.qt/Users目录被写保护)的事实有关,所以我尝试创建/Users/bld.qt并赋予每个人写权限。但是,这不起作用,因为安装程序没有向该文件夹写入任何内容,并且仍然出现错误。

系统信息
我正在运行 Mac OS X 10.6.8 并安装了 XCode 3.2.5。
运行which gcc输出/usr/bin/gcc
运行which clang输出/usr/bin/clang

我尝试过
的我尝试使用离线和在线安装程序安装 qt:

qt-mac-opensource-1.4.0-2-x86_64-online.dmg
qt-mac-opensource-5.1.1-clang-offline.dmg

但是在中间Installing component Essential modules,这两个都给了我以下错误(无论我打了多少次Retry):

Error during installation process (qt.511.clang_64.essentials):
Command install_name_tool failed.
Arguments: -change /Users/bld.qt/bamboo-agent-home/xml-data/build-dir/DQTC-LGPLRELEASEBUILD510-OSX106/______________________________PADDING______________________________/lib/QtQuickTest.framework/Versions/5/QtQuickTest /usr/local/qt/5.1.1/5.1.1/clang_64/lib/QtQuickTest.framework/Versions/5/QtQuickTest -change /Users/bld.qt/bamboo-agent-home/xml-data/build-dir/DQTC-LGPLRELEASEBUILD510-OSX106/______________________________PADDING______________________________/lib/QtWidgets.framework/Versions/5/QtWidgets /usr/local/qt/5.1.1/5.1.1/clang_64/lib/QtWidgets.framework/Versions/5/QtWidgets -change /Users/bld.qt/bamboo-agent-home/xml-data/build-dir/DQTC-LGPLRELEASEBUILD510-OSX106/______________________________PADDING______________________________/lib/QtGui.framework/Versions/5/QtGui /usr/local/qt/5.1.1/5.1.1/clang_64/lib/QtGui.framework/Versions/5/QtGui -change /Users/bld.qt/bamboo-agent-home/xml-data/build-dir/DQTC-LGPLRELEASEBUILD510-OSX106/______________________________PADDING______________________________/lib/QtCore.framework/Versions/5/QtCore /usr/local/qt/5.1.1/5.1.1/clang_64/lib/QtCore.framework/Versions/5/QtCore -change /Users/bld.qt/bamboo-agent-home/xml-data/build-dir/DQTC-LGPLRELEASEBUILD510-OSX106/______________________________PADDING______________________________/lib/QtQml.framework/Versions/5/QtQml /usr/local/qt/5.1.1/5.1.1/clang_64/lib/QtQml.framework/Versions/5/QtQml -change /Users/bld.qt/bamboo-agent-home/xml-data/build-dir/DQTC-LGPLRELEASEBUILD510-OSX106/______________________________PADDING______________________________/lib/QtNetwork.framework/Versions/5/QtNetwork /usr/local/qt/5.1.1/5.1.1/clang_64/lib/QtNetwork.framework/Versions/5/QtNetwork /usr/local/qt/5.1.1/5.1.1/clang_64/bin/qmltestrunner
Output: 

在 期间Installing component Add-On modules,我收到错误:

Error during installation process (qt.511.clang_64.addons):
Command install_name_tool failed.
Arguments: -change /Users/bld.qt/bamboo-agent-home/xml-data/build-dir/DQTC-LGPLRELEASEBUILD510-OSX106/______________________________PADDING______________________________/lib/QtQuickTest.framework/Versions/5/QtQuickTest /usr/local/qt/5.1.1/5.1.1/clang_64/lib/QtQuickTest.framework/Versions/5/QtQuickTest -change /Users/bld.qt/bamboo-agent-home/xml-data/build-dir/DQTC-LGPLRELEASEBUILD510-OSX106/______________________________PADDING______________________________/lib/QtWidgets.framework/Versions/5/QtWidgets /usr/local/qt/5.1.1/5.1.1/clang_64/lib/QtWidgets.framework/Versions/5/QtWidgets -change /Users/bld.qt/bamboo-agent-home/xml-data/build-dir/DQTC-LGPLRELEASEBUILD510-OSX106/______________________________PADDING______________________________/lib/QtGui.framework/Versions/5/QtGui /usr/local/qt/5.1.1/5.1.1/clang_64/lib/QtGui.framework/Versions/5/QtGui -change /Users/bld.qt/bamboo-agent-home/xml-data/build-dir/DQTC-LGPLRELEASEBUILD510-OSX106/______________________________PADDING______________________________/lib/QtCore.framework/Versions/5/QtCore /usr/local/qt/5.1.1/5.1.1/clang_64/lib/QtCore.framework/Versions/5/QtCore -change /Users/bld.qt/bamboo-agent-home/xml-data/build-dir/DQTC-LGPLRELEASEBUILD510-OSX106/______________________________PADDING______________________________/lib/QtQml.framework/Versions/5/QtQml /usr/local/qt/5.1.1/5.1.1/clang_64/lib/QtQml.framework/Versions/5/QtQml -change /Users/bld.qt/bamboo-agent-home/xml-data/build-dir/DQTC-LGPLRELEASEBUILD510-OSX106/______________________________PADDING______________________________/lib/QtNetwork.framework/Versions/5/QtNetwork /usr/local/qt/5.1.1/5.1.1/clang_64/lib/QtNetwork.framework/Versions/5/QtNetwork /usr/local/qt/5.1.1/5.1.1/clang_64/bin/qmltestrunner
Output: 

在点击Ignore两者后,安装继续正常,但随后我尝试使用 Qt Creator 并在 Preferences 下收到以下消息:Qt version is not properly installed, please run make install

Qt版本没有正确安装,请运行make install

安装后,运行which qmake输出/usr/local/qt/5.1.1/5.1.1/clang_64/bin/qmake

4

2 回答 2

0

安装支持 Snow Leopard 和 Xcode 命令行包的最新版本的 Xcode。我怀疑更新您的工具集是必要的。但是,OS X 中的磁盘权限有时会变得棘手,从而导致读/写失败。在重试之前,请进入“磁盘工具”并修复您的磁盘权限。

于 2013-09-11T17:01:37.603 回答
-1

Xcode 4.2 是 OS X 10.6.8 上最新的 IDE,我为 Android 开发构建了 Qt 5.1.1 和 Qt Creator 2.8.1。建筑很好。但它不能自动部署。

于 2013-11-01T04:28:23.567 回答