在 macports 上安装 qt-x11 失败

在 macports 上安装 qt-x11 失败

我正在尝试在 OSX Lion 10.7.5 上安装 qt4-x11。'port install qt4-x11' 失败,我检查了日志,它显示:

:info:configure Creating qmake. Please wait...
:info:configure /usr/bin/clang++ -c -o project.o -pipe -DQMAKE_OPENSOURCE_EDITION -I. -Igenerators -Igenerators/unix -Igenerators/win32 -Igenerators/mac -I/opt/local/var/macport$
:info:configure In file included from project.cpp:38:
:info:configure In file included from ./project.h:41:
:info:configure In file included from /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_x11_qt4-x11/qt4-x11/work/qt-x11-ope$
:info:configure In file included from /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_x11_qt4-x11/qt4-x11/work/qt-x11-ope$
:info:configure In file included from /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_x11_qt4-x11/qt4-x11/work/qt-x11-ope$
:info:configure In file included from /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_x11_qt4-x11/qt4-x11/work/qt-x11-ope$
:info:configure In file included from /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_x11_qt4-x11/qt4-x11/work/qt-x11-ope$
:info:configure /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_x11_qt4-x11/qt4-x11/work/qt-x11-opensource-src-4.4.3/incl$
:info:configure #    error "This version of Mac OS X is unsupported"
:info:configure      ^
:info:configure 1 error generated.
:info:configure make: *** [project.o] Error 1
:info:configure Command failed:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_x11_qt4-x11/qt4-x11/work/qt-x11-open$
:info:configure Exit code: 2
:error:configure org.macports.configure for port qt4-x11 returned: configure failure: command execution failed
:debug:configure Error code: NONE
:debug:configure Backtrace: configure failure: command execution failed

这是否意味着我无法在 Lion 上做到这一点?

答案1

然而,当我看着QT 项目支持平台页面中,特别提到支持 Lion。要求Xcode 需要安装。看来 MacPorts 套件落后了一个版本,因为 QT5.0 在其下载页。

总之,目前看来您无法使用 MacPorts 在您的系统上安装 QT,但可以从 QT 的项目站点进行 Mac OS X Lion 的安装。

相关内容