If you haven't done so already, be sure to visit the Wiki Portal to read about how the wiki works. Especially the Ogre Wiki Overview page.
Table of contents
Help! It doesn't work when I run my exe from Visual Studio!
Do not worry. All you have to do is adjust your project properties:
Navigate to the debugging section and enter the following values in Command and Working Directory:
Now it should work!
Help! It still doesn't work!
So, where is your executable?
If it's being copied to another location, you can't use the $(OutDir) variable.
If you use the samples directory of the OgreSDK, you need to change the values in Command and Working Directory to the following:
Command : $(OGRE_HOME)\bin\$(ConfigurationName)\$(ProjectName).exe
Working Directory: $(OGRE_HOME)\bin\$(ConfigurationName)
You also need to setup your project to copy your executable to this location.
Open up Project - Properties - Build Events - Post Build Events:
The command line to enter is copy "$(OutDir)\$(TargetFileName)" "$(OGRE_HOME)\bin\$(ConfigurationName)".
Contributors to this page: jacmoe
.
Page last modified on Thursday 29 of April, 2010 20:02:38 GMT by jacmoe
.
The content on this page is licensed under the terms of the Creative Commons Attribution-ShareAlike License.
As an exception, any source code contributed within the content is released into the Public Domain.

