Problem Running NxOgre

atarax

20-07-2010 04:40:57

Im having a weird problem when trying to run NXOgre.

I have it compiled and added the headers and lib files to my linker settings.



When i use this code from the tutorial.....
NxOgre::World* mWorld;
NxOgre::Scene* mScene;
OGRE3DRenderSystem* mRenderSystem;
mWorld = NxOgre::World::createWorld();
NxOgre::SceneDescription sceneDesc;
sceneDesc.mGravity = NxOgre::Vec3(0, -9.8f, 0);
sceneDesc.mName = "BloodyMessTutorial2";
mScene = mWorld->createScene(sceneDesc);
mScene->getMaterial(0)->setStaticFriction(0.5);
mScene->getMaterial(0)->setDynamicFriction(0.5);
mScene->getMaterial(0)->setRestitution(0.1);
mRenderSystem = new OGRE3DRenderSystem(mScene);



I receive the error

LINK : fatal error LNK1104: cannot open file 'stlport_statix.lib'

Why is it looking for this lib file? Is STLPORT required to use the OGRE3DRender System?

I am using Ogre 1.6.5 and BloodyMess 1.5.5

spacegaier

21-07-2010 19:58:02

On what system are you? I thought STLport was only required on Mac or Linux...Not sure thought.

atarax

21-07-2010 21:39:56

Im running under Windows7 32bit.

I figured out it may be related to a different project im workin on. I was messing around with the Ryzom source trying to build etc.. and this error came after that. I checked under general project settings to see if it was included anywhere in the libs but its not. I also removed all the ryzom settings in Visual Studio 2008 but still getting the error.

Any other ideas? For some reason visual studio is looking for this lib but it shouldnt be.

spacegaier

21-07-2010 22:06:58

You removed the lib from both, debug and release (just to be sure ;) )?

You are not calling it somewhere via a #pragma once?

atarax

22-07-2010 02:56:00

i made sure they were both removed but still received the error.

Uninstalled and reinstalled visual studio.

Fixed the problem.

Thanks for the help :)