我最近买了 SuperBible 第 5 版书。我使用 Ubuntu 12.04 LTS。我使用代码::块。我对 C++ 库和设置不是很精通。我想要一本能从头开始指导我的书。当我看到这本书没有帮助我们在 Linux 中建立项目时,我感到很失望。
他们使用 2 个库,freeglut 和 GLTools。我读了这篇精彩的教程,解释了 linux 的 freeglut 部分。
现在我对GLTools一无所知。我在 debian.org 中搜索了一个包含 GLTools.h 的包,但没有。所以,我根本找不到包裹。 在这里,他们确实提供了库,但仅适用于 Windows 和 Mac。在 Ubuntu 中包含一个库是小菜一碟(只是终端中的一个命令),但我不知道如何为此使用 Windows 库。
有没有其他书可以帮助Linux?
编辑:在完成 HaloWebMaster 所说的第 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