qt5-源码编译
ubuntu下QT 5.15源码编译
1.下载源码
qt官网 : https://download.qt.io/archive/qt

2.解压:
1 | |
3.安装依赖
1 | |
4.配置
切换到已解压的源码目录目录
1 | |
1 | |
/home/sweet/qt-everywhere-src-5.15.2/qtbase/include/QtCore/../../src/corelib/global/qendian.h:333:54: error: incomplete type ‘std::numeric_limits’ used in nested name specifier 333 | { return QSpecialInteger(std::numeric_limits<T>::min()); }
若有这个报错:
在qt下:/qtbase/src/corelib/global/qglobal.h
找qglobal.h,加上
1 | |
运行
1 | |
选o

选y

然后make 编译
1 | |