重新打开以前的CMake工程,发生如下错误:

CMake Error at /Users/weiyang/Qt5.9.2/5.9.2/clang_64/lib/cmake/Qt5Gui/Qt5GuiConfigExtras.cmake:9 (message):
Failed to find "gl.h" in
"/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/System/Library/Frameworks/OpenGL.framework/Headers;/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/System/Library/Frameworks/AGL.framework/Headers".

Fine, 在build目录中删除CMakeCache.txt,重新运行一遍Cmake即可。

分类: C plus plus

发表评论

电子邮件地址不会被公开。 必填项已用*标注