VS projects settings

ponl

15-05-2007 20:38:23

Hi

I've been doing some test with NxOgre and it looks great at the moment although I have one small question.
Every time I update from svn i have to edit the settings. In debug it will compile out of the box but in release i have to change the setting :

Additional include directories from :


"$(NXOGRE_DIR)\include";
"$(OGRE_HOME)\include";
"$(PHYSX_DIR)\SDKs\Physics\include";
"$(PHYSX_DIR)\SDKs\Foundation\include";
"$(PHYSX_DIR)\SDKs\Cooking\include";
"$(PHYSX_DIR)\SDKs\NxCharacter\include";
"$(PHYSX_DIR)\SDKs\PhysXLoader\include"


To :


"$(SolutionDir)\include";
"$(OGRE_HOME)\include";
"$(OGRE_HOME)\ogrenew\OgreMain\include";
"$(PHYSX_DIR)\SDKs\Physics\include";
"$(PHYSX_DIR)\SDKs\Foundation\include";
"$(PHYSX_DIR)\SDKs\Cooking\include";
"$(PHYSX_DIR)\SDKs\NxCharacter\include";
"$(PHYSX_DIR)\SDKs\PhysXLoader\include"


Could you please fix this ? Please correct me if I update wrong or something like that.

EDIT: forgot to tell you, I use 0.9-18

Thanks
Ponl

betajaen

15-05-2007 21:01:25

I almost never work in Release, so I never encountered it. Thanks for the heads up.

tsky

15-05-2007 21:10:01

Hi

I've been doing some test with NxOgre and it looks great at the moment although I have one small question.
Every time I update from svn i have to edit the settings. In debug it will compile out of the box but in release i have to change the setting :

Additional include directories from :
__SNIPPED__

Ponl



I work on same things each new version. My suggestion is:




C/C++:

"$(SolutionDir)\include";
"$(OGRE_INC)";

this is then optional removable:
"$(OGRE_HOME)\include";
"$(OGRE_HOME)\ogrenew\OgreMain\include";

"$(PHYSX_DIR)\SDKs\Physics\include";
"$(PHYSX_DIR)\SDKs\Foundation\include";
"$(PHYSX_DIR)\SDKs\Cooking\include";
"$(PHYSX_DIR)\SDKs\NxCharacter\include";
"$(PHYSX_DIR)\SDKs\PhysXLoader\include"

Linker:

"$(OGRE_LIB)\$(ConfigurationName)";

optional remove :
"$(OGRE_HOME)\lib\Debug";
"$(OGRE_HOME)\lib";
"$(OGRE_HOME)\..\lib";

"$(PHYSX_DIR)\SDKs\lib\win32";
"$(PHYSX_DIR)\SDKs\Physics\lib\win32\Release";
"$(PHYSX_DIR)\SDKs\Cooking\lib\win32\Release";
"$(PHYSX_DIR)\SDKs\NxCharacter\lib"



batch-file:

setx OGRE_SRC C:\projects\ogre-1.4.1\OgreMain -m
setx OGRE_HOME C:\projects\ogre-1.4.1 -m
setx OGRE_DEP C:\projects\ogre-1.4.1\Dependencies -m
setx OGRE_INC C:\projects\ogre-1.4.1\OgreMain\include -m
setx OGRE_LIB C:\projects\ogre-1.4.1\lib -m
setx OGRE_BIN C:\projects\ogre-1.4.1\Samples\Common\bin -m



Perhaps all Release and Debug should be changed in $(ConfigurationName).

so it is working with Ogre-Source AND Ogre-SDK and you only have to set an enviroment variable.

tom