在OSX -qt-xcb上安装Qt5 [英] Qt5 install on OSX -qt-xcb

查看:294
本文介绍了在OSX -qt-xcb上安装Qt5的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在OSX上安装Qt5时遇到问题.

I am stuck with a problem installing Qt5 on OSX.

Mac OSX的Qt要求是完成-已安装Xcode和命令行.然后,我按照以下步骤操作:

The Qt Requirements for Mac OSX are done - Xcode and command line are installed. Then I followed the steps:

 # 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.

有关问题的其他一些链接是:

Some other links on related problems are:

Qt5安装问题

然后,还安装了 Xquartz ,假设问题是因为OSX Mountain上缺少X11 Lion,重新启动计算机,然后再次尝试安装.它并没有解决问题.

Then Xquartz was also installed, supposing that the problem is because X11 is missing on OSX Mountain Lion, restarted the computer and tried the installation again. It didn't solved the problem a bit.

在Linux Qt5上,安装非常简单,没有任何麻烦.但是在OSX上它不起作用.

On Linux Qt5 installation was nice with no hustle. But on OSX it doesn't work.

我希望有人能提出任何建议.

I hope someone can give any suggestions.

推荐答案

我自己也遇到了同样的问题,我通过在配置脚本中指定参数-no-xcb(而不是-qt-xcb)来解决此问题. .这样就可以完成Qt库的编译(尽管有些Qt示例程序无法编译...但是这足以使我暂时回到正轨).

I just encountered this same problem myself, and I worked around it by specifying the argument -no-xcb (instead of -qt-xcb) to the configure script. That allowed the compilation of the Qt libraries to complete (although some of the Qt example programs failed to compile... but it was enough to get me back on track for now).

我怀疑这是Mavericks特有的问题,因为相同的Qt源tarball(qt-everywhere-enterprise-5.2.0-src.tar.gz)在Mountain Lion下可以正常配置调用正常编译.

I suspect this is a Mavericks-specific problem, as the same Qt source tarball (qt-everywhere-enterprise-5.2.0-src.tar.gz) compiled fine with the normal configure invocation under Mountain Lion.

这篇关于在OSX -qt-xcb上安装Qt5的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆