InstallationOgre3D
Un article de OpenMASKWiki.
Install Ogre3D 1.4.0 for Linux
[modifier]
ALL-In-One
I've made a tar.gz with all you need to compile Ogre3D :
- FreeImage
- Cg
- OIS 1.0
- Ogre1.4.5
So First get this : http://openmask.org/allInOneOgre1.4.5.tar.gz
tar xvzf allioneOgre1.4.5.tar.gz
There are 2 ways to call the installScript :
./installOgre.sh
wich is gonna compile everything
./installOgre.sh WHATEVER_ARGUMENT
wich only recompile Ogre (if any problem occured, and believe me it happens all the time )
[modifier]
Troubleshooting
- If you get the following error message : PKG_CONFIG_PATH: undefined variable, type
setenv (or export) PKG_CONFIG_PATH in your shell.
- You may need to set the following variables and run the script again:
setenv CXXFLAGS '-I/YYY/include -I/ZZZ/include' setenv LDFLAGS '-L/YYY/lib -L/ZZZ/lib'
where YYY is the path to Freeimage (ie. /YYY/include contains Freeimage.h) and ZZZ is the path to Cg (ie. /ZZZ/include contains Cg/cg.h)
- Add OGRE_HOME and OIS_HOME to your .cshrc :
setenv OGRE_HOME /.../ogreBin setenv OIS_HOME /.../oisBin
these directories have been created by the installOgre.sh script.
- You may need to add the Plugins.cfg file in /.../ogreBin/lib/OGRE.
Plugins.cfg Sample :
# Defines plugins to load # Define plugin folder PluginFolder=/.../ogreBin/lib/OGRE # Define D3D rendering implementation plugin Plugin=RenderSystem_GL.so Plugin=Plugin_ParticleFX.so Plugin=Plugin_BSPSceneManager.so Plugin=Plugin_OctreeSceneManager.so Plugin=Plugin_CgProgramManager.so
[modifier]
Fedora Other problem
You should check this page : http://www.ogre3d.org/wiki/index.php/Detailed_Fedora_Walkthrough

