Problems with compilation of OgreNewt

socomajor

05-07-2007 11:08:12

Hello !

I've tried to compile OgreNewt in a static library, with codeblocks, on windows.

I get a .a file : libOgreNewt_Main.a ( in release mode )
His size his from 82.1 Mo ( isn(t it too big ? )

But when I try to compile the first Demo ( Demo01_TheBasics ), I link this file, Ogre and Newton, it compile correctly, but on execution it doesn't work, the error in the Ogre.log is :


12:07:07: Loading library .\RenderSystem_Direct3D9
12:07:07: OGRE EXCEPTION(7:InternalErrorException): Could not load dynamic library .\RenderSystem_Direct3D9. System Error: Le module spécifié est introuvable.

in DynLib::load at C:\SoftwareDevelopment\C++\MinGW\ogrenew_HEAD_clean\OgreMain\src\OgreDynLib.cpp (line 80)


What is wrong ?

walaber

05-07-2007 16:27:13

something is wrong with the Direct3D graphics library for Ogre. does RenderSystem_Direct3D9.dll exist?

socomajor

05-07-2007 18:00:14

No, it didn't exist.

But now I have copy it in the executable directory, I have the same log, but with a Windows error message :

Le point d'entrée de procédure ??1HardwareOcclusionQuery@Ogre@@UAE@XZ est introuvable dans la bibliothèque de liaisons dynamique OgreMain.dll.

Approximate traduction :

The point of entry (?) of the procedure ??1HardwareOcclusionQuery@Ogre@@UAE@XZ could not be found in the dynamic library OgreMain.dll.

I wonder if my OgreNewt library was good compiled. Does the fact that my library takes 80Mb is normal ?