Make sure you optimize your build time with Precompiled headers ogre.cfg Render System=Direct3D9 Rendering Subsystem (Put a # in front of them, or delete them!) If you only want to use the OpenGL-renderer, edit the "plugins_d.cfg" and "plugins.cfg" files, and edit out the lines
If you are getting errors like: "The program can't start because d3dx9_43.dll (or d3dcompiler_43.dll) is missing from your computer." try to install the DXSDK_Jun10.exe, if you want to use a DirectX renderer. See this troubleshooting guide if you can not find the files. Note: If you are running Ogre 1.9 and are getting a runtime error saying: "Cannot locate resource shadows.glsl in resource group Popular or any.", you have to edit "resources_d.cfg" and "resources.cfg" and add "FileSystem=././media/materials/programs/GLSL" to the files. You've set up an Ogre project succesfully. Note: If you are using Ogre >1.9, also add " OgreOverlay.lib". Switch configuration from "Active(Debug)" to "Active(Release)". Note: If you are using Ogre >1.9, also add "OgreOverlay_d.lib".Ĭonfiguration Properties - Linker - Input - Additional Dependencies - Release Note: If you are using Ogre >1.9 also add "$(OGRE_HOME)\include\OGRE\Overlay"Ĭonfiguration Properties - Linker - General - Additional Library Directories $(OGRE_HOME)\lib\$(Configuration)Ĭonfiguration Properties - Build Events - Post-Build Event - Command LineĬopy "$(OutDir)\$(TargetFileName)" "$(OGRE_HOME)\Bin\$(Configuration)"Ĭonfiguration Properties - Linker - Input - Additional Dependencies - Debug
$(OGRE_HOME)\Bin\$(Configuration)\$(ProjectName).exeĬonfiguration Properties - C/C++ - General - Additional Include Directories Set Character Set to Use Multi-Byte Character Set on the General Configuration Properties page:
Make sure that Windows Application is selected and Empty Project is checked:ĭownload the Ogre Wiki Tutorial Framework. Handy when you switch between several Ogre SDKs.Ĭreate a new Win32 project ( File -> New -> Project):
Run it, and the OGRE_HOME environment variable points to that directory. Save it as OGRE_HOME.bat and put it in the root directory of the Ogre SDK. Run setx OGRE_HOME path_to_ogre_sdk in a command console (cmd.exe):Īlternatively, create this handy batch script: Setting Up an Application for Visual Studio 2010 Environment Variables This will create a directory structure that is identical to the binary install structure. Build Ogre from source with CMake: CMake Quick Start Guide If you are building Ogre from source, you must build the debug and release targets and execute the Install script for both targets as well.Installing the Ogre SDK: Installing the Ogre SDK.The Ogre SDK version 1.7 or greater must be installed.
Guide for setting up an Ogre application using Visual Studio 2010 (VC10).