事件起因

今天发现GpgFrontend更新了2.0.10版本,遂clone下来重新编译一下。中途发现报错如下:

CMake Error at /usr/local/opt/qt5/lib/cmake/Qt5Gui/Qt5GuiConfigExtras.cmake:9 (message):
Failed to find "gl.h" in

解决办法

打开提示的文件vim /usr/local/opt/qt5/lib/cmake/Qt5Gui/Qt5GuiConfigExtras.cmake

set(_GL_INCDIRS "/System/Library/Frameworks/OpenGL.framework/Headers" "/System/Library/Frameworks/AGL.framework/Headers")

替换成

set(_GL_INCDIRS "/System/Library/Frameworks/OpenGL.framework/Headers" "/System/Library/Frameworks/AGL.framework/Headers" "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks")

再编译就行了。

Last modification:January 18, 2023
If you think my article is useful to you, please feel free to appreciate