我已经多次编译我的项目,包括发布和调试配置。突然出现错误:
Cannot open include file: 'GLES2/gl2.h': No such file or directory
这是 Visual Studio 2017 社区中的一个 Qt 项目,带有 Qt add-in , 使用 Qt 5.6.1-64。
我尝试在 google 上搜索,但似乎没有适用于此问题的建议。
最佳答案
我遇到了同样的问题。通过添加这个包含解决:
$(QTDIR)\include\QtANGLE
我通过注意到 Qt Creator 创建的项目可以无错误地构建来找到这个解决方案。并在 qmake 生成的 Makefile 中找到它。
关于c++ - 错误无法打开包含文件 : 'GLES2/gl2.h' : No such file or directory suddenly appears,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45866184/