cmakelists.txt中配置openg环境出现: undefined reference to symbol 'glLightfv'

cmakelists.txt中配置openg环境出现: undefined reference to symbol 'glLightfv' 解决方法: 在c

cmakelists.txt中配置openg环境出现: undefined reference to symbol 'glLightfv'

解决方法:

在cmakelists.txt添加

find_package(Qt5OpenGL)
find_package(OpenGL)

 

转载于:https://www.cnblogs.com/fuhang/p/10196238.html