MSVS .NET 2003 help initiatializing an ogre project

Problems building or running the engine, queries about how to use features etc.
MiD
Gnoblar
Posts: 2
Joined: Fri Jan 21, 2005 2:17 pm

MSVS .NET 2003 help initiatializing an ogre project

Post by MiD »

Hello, I'm new here, and new to MSVS .NET 2003.
It seems to me a bit complicated to add the needed .lib files and others that are needed to be added and get it working. I'm working with this tutorial, and that's where I stuck: http://ogrewiki.digitalsentience.com/in ... Tutorial_3
This tutorial is suited for VC++ 6 users, and no instructions for .NET edition :(

Help would be really appreciated.
User avatar
haffax
OGRE Retired Moderator
OGRE Retired Moderator
Posts: 4823
Joined: Fri Jun 18, 2004 1:40 pm
Location: Berlin, Germany
x 8

Post by haffax »

I'm working with a german VC.Net, so option names might be a bit off.
Right click your project. Choose Properties...

Make sure the Configuration-Combobox is set to "All configurations".

On the page C/C++->General is the field "Additional include directories". Add /yourpathto_ogrenew/OgreMain/include to it.
On the page Linker->General there is the field "Additional library directories". Add /yourpathto_ogrenew/OgreMain/lib/$(ConfigurationName) to it.

The $(ConfigurationName) is a variable, that will be substituted by VS with either debug or release, depending on your current configuration.

On the page Linker->Input is the field "Additional dependencies". Here you must insert OgreMain.lib for your Release-Konfiguration and OgreMain_d.lib for your Debug-Configuration.

Edit: substituted dll with lib
Last edited by haffax on Sat Jan 22, 2005 12:05 am, edited 1 time in total.
team-pantheon programmer
creators of Rastullahs Lockenpracht
MiD
Gnoblar
Posts: 2
Joined: Fri Jan 21, 2005 2:17 pm

Post by MiD »

Thanks for your quick and helpful reply! I still got some problems compiling the example, probably didn't do all the copying files that were needed.
Maybe there's some example with provided project, and all the files that I can get?
User avatar
charlie
Greenskin
Posts: 146
Joined: Mon Nov 15, 2004 1:43 pm
Location: Austria

Post by charlie »

Don't know if you've already seen this but Robomaniac has written a great tutorial how to download ogre from cvs, getting it compile with VS .net 2003 and setting up an example project.

Links are in this post:
http://www.ogre3d.org/phpBB2/viewtopic. ... ght=newbie

This is what help me a lot...
User avatar
haffax
OGRE Retired Moderator
OGRE Retired Moderator
Posts: 4823
Joined: Fri Jun 18, 2004 1:40 pm
Location: Berlin, Germany
x 8

Post by haffax »

More than enough. :) Look at the samples that come with Ogre. Look at the projects in ogreaddons. 9thLife is a big working RPG based on Ogre with full source code available, get it here.

If you have a specific problem with your project setup you can post it here. But please be specific and provide details.
team-pantheon programmer
creators of Rastullahs Lockenpracht