小编Sel*_*dom的帖子

编译 OpenGL 程序(缺少 GL/gl.h)

我是一个完整的 Linux/Ubuntu 菜鸟,所以我为这个问题的任何愚蠢部分或后续问题道歉。

我正在尝试将我的软件工程班组编写的程序写入我的家用计算机。在学校,我们有 Linux,它会在那里编译和运行。我下载了 VMWare,在虚拟机上安装了 Ubuntu,现在正在尝试打开我的程序。

然而,当我尝试运行我的 make 文件时,我收到一个错误消息

gcc -I../include -pthread -O1 -c rain.c
In file included from rain.c:19:0:
../include/GL/glfw.h:176:21: fatal error: GL/gl.h: No such file or directory
compilation terminated.
make: *** [rain.o] Error 1
Run Code Online (Sandbox Code Playgroud)

有人会碰巧知道为什么在我学校的计算机上找不到这个文件吗?我需要做什么才能下载它或将它放在正确的位置?

compiling opengl

64
推荐指数
2
解决办法
14万
查看次数

标签 统计

compiling ×1

opengl ×1