如何在OS X Mavericks上从git编译Qt 5.2



我克隆了 QT 源存储库并签出了分支stable

然后我按照这个手册 http://qt-project.org/wiki/Building_Qt_5_from_Git 直到我到了我必须做./configure的地步:

The test for linking against libxcb and support libraries failed!
 You might need to install dependency packages, or pass -qt-xcb.
 See src/plugins/platforms/xcb/README.

当我输入./configure -qt-xcb时:

Running configuration tests...
The test for linking against Xlib failed!
 You might need to install dependency packages.
 See src/plugins/platforms/xcb/README.

现在我被困住了。我找不到Xlib是什么,在哪里可以找到它或如何安装它。任何帮助将不胜感激!

添加 -no-xcb 来配置参数

你需要安装 XQuartz。

一些额外的文本通过过滤器,请忽略

最新更新