gpt4 book ai didi

c++ - 如何从 SuperBible 获取 GLTools 库以在 Ubuntu 中工作?还是另一种选择?

转载 作者:太空狗 更新时间:2023-10-29 23:19:01 30 4
gpt4 key购买 nike

<分区>

我最近买了《 super 圣经》第 5 版。我使用 Ubuntu 12.04 LTS。我使用代码:: block 。我不是很精通 C++ 库和设置。我想要一本书来指导我从头开始。当我看到这本书没有帮助我们在 Linux 中建立项目时,我很失望。

他们使用 2 个库,freeglut 和 GLTools。我读了this精彩的教程,解释了 linux 的 freeglut 部分。

现在我对 GLTools 一无所知。我在 debian.org 中搜索了一个包含 GLTools.h 的包,但没有找到。所以,我根本找不到包裹。 Here ,他们确实提供了库,但它仅适用于 Windows 和 Mac。在 Ubuntu 中包含一个库是小菜一碟(只是终端中的一个命令),但我不知道如何为此使用 Windows 库。

有没有其他对 Linux 有帮助的书?

编辑:在完成 HaloWebMaster 所说的第 1、2 步之后,我做了一个 cd 并进入 gltools 文件夹(那里有一个 makefile)。在那里我做了 make all。但这就是发生的事情:

Package OpenEXR was not found in the pkg-config search path.
Perhaps you should add the directory containing `OpenEXR.pc'
to the PKG_CONFIG_PATH environment variable
No package 'OpenEXR' found
make[1]: sdl-config: Command not found
make[1]: Entering directory `/home/user/gltools/framework'
make[1]: freetype-config: Command not found
Package OpenEXR was not found in the pkg-config search path.
Perhaps you should add the directory containing `OpenEXR.pc'
to the PKG_CONFIG_PATH environment variable
No package 'OpenEXR' found
make[1]: sdl-config: Command not found
make[1]: freetype-config: Command not found
Compiling camera.cpp
Package OpenEXR was not found in the pkg-config search path.
Perhaps you should add the directory containing `OpenEXR.pc'
to the PKG_CONFIG_PATH environment variable
No package 'OpenEXR' found
make[1]: sdl-config: Command not found
make[1]: freetype-config: Command not found
Package OpenEXR was not found in the pkg-config search path.
Perhaps you should add the directory containing `OpenEXR.pc'
to the PKG_CONFIG_PATH environment variable
No package 'OpenEXR' found
make[1]: sdl-config: Command not found
make[1]: freetype-config: Command not found
Compiling fs.cpp
Package OpenEXR was not found in the pkg-config search path.
Perhaps you should add the directory containing `OpenEXR.pc'
to the PKG_CONFIG_PATH environment variable
No package 'OpenEXR' found
make[1]: sdl-config: Command not found
make[1]: freetype-config: Command not found
Package OpenEXR was not found in the pkg-config search path.
Perhaps you should add the directory containing `OpenEXR.pc'
to the PKG_CONFIG_PATH environment variable
No package 'OpenEXR' found
make[1]: sdl-config: Command not found
make[1]: freetype-config: Command not found
Compiling image/image-convert.cpp
image/image-convert.cpp:7:18: fatal error: half.h: No such file or directory
compilation terminated.
Compilation failed for libgltools_a_image-convert.o:
make[1]: *** [libgltools_a_image-convert.o] Error 1
make[1]: Leaving directory `/home/user/gltools/framework'
make: *** [framework] Error 2

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