我在 OSX 上安装 Qt5 时遇到问题。
Mac OSX的Qt 要求已完成 - 已安装 Xcode 和命令行。然后我按照以下步骤操作:
# mkdir qt5
# cd qt5
# git clone git://gitorious.org/qt/qtbase.git
# cd qt5
# ./configure
The test for linking against libxcb and support libraries failed!
You might need to install dependency packages, or pass -qt-xcb.
然后我也试过
# cd qtbase
# ./configure -prefix $HOME/development/macosx/qt5 -nomake docs -nomake examples -nomake demos -nomake tests -opensource -confirm-license -release -no-c++11
Unknown part docs passed to -nomake.
# ./configure
The test for linking against libxcb and support libraries failed!
You might need to install dependency packages, or pass -qt-xcb.
有关相关问题的其他一些链接是:
然后Xquartz也安装了,假设问题是因为OSX Mountain Lion上缺少X11,重启电脑再次尝试安装。它没有解决一点问题。
在 Linux Qt5 上安装很顺利,没有任何麻烦。但在 OSX 上它不起作用。
我希望有人可以提出任何建议。