Closed. This question needs to be more focused。它当前不接受答案。












想改善这个问题吗?更新问题,使其仅关注editing this post的一个问题。

在8个月前关闭。



Improve this question




我最近买了《 SuperBible》第5版书。
我使用Ubuntu 12.04 LTS。我使用Code::Blocks。我不太精通C++库和设置。
我想要一本可以从头开始指导我的书。
当我看到这本书没有帮助我们在Linux中建立项目时,我感到很失望。

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

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

还有其他书籍对Linux有帮助吗?

编辑:完成HaloWebMaster所说的第一步和第二步之后,我做了一张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

09-28 14:22