History: Tutorial 3
Source of version: 5 (current)
Copy to clipboard
!!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.
{img fileId="1619" thumb="y" alt="xorekis3_1.png" rel="box[g]"}
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.
{img fileId="1620" thumb="y" alt="xorekis3_2.png" rel="box[g]"}
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+-.
{img fileId="1621" thumb="y" alt="xorekis3_3.png" rel="box[g]"}
Change the Category to General, add the path -+../bin+- to the Output file name as shown below.
{img fileId="1622" thumb="y" alt="xorekis3_4.png" rel="box[g]"}
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+-.
{img fileId="1623" thumb="y" alt="xorekis3_5.png" rel="box[g]"}
We are now in a state that we can start creating our application.. On to the next Tutorial:
((Tutorial 4))