Help building Critter in Debug

Yati

05-12-2011 15:39:32

Hi everybody,

I'm just getting started with NxOgre and I got a little stuck :(

Critter gives me a build error when I compile in Debug but not when I build in Release.

The error is:

error D8016: '/ZI' and '/O2' command-line options are incompatible C:\OgreSDK\critter\betajaen-critter-51f9edf\build\vc9\cl

Since release mode worked I tried going on and building NxOgreTutorials in release (I was excited to see some boxes topple! :D ). It built with out any errors but when I ran the Sample.exe it said that all the Nx samples were either missing, corrupt or invalid. All the .dlls are there. I did notice that all the default Ogre samples have a "Program debug database" file with the same name. The Nx dlls came with no such files.

I'm using Ogre 1.7.2.

Thanks!

[UPDATE]
I managed to get Critter to compile in debug. It was because NxOgre's target name and linker output file name were different. And also I disabled optimization from Critter
to get rid of '/O2'.

But now when I try to run the sample browser debug build I can see the Nx samples in the menu but when I run the Nx sample it crashes :(.

Help?

[UPDATE 2]
I got the debug sample browser working! I copied these dlls from the PHYX_DIR/bin/win32 to my ogre debug bin directory:
  1. cudart32_30_9.dll
    NxCharactor.dll
    PhysXCooking.dll
    PhysXCore.dll
    PhysXDevice.dll
    PhysXLoader.dll[/list:u]

    I tried the same thing with the release build of the sample brower and it seemed to fix the warning the sample browser gave saying that the Nx samples were missing, corrupt or invalid. But now when I run the sample the brower crashes :(

    I think I'm missing a dll, though I'm not sure about it.

Yati

06-12-2011 20:27:18

Alright I have the tutorials working in debug perfectly :D . But in release it crashes as soon as I try to start any of the Nx samples :( .

When I run the sample browser in release from Visual Studio and try to see where it crashes the call stack points to the NxOgre.dll. I can't jump to the offending code since it jumps to some scary dis-assembly.

I tried rebuilding NxOgre in release then copying the .dll into the ogre/bin/release folder. but it did'nt work. So any ideas whats going on? I even tried copying all the .dlls in that come with Physx but that didn't work either.