Pls HELP! How to compile the demo in OgreNewt toolkit ?

chanfc2004

13-04-2006 01:35:51

Hi Sir,
I'm a newbie for using OGRE & NEWTON. Pls help to solve my problem as stated below:

I have newly installed Visual Studio 2005 Professional in my PC.
I have downloaded the OGRE SDK and installed it to C:\OgreSDK.
Also, I have downloaded the Newton SDK and installed it to C:\NewtonSDK.
And, I have downloaded the OgreNewt Library Kit and unzipped it to C:\OgreNewt.

Now, I want to compile the Demo01 sample which is included in the OgreNewt Library Kit. So I double click the Demo01_TheBasics.vcproj file in the folder C:\OgreNewt\demos\Demo01_TheBasics, then my VS 2005 loads this project without problem.
I found that the Configuration is set to "Active(Debug_DLL)" from the project property.
I also found that the Additional Library Directories is set to "..\..\OgreNewt_Main\lib\debug;..\..\..\..\ogrenew\OgreMain\lib\Debug;..\..\..\..\..\NewtonSDK\sdk\dll".
And, I also found that the Additional Dependencies is set to "newton.lib OgreMain_d.lib OgreNewt_Main_d.lib".
And, the Runtime Library is set to "Multi-threaded Debug DLL (/MDd)"

I read the guide from this web page http://www.ogre3d.org/wiki/index.php/Ne ... e_Dynamics. It said if the directory tree is different, it should be modified the OgreNewt project files. But the directory structure is quite complicated so I don't know how to modify or add those Linker settings in VS 2005 so that I can compile the Demo01 successfully.
I also don't know what dll files, lib files or header files should be put together so that the Demo01 can be run.
Can any gentleman teach me how to configure the VS 2005 ?

Thanks alot!!!!!!

batonrye

13-04-2006 05:57:11

Your directory structure is probably different than that for the projects is set up for. I don't have 2005 but...

*Make sure that the path to each of the Additional Library Directories is correct by browsing and setting the path for each of them on your machine.

*Do the same for your additional include directories.

*Make sure the output directory is in a place where all the ogre and newton compiled dlls are located, like Samples/Common/Bin/Release. (or move the dlls and such to the directory you wish to output your exe to)