fatal error: GLUT/freeglut.h file not found Catalina

假如想象 提交于 2021-01-29 06:16:01

问题


I am using

#include <gl/freeglut.h>

but getting

"fatal error: GLUT/freeglut.h file not found"

** I tried reinstall "brew install glew freeglut" and also "

#ifdef __APPLE__ 
#include <OpenGL/gl.h> 
#include <GLUT/glut.h> 
#else 
#include <GL/gl.h> 
#include <GL/glut.h>
#endif"

I also tried:

#include <GL/freeglut.h>

but none of them worked...

来源:https://stackoverflow.com/questions/65655868/fatal-error-glut-freeglut-h-file-not-found-catalina

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!