kimziv / oglsuperbible5

GLTools and OpenGL SuperBible (5th Edition) OpenGL超级宝典第五版
41 stars 16 forks source link

Chapter 09 hdr_imaging is completely broken / missing on Linux #52

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
There are no files in the hdr_imaging folder under Chapter 09 in Linux. Not 
even a makefile.

Here are the steps to make this work...

1. Copy the exr images and shaders from the 
VisualStudio2008/Chapter09/hdr_imaging to the Linux/Chapter09/hdr_imaging.

2. Modify hdr_imaging.cpp in the Src to replace #include <GL\glu.h> by #include 
<GL/glu.h>.

3. Download the attached makefile and move it to the hdr_imaging folder.

4. You need to install a few things - run this on the command line.
  sudo apt-get install libilmbase6 libilmbase-dev

5. Download the build OpenEXR from http://www.openexr.com/downloads.html (or 
just run the below commands)

cd ~/Downloads
wget http://download.savannah.nongnu.org/releases/openexr/openexr-1.7.0.tar.gz
tar zxvf openexr-1.7.0.tar.gz
cd openexr-1.7.0
./configure
make
sudo make install

6. You are all set to make and run the hdr_imaging example.

Original issue reported on code.google.com by nag.ra...@gmail.com on 20 Sep 2012 at 7:50

Attachments: