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

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

解决方法:

在cmakelists.txt添加

find_package(Qt5OpenGL)
find_package(OpenGL)
05-15 00:12