gpt4 book ai didi

c++ - 用 C++ 编写 OpenGL 应用程序

转载 作者:太空狗 更新时间:2023-10-29 21:06:51 25 4
gpt4 key购买 nike

我是 Linux 用户。我用 python 编写 OpenGL 应用程序,但我打算用 C++ 编写 OpenGL 应用程序,但我遇到了问题。 '/urs/include' 目录中没有 'GL' 文件夹,我没有访问 OpenGL 头文件的权限。我应该怎么办?没有安装包吗?

最佳答案

你必须安装它。

对于 Ubuntu,我认为命令是:

sudo apt-get install freeglut3 freeglut3-dev

因为这会安装 freeglut 所依赖的一切。

对于其他 Linux 发行版(我运行 Arch Linux),只需在 Google 中搜索 opengl headers {distro}

关于c++ - 用 C++ 编写 OpenGL 应用程序,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6537632/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com