我在安装Qt5时遇到了问题,需要在OSX上安装。按照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.
以下是与该问题相关的其他链接:
然后,假设OSX Mountain Lion缺少X11,因此安装了Xquartz,重新启动计算机并尝试再次安装。但这并没有解决问题。
在Linux上,Qt5的安装很顺利,但在OSX上却不起作用。
希望有人能提供任何建议。