[solved] Building NxOgre VC8 error.

realtiger

20-11-2006 04:52:48

Hi all

I have met an error while building NxOgre.
Anyone helps?

Error 1 fatal error LNK1104: cannot open file '/compiler/NxOgre.VC8/Release/lib/NxOgre.dll' nxOgre


Thanh you very much.

betajaen

20-11-2006 09:22:49

Sounds like you haven't compiled NxOgre, or haven't set up the environmental variables.

Did you follow the Install instructions to the letter?

realtiger

20-11-2006 13:07:23

I have orge SDK and PhysX installed and NxOgre compiled successfully.
But in the linking step I got this error. I think there is something wrong with the path: /compiler/NxOgre.VC8/Release/lib/
But I don't know exactly what's wrong :?

betajaen

20-11-2006 13:28:40

The path in theory is fine, as long as you've set up the environmental variables correctly.

And by linking do you mean the NxOgre library itself or the tutorials?

realtiger

20-11-2006 13:32:54


And by linking do you mean the NxOgre library itself or the tutorials?

I mean NxOgre :)

betajaen

20-11-2006 13:39:03

and you set up the environmental variable correctly?

realtiger

20-11-2006 13:49:44

and you set up the environmental variable correctly?

Can you show me clearlier? Where I have to change?
I think when building NxOgre, the file NxOgre.dll have to be created, so why this file is required before it is created? I don't understand this point. :?

I'm trying to build NxOgre library not tutorials. And after building, I'll get two files: NxOgre.dll and NxOgre.lib. Is it true?

betajaen

20-11-2006 13:51:32

From: http://www.nxogre.org/Installing

Intermission...

You need to set up the correct environmental variables.

You can access through clicking on Start->My Computer(Right Click)->Properties->Advanced Tab->Environmental Variables.

The following variables should be entered in the section of "User variables for user name"

* OGRE_HOME -> h:/dev/Ogre/OgreMain
* NXOGRE_DIR -> h:/dev/NxOgre/
* PHYSX_DIR -> h:/dev/PhysX/

Of course these directories should point to your own setup.



[Edit]

If you have NxOgre.dll and NxOgre.lib then it has been compiled successfully, you can move onto the next step. However I do not know why your original error appeared, and what happened to fix it.

realtiger

20-11-2006 14:31:55

Finally I can build nxOgre successfully :D

Here's what I do.
I change:
nxOgre Property->Configuration Properties->General->Output Directory to Release (realease build)

nxOgre Property->Configuration Properties->Linker->General->Output File to $(OutDir)\$(ProjectName).dll

nxOgre Property->Configuration Properties->Linker->Advanced->Import Library to nothing - no setting here.

:D

Thank you betajaen for nxOgre. You have created excellent documents. It's so important to beginners like me :D