Discussion area about developing or extending OGRE, adding plugins for it or building applications on it. No newbie questions please, use the Help forum for that.
Transporter
Minaton
Posts: 933 Joined: Mon Mar 05, 2012 11:37 am
Location: Germany
x 110
Post
by Transporter » Mon Jun 04, 2012 3:24 pm
I have a small patch for all user of Visual Studio. This patch creates a Visual Studio property page in SDK folder.
It's very easy to use property pages:
Open the Property Manager (View > Property Manager)
Right click on your project
Add Existing Property Sheet...
Select the property file in your SDK
All paths for include and library are set correct now. You just need to add the specific lib (OgreMain.lib) without an absolute path.
The method has a few advantages:
You don't need admin rights to set environment variables
You can work with multiple SDKs/versions, just change the property page
You can use variables in postbuild process to copy ogre binaries to your solution folder (copy $(OGRE_BIN)/$(Configuration)/*.dll $(TargetDir) /y)
https://sourceforge.net/tracker/?func=d ... tid=302997
You do not have the required permissions to view the files attached to this post.
spacegaier
OGRE Team Member
Posts: 4308 Joined: Mon Feb 04, 2008 2:02 pm
Location: Germany
x 137
Post
by spacegaier » Wed Jun 12, 2013 9:25 pm
altren
Gnome
Posts: 334 Joined: Tue Oct 24, 2006 9:02 am
Location: Moscow, Russa
x 26
Post
by altren » Tue Jun 25, 2013 9:36 pm
You can add different .lib for different configurations in propertysheet as well:
Code: Select all
<ItemDefinitionGroup Condition="'$(Configuration)'=='Debug'">
<Link>
<AdditionalDependencies>OgreMain_d.lib;%(AdditionalDependencies)</AdditionalDependencies>
</Link>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)'=='Release'">
<Link>
<AdditionalDependencies>OgreMain.lib;%(AdditionalDependencies)</AdditionalDependencies>
</Link>
</ItemDefinitionGroup>