configure: error: Can't find GL/gl.h. Look for Mesa devel packages for your distro.

Angry Panda / 2023-08-31 / 原文

1. 安装文件查询工具

 sudo apt install plocate

 

 

2. 查询头文件地址,shell命令:

locate GL/gl.h

 

 

 

 

 

3. 为编译时指定其他的头文件查询地址:

export CPLUS_INCLUDE_PATH=/usr/include

 

 

=======================================