Setting up the GLEW, GLM, SOIL, and OpenCV libraries in Mac OS X/Linux
In this section, we will outline the steps required to set up the same libraries in Mac OS X and Linux.
Getting ready
We will first need to download the prerequisite libraries from the following websites:
- GLEW (glew-1.10.0): https://sourceforge.net/projects/glew/files/glew/1.10.0/glew-1.10.0.tgz
- GLM (glm-0.9.5.4): http://sourceforge.net/projects/ogl-math/files/glm-0.9.5.4/glm-0.9.5.4.zip
- SOIL: http://www.lonesock.net/files/soil.zip
- OpenCV (opencv-2.4.9): http://sourceforge.net/projects/opencvlibrary/files/opencv-unix/2.4.9/opencv-2.4.9.zip
To simplify the installation process for Mac OS X or Ubuntu users, the use of MacPorts in Mac OS X or the apt-get
command in Linux (as described in Chapter 1, Getting Started with OpenGL) is highly recommended.
The following section assumes that the download directory is ~/opengl_dev
(refer to Chapter 1, Getting Started with OpenGL).
How to do it...
There are two methods to install the prerequisite...