How to build Qt 5 from source with c++14 support

主宰稳场 提交于 2019-12-06 04:35:23

If you using g++ or clang++ to build the Qt 5, then go to qt5/qtbase/mkspecs/common/g++-base.conf or qt5/qtbase/mkspecs/common/clang.conf respectively and simply change the right hand side of QMAKE_CXXFLAGS_CXX11 = -std=c++11 assignment to (for example) -std=gnu++1z (or to whatever you need).

To build Qt 5 you have to run qt5/configure script with -c++11 provided (and -platform linux-clang-libc++ or linux-clang or linux-g++ or whatever you need — the parameter is the qt/qtbase/mkspecs/*/ directory name represented your platform).

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!