kowi
29-03-2007 17:56:56
Hello,
after spending hours on compiling OgreAL on Windows, I wrote this tutorial.
I suppose, you can compile Ogre yourself! Make sure you've set your OGRE_SDK AND OGRE_HOME environment variables! You also need a valid installation of
Code::Blocks and TortoiseSVN!
Get the MinGW Toolbox from
http://prdownloads.sourceforge.net/ogre ... e?download and install
it.
Install MSYS-1.0.10.exe or newer from http://www.mingw.org/download.shtml (Here's
a direct link: http://prdownloads.sf.net/mingw/MSYS-1. ... e?download and install it.
create these two directories:
- c:\ogre
- c:\ogre\OgreAL
Go into the c:\ogre\OgreAL directory using your Explorer. Right click and download
OgreAL from SVN using TortoiseSVN and this URL:
https://svn.sourceforge.net/svnroot/ogr ... eAL-Eihort
Download libogg and libvorbis from http://xiph.org/downloads/ and unpack
them in the directory we created before: c:\ogre. Rename the two folders to "ogg" and
"vorbis"
You then need to go to OpenAL Download Page and download the OpenAL SDK installer
and the freealut Binary package. Run the OpenAL 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 two environment variables.
1. OPENAL_SDK - This should point to where ever you chose to install the
SDK.
2. ALUT_BIN - This should point to where ever you unzipped the freealut
package.
You should now see this directory structure:
Open up the MSYS console and execute these commands:
You now have compiled and installed ogg and vorbis!
Run the oalinst.exe from the "redist" folder of your OpenAL SDK installation.
Go to the directory c:\ogre\OgreAL and double click on the OgreAL.workspace file.
!!! NOTE: WE WILL ONLY BUILD THE OGREAL PROJECT AND NOT THE DEMOS !!!
!!! WE WILL ONLY BUILD IN DEBUG MODE, YOU CAN FIGURE OUT THE REST YOURSELF !!!
Right click on the OgreAL project and select "Build options".
Left click on "Debug" in the left tree.
Select "GNU GCC Compiler" from the "Selected Compiler" Drop down box.
Click on the "Other options" tab below and remove the three lines.
Go to the "Linker settings" from the drop down box above.
Now remove all the libraries!
Use these instead (I think, you can figure out how to adjust the paths to your system):
I hope this isn't needed in future releases of OgreAL!!!
Comments are welcome!
Konrad
after spending hours on compiling OgreAL on Windows, I wrote this tutorial.
I suppose, you can compile Ogre yourself! Make sure you've set your OGRE_SDK AND OGRE_HOME environment variables! You also need a valid installation of
Code::Blocks and TortoiseSVN!
Get the MinGW Toolbox from
http://prdownloads.sourceforge.net/ogre ... e?download and install
it.
Install MSYS-1.0.10.exe or newer from http://www.mingw.org/download.shtml (Here's
a direct link: http://prdownloads.sf.net/mingw/MSYS-1. ... e?download and install it.
create these two directories:
- c:\ogre
- c:\ogre\OgreAL
Go into the c:\ogre\OgreAL directory using your Explorer. Right click and download
OgreAL from SVN using TortoiseSVN and this URL:
https://svn.sourceforge.net/svnroot/ogr ... eAL-Eihort
Download libogg and libvorbis from http://xiph.org/downloads/ and unpack
them in the directory we created before: c:\ogre. Rename the two folders to "ogg" and
"vorbis"
You then need to go to OpenAL Download Page and download the OpenAL SDK installer
and the freealut Binary package. Run the OpenAL 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 two environment variables.
1. OPENAL_SDK - This should point to where ever you chose to install the
SDK.
2. ALUT_BIN - This should point to where ever you unzipped the freealut
package.
You should now see this directory structure:
- c:\ogre
- c:\ogre\OgreAL
- c:\ogre\vorbis
- c:\ogre\ogg
Open up the MSYS console and execute these commands:
cd /c/ogre/ogg
./configure --prefix=/c/ogre/install
make
make install
cd ../vorbis
./configure --disable-oggtest \
--with-ogg=/c/ogre/install/ \
--enable-shared=no \
--prefix=/c/ogre/install
make
make install
You now have compiled and installed ogg and vorbis!
Run the oalinst.exe from the "redist" folder of your OpenAL SDK installation.
Go to the directory c:\ogre\OgreAL and double click on the OgreAL.workspace file.
!!! NOTE: WE WILL ONLY BUILD THE OGREAL PROJECT AND NOT THE DEMOS !!!
!!! WE WILL ONLY BUILD IN DEBUG MODE, YOU CAN FIGURE OUT THE REST YOURSELF !!!
Right click on the OgreAL project and select "Build options".
Left click on "Debug" in the left tree.
Select "GNU GCC Compiler" from the "Selected Compiler" Drop down box.
Click on the "Other options" tab below and remove the three lines.
Go to the "Linker settings" from the drop down box above.
Now remove all the libraries!
Use these instead (I think, you can figure out how to adjust the paths to your system):
..\..\ogrenewCB\lib\OgreMain_d.dll
C:\WINDOWS\system32\OpenAL32.dll
C:\ogre\freealut-1.1.0-bin\lib\alut.dll
C:\ogre\install\lib\libvorbis.dll.a
C:\ogre\install\lib\libvorbisfile.a
C:\ogre\install\lib\libogg.a
I hope this isn't needed in future releases of OgreAL!!!
Comments are welcome!
Konrad