1、@H_403_2@QT4 下载:
https://download.qt.io/archive/qt/4.8/4.8.5/
2、@H_403_2@运行./configure时提示/bin/sh^M: bad interpreter: No such file or directory
用vi可以看到,文件中出现很多^M符号,可以sudo apt-get install dos2unix,转换一下
3、@H_403_2@直接按2,应该无法安装的,后续会提示make等基本命令找不到,是解压的问题:
unzip -a qtxxx.zip
-a:对文本文件进行必要的字符转换
4、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 /qt-everywhere-opensource-src-4.8.5/mkspecs/linux-g++.
执行sudo apt-get install libX11-dev libXext-dev libXtst-dev 即可
原文链接:https://www.f2er.com/ubuntu/353320.html