0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

Mac build fail 'GL/glut.h' file not found

Posted at

使用環境

  • M1 MacBook(2020)
  • Xcode Version 14.2 (14C18)

エラーと解決策

本記事では、OpenGLにおいてC言語で記述していた際に、

'GL/glut.h' file not found

というエラーを吐かれたので、それへの対処方方について記述する。
このエラーへの対処方法は非常にシンプルで、
#include <GL/glut.h>を、#include <GLUT/glut.h>に直すだけである。このエラーについて調べてみると、C++でも同様の現象が起きているようである。

参考文献

OpenGL C++ on Mac build fail 'GL/glut.h' file not found

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?