在安装qt-everywhere-opensource-src-4.8.5.tar.gz 时,出现Basic XLib functionality test failed!的错误,如下所示:
Basic XLib functionality test failed!
You might need to modify the include and library search paths by editing
QMAKE_INCDIR_X11 and QMAKE_LIBDIR_X11 in
/home/zhu/Qt/qt-x11-opensource-src-4.5.2/mkspecs/linux-g++
Basic XLib functionality test failed!You might need to modify the include and library search paths by editing QMAKE_INCDIR_X11 and QMAKE_LIBDIR_X11 in
/home/zhu/Qt/qt-x11-opensource-src-4.5.2/mkspecs/linux-g++
解决方法:1、安装libX11库:yum install libX11* 如何仍提示出错,则将所有都libX库都装上,执行下面操作;
2、yum install libX* 即可。
说明:其实出错主要是因为缺少:libXau-devel 和libX11-devel ,而libX11-devel的安装依赖于libXau-devel,所以用yum安装,就自动将libXau-devel 安装上了。