For Ubuntu Karmic and above:
If during Ogre build any headers are still missing, try adding these one at a time, and update the list above please!
While
nvidia-cg-toolkit,
libois-dev and libboost-thread-dev are not strictly required, you'll want to install them:
Compiler And Configuration Tools
sudo apt-get install build-essential automake libtool
Required Dependencies
sudo apt-get install libfreetype6-dev libfreeimage-dev libzzip-dev libxrandr-dev libxaw7-dev freeglut3-dev libgl1-mesa-dev libglu1-mesa-dev
If during Ogre build any headers are still missing, try adding these one at a time, and update the list above please!

- libxt-dev
- libpng3-dev
Not Strictly Required Dependencies
sudo apt-get install nvidia-cg-toolkit libois-dev libboost-thread-dev

- nvidia-cg-toolkit is used by the Cg plugin for Cg shaders.
- libois-dev is used as input library for the demos.
- libboost-thread-dev is used by the paging component and other background threading.
Entirely Optional Dependencies
sudo apt-get install doxygen graphviz libcppunit-dev