Probleme compilling critter

Furya

06-12-2011 20:38:51

Hi,

I'm new in NxOgre, i failed to compile critter

Compiler said:

1>Exécution d'un événement avant génération...
1>Compilation en cours...
1>CritterTerrainDescription.cpp
1>CritterStable.cpp
1>CritterRenderSystem.cpp
1>CritterRenderable.cpp
1>CritterPointRenderable.cpp
1>CritterParticleRenderable.cpp
1>CritterOgreResourceProtocol.cpp
1>CritterOgreResource.cpp
1>CritterMeshFunctions.cpp
1>CritterKinematicBody.cpp
1>CritterBodyDescription.cpp
1>Génération de code en cours...
1>Compilation en cours...
1>CritterBody.cpp
1>Bibliothèque en cours de création...
1>LINK : fatal error LNK1181: unable to open 'OgreMain.lib'



I use Visual C++ 2008, Ogre 1.7, NxOgre1.6


@+

betajaen

07-12-2011 07:55:58

Says there.

"unable to open 'OgreMain.lib'"



Did you compile Ogre?

Furya

07-12-2011 13:37:43

Hi,

I compiled Ogre 1.7.3 source with MinGW dependencies with CMAKE 2.8.4 (with MinGW compiler). But there is no file ogreMain.dll. I've forgotten something ??

saejox

07-12-2011 14:48:03

you need to build it as "dynamic library" to get DLL files.

Furya

07-12-2011 15:21:54

ok thanks

I follow this tutorial to compile Ogre http://www.ogre3d.org/tikiwiki/CMake+Quick+Start+Guide. but it doesn't tell about build as "dynamic library".
How could I do this with CMake ??

Furya

07-12-2011 15:50:27

In the build window it said :

Build type: dynamic