在Windows上构建Qt时发现了,但我在Linux Mint 18上构建它时遇到了一些问题。我下载了qt-everywhere-opensource-src-5.7.0。 tar.gz并将其提取到/home/user/Qt-Static/Qt5.7.0/。然后我跑配置与下面的命令:在Linux Mint上编译Qt - OpenGL功能测试失败
./configure -platform linux-g++-32 -prefix /home/user/Qt-Static/Qt5.7.0 -static -opensource -confirm-license -opengl desktop -make libs
起初,我得到了一个错误:
fatal error: bits/c++config.h: No such file or directory
搜索网上我找到了解决方案,这是安装gcc-multilib的和g ++ - multilib的。在此之后,当我运行configure时,我得到下面的输出,其中包含错误“OpenGL功能测试失败!”
Creating qmake...
.........................................................................................Done.
Running configuration tests...
checking for C++11... yes.
checking for C++14... yes.
checking for C++1z... yes.
checking for default C++ standard edition..