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

标签 c++ linux opengl ubuntu codeblocks

<分区>

我最近买了《 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

最佳答案

wget http://gltools.svn.sourceforge.net/viewvc/gltools/?view=tar
tar xzvf gltools.tar.gz
make all

关于c++ - 如何从 SuperBible 获取 GLTools 库以在 Ubuntu 中工作?还是另一种选择?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11141312/

相关文章:

c++ - 范围算法和标准算法之间的区别

c++ - 函数如何修改C++中按值传递的参数?

c++ - 我不确定这个前缀哈希方法应该做什么?

linux - "netstat"组播、单播和广播数据

opengl - 使用顶点着色器旋转纹理

c++ - 原子写入和 volatile 读取

linux - 多产的 PL2303 串行端口到 250000bps

linux - 打印顶部输出的第二帧

c++ - 在 OpenGL 4.0 中绘制球体

c++ - OpenGL - 绘制带纹理正方形的最简单方法