Critter: help with a compile error?

cdreid

07-01-2011 20:28:43

I have a project im incorporating nxogre into and im getting strange errors. Once i build the project everything eventually compiles fine but i get an exception in an nxogre array file. This problem has been brought up before but noone had any solutions. I had warnings from nxogre etc so i went back and rebuilt evreything using the faq posted by begajaen. (Btw this should replace the wiki entries except for the excellent working tutorials. Its confusing to figure out even which nxogre to get). Nxogre and ogre compile perfectly but Critter doesnt. I get the following error:

1>NxOgreDebug.lib(NxOgreDebug.dll) : warning LNK4006: __NULL_IMPORT_DESCRIPTOR already defined in OgreMain_d.lib(OgreMain_d.dll); second definition ignored
1>NxOgreDebug.lib(NxOgreDebug.dll) : warning LNK4221: no public symbols found; archive member will be inaccessible
1>Performing Post-Build Event...


I went back through and made sure i had no references to boost 1.42 and was pure 1.44 as i thought that could be a problem (i had problems with that when i first started compiling ogre). So its not that. As i understand it the problem is usually because somewhere along the chain someone linked to different libraries. Maybe because theyre overriding the new ones (i dont know just makes sense).

I havent tried the main project again yet because i want to resolve this to avoid headaches im sure are going to arise. Anyone have any ideas? With a few VERY minor changes this is a pure compile from the forum faq. The only changes were i had to hardlink some nxogre/ogre directories as vc2008 seems to refuse to pick up windows environment variables. Any help?

betajaen

07-01-2011 20:41:22

Those aren't errors. Just warnings, if you have a CritterStatic.lib or CritterDebugStatic.lib file in the "Critter/SDK" folder, then it compiled successfully.

cdreid

07-01-2011 20:57:13

Thanks a lot. now to go find out where i lost NxOgreOGRE3D_Debug.lib

betajaen

07-01-2011 21:02:19

"NxOgreOGRE3D_Debug.lib" is the old Ogre RenderSystem for BloodyMess.

cdreid

07-01-2011 22:01:23

You are seriously my hero. Rebuilding nx again and my project works :)
One question I just looked at the versons of the terrain loader etc in the wiki and noticed the versions are OLD. Is the wiki code still workable or is there some other method i should use for nxogre terrain? I know this is a pita question but ive been battling my app all day and my brain is shot :P

And thanks for all the work you do on nxogre and especially for your help to all of us in the forums.

betajaen

07-01-2011 22:04:33

I'm retiring the terrain code in Critter due to frame rate concerns.

But there is some example code that well used on the Ogre Wiki to link up the Ogre 1.7 terrain system with NxOgre (should be in the NxOgre portal page), and there is a ManualHeightField class in NxOgre which is written to be extremely easy to import your terrain into NxOgre.