C++ 在OSX上安装Qt5-qt xcb
在OSX上安装Qt5时遇到问题 已完成-已安装Xcode和命令行。然后,我遵循以下步骤:C++ 在OSX上安装Qt5-qt xcb,c++,macos,qt,x11,xcb,C++,Macos,Qt,X11,Xcb,在OSX上安装Qt5时遇到问题 已完成-已安装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 packa
# 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.
有关相关问题的其他链接包括:
我希望有人能给我一些建议。我自己也遇到了同样的问题,我通过在配置脚本中指定参数-no-xcb(而不是-qt-xcb)来解决这个问题。这使得Qt库的编译得以完成(尽管一些Qt示例程序未能编译……但这足以让我回到正轨)
我怀疑这是一个小牛特有的问题,因为同一个Qt源代码tarball(Qt-everywhere-enterprise-5.2.0-src.tar.gz)使用Mountain Lion下的正常配置调用编译得很好。这与小牛无关。 您的路径中有MacPorts或类似的内容。配置脚本检测X-Windows,并因此尝试配置xcb后端 编译前将路径重置为最小路径: 导出路径=/usr/bin:/bin:/usr/sbin:/sbin 这将解决问题