corrupted DLL

GuS

23-12-2006 15:16:04

Hi all!

I know you probably receive such a request from milions of noobs, but I need to be next...so be patient :)

I'm trying to add physics to my simple and test purpose application (I'm a real noob with OGRE) and I've read about OgreNewt.

I've downloaded the source, and I tried to compile it, but I received 3 warning from my IDE (Visual Studio 2005).

(messages are in italian, so I'll try to translate them as I can):


- 1>.\src\OgreNewt_RayCast.cpp(96) : warning C4018: '>': wrong corrispondence between signed and unsigned

- 1>.\src\OgreNewt_CollisionPrimitives.cpp(390) : warning C4267: 'inizialization': conversion from 'size_t' to 'unsigned int'. Possible loose of informations.

- 1>.\src\OgreNewt_CollisionPrimitives.cpp(616) : warning C4267: 'inizialization': conversion from 'size_t' to 'unsigned int'. Possible loose of informations.


However the DLL is created. I added the right code to try Newton in my Ogre application, but when I go to test it, I receive this error:


1><MYDIR>\OgreNewt_Main\lib\release_dll\OgreNewt_Main.dll: fatal error LNK1107: file is corrupted or not valid: impossible to read in 0x2B8


I think it's caused by a wrong compiling. Is there a "ready-to-use" DLL o maybe is there a way to sove this? thx^^

[Sorry for my english but I'm italian, and specific programmer english is not my best :P]

GuS

23-12-2006 19:29:56

Nobody can help me? maybe someone can pass me a well-compiled DLL? :shock:

stoneCold.net

23-12-2006 22:41:00

To be sure....you added "OgreNewt_Main.lib" to your linker properties?

OvermindDL1

24-12-2006 06:17:21

And those warnings are fine in that case.

I use VC7.1, not VC8, so I can't make you a dll for that...

Though, they should still be fixed (*hint*hint*). :)
Message for Walaber that is...

GuS

24-12-2006 23:58:05

Ok...I've recompiled everything for the beginning, and remade all include paths and link to libs and Now it's ok.

The matter now is that it can't find "Newton.dll" but it's well linked and present in the selected path...with same linking option demos works well...but my app not....uffff

OvermindDL1

25-12-2006 05:52:02

Newton.dll is only needed when running the app, not compiling. Newton.lib is needed for linking (make sure you specified lib and not dll). Make sure newton.dll is in the same directory as your exe file.

GuS

25-12-2006 23:50:35

yeah... newton.lib is well linked. Everything compile well...but when I try debug mode, after compiling, "Newton.dll not found error" occurs.

In release, double-clicking on the generated EXE, everything works fine. I'm quite tired of all those errors. I'm a noob ok, but linking all well and following the basic wiki tutorial about Newton, there are a lot of error (application starts and ends immediatly, or throws exceptions during execution, or the floor and cilinder body are generated but don't collide).

I'm thinking about stop my noob tests. I know nobody pays you guys, but Ogre Wiki and OgreNwet Wiki are really quite updated and full of errors. It's quite confirmed by all users' posts.

Really thx anyway for forum support.

bye^^

nathanwilliams6

03-01-2007 18:04:37

u need to copy the debug version of newton.dll into your debug directory

walaber

04-01-2007 00:47:22

also you need to set the "working directory" in your IDE to the location of the .exe, or you will have trouble running the app from the IDE.