NxOgre_Debug.dll invalid or corrupt

jobbernowled

24-01-2010 22:24:58

I have been attempting to build the BloodyMess Tutorial 2 (http://www.ogre3d.org/wiki/index.php/Bl ... Tutorial_2) but have been getting an error relating to an invalid NxOgre_Debug.dll (or just NxOgre.dll in Release) constantly. Here is the current error:

1>------ Build started: Project: Physics Test 1, Configuration: Debug Win32 ------
1>Compiling...
1>main.cpp
1>Linking...
1>NxOgre_Debug.dll : fatal error LNK1107: invalid or corrupt file: cannot read at 0x300
1>Build log was saved at "file://c:\dev\Testing\Physics\Physics Test 1\obj\Debug\BuildLog.htm"
1>Physics Test 1 - 1 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========


I have the NxOgre_debug.dll located in both NxOgre\sdk and my application directory.

I also have been getting errors while building BloodyMess itself. Originally I would get 1 success and 2 failures until I moved my OgreMain.dll/OgreMain_d.dll around, and now building the solution results in 2 successes and 1 failure. I have re-downloaded and built BloodyMess several times (and tried different build methods) but have not had any success.

Just in case it helps, here is all the relevant information:

Using Visual C++ Express 2008 (VC9)
Using OGRE 1.6.5 SDK for Visual C++ .Net 2008 (9.0) (http://www.ogre3d.org/download/sdk)
Installing the OgreSDK to C:\dev\OgreSDK
Installing NxOgre 1.5.5 (http://static.nxogre.org/releases/blood ... dyMess.zip) to C:\dev\NxOgre
Building NxOgre.VC9 in both Debug and Release modes (it fails atleast once for each)


Here are the relevant project properties for the tutorial project (OGRE_HOME is set to C:\dev\OgreSDK):

Additonal Include Directories (All Configurations):
C:\dev\NxOgre\sdk;"$(OGRE_HOME)\include\OIS";"$(OGRE_HOME)\include";"$(OGRE_HOME)\Samples\include"
Linker General (Debug):
C:\dev\NxOgre\sdk;$(OGRE_HOME)\lib
Linker General (Release):
C:\dev\NxOgre\sdk;$(OGRE_HOME)\lib
Additonal Dependencies (Debug):
OgreMain_d.lib OIS_d.lib NxOgre_Debug.dll NxOgreOGRE3D_Debug.lib
Additional Dependencies (Release):
OgreMain.lib OIS.lib NxOgre.dll NxOgreOGRE3D.lib

tl;dr NxOgre is having failures when building and my NxOgre_Debug.dll/NxOgre.dlls are being read as invalid/corrupt by Visual C++ Express

Thanks for your time. Im sure its a stupid error that I am over-looking.

betajaen

24-01-2010 22:38:06

It's NxOgre.lib not NxOgre.dll, ;)

jobbernowled

24-01-2010 22:56:11

It's NxOgre.lib not NxOgre.dll, ;)

Well now. Knew it was a stupid error, thanks :)

I even checked for that but somehow overlooked it.

betajaen

24-01-2010 22:57:13

It's okay, easily missed.

Thanks for a clear and well thought out topic though, I wish some other topics around here was like that. :D