Tutorial 3         How to create the Tutorial Project

How to create the Tutorial Project

Using the File->New command, create a Windows project called in this case Tutorial3. This name could change from tutorial to tutorial. Make sure that Add to current workspace is selected as shown below.

xorekis3_1.png

In the next popup you will be asked What kind of Windows application would you like to create?, make sure that An empty Project is selected. Now that we have a project, we need to setup some includes and libraries. First let’s add the additional include directories for Ogre and the tutorial. Open the settings for our Tutorial Project. Go to the C++ Tab, and select Preprocessor from the Category drop down. Set C/C++/Code Generation/Enable C++ Exceptions to "No". If this is left as the default "Yes", Ogre's exceptions will replaced by generic unknown exceptions, making debugging very challenging. Note: The C++ tab may not show up until you have entered some code. In that case, do this step later.

Now add ../../OgreNew/OgreMain/Include;../../Common to the Additional Include Directories as shown below.

xorekis3_2.png

Next, go to the link tab and select Input from the category dropdown. Now add OgreMain.lib to the Objects/Library Modules.
Enter the following into Additional Library Paths field ..\..\OgreNew\OgreMain\lib\debug.

xorekis3_3.png

Change the Category to General, add the path ../bin to the Output file name as shown below.

xorekis3_4.png

Click on the debug tab, and enter ..\bin\debug to the Working Directory field as shown below. Make sure that the executable for debug session is pointing to C:\OgreTutorials\bin\debug\Tutorial3.exe.

xorekis3_5.png

We are now in a state that we can start creating our application.. On to the next Tutorial:

Tutorial 4