我最近买了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
找到一个更好的方法:svn checkout http://oglsuperbible5.googlecode.c./Src/GLTools/include/om/svn/trunk/ oglsuperbible5-read-only
,然后将./Src/GLTools/include/中的文件复制到$ INCLUDE中的某个位置