我遇到了在OSX上安裝Qt5的問題。在OSX上安裝Qt5 -qt-xcb
Qt Requirements for Mac OSX已完成 - 安裝了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,假設問題是因爲OS X Mountain Lion上缺少X11,重新啓動計算機並再次嘗試安裝。它沒有解決這個問題。
在Linux上Qt5安裝很好,沒有喧囂。但在OSX上它不起作用。
我希望有人能提出任何建議。
非常感謝!這的確有訣竅。 – ThreaderSlash