天天看点

OgreAL

Download 

Here you have two choices. You can download the stable release in a zip file, or you can use SVN to check out the current development state. Either way the instructions for setting it up and building are the same. 

Stable Release

<a href="https://sourceforge.net/projects/ogreal/" target="_blank">OgreALv0.2 </a>

SVN Head 

For Ogre 1.2 Dagon 

For Ogre 1.4 Eihort

Setup 

There are a few steps to this setup, but there's nothing too difficult. 

* First of all, I am assuming that you have Ogre installed somewhere. If you don't then you should check out either 

* Run the SDK installer and unzip the freealut package. You can put them where ever you like on your system since we'll reference them later with system variables. 

* The next step is to create three environment variables. 

1. 

OGRE_SRC - This needs to point at your ogrenew directory. If you are using the OgreSDK, you can skip this one as the Ogre installer will set up the system variables for you. 

2. OPENAL_SDK - This should point to where ever you chose to install the SDK. 

3. ALUT_BIN - This should point to where ever you unzipped the freealut package 

4. OIS_SRC - You only need this environment variable if you are using the CVS version of Ogre with OIS. In that case it needs to point to the root OIS directory.

* Unzip these right next to OgreAL. I'm not sure why they do it this way, but in order to get these bad boys to build you need to rename the libogg-1.1.3 folder to ogg and the libvorbis-1.1.2 folder to vorbis. When you have all this done it should look like this: 

<b>Code:</b>

Develpment 

    |--OgreAL 

    |--ogg 

    |--vorbis

* Now go into the ogg folder and build both the release and debug builds by double clicking on the ogg/win32ogg.dsw workspace. It'll open up in Visual Studio and you just need to build it. 

* Then do the same thing with the vorbis/win32/vorbis.dsw 

* After all that you can open the OgreAL solution and build it and it should go off without a hitch! 

Documentation