Compiling problem.

slinky

11-04-2007 21:30:53

Hi all. Ive searched around the forum, but with no luck. I have the latest verson of Ogre, Ogrenewt and Newton. The Ogre demos run fine, but only on openGL. I can live with that. The Ogrenewt demos compile, but when i run the app i get an "filenotfoundexception" error. Im sure everything is linked ok and the compiler does not have any linker errors. Can anybode shead some light?

walaber

11-04-2007 21:56:05

most likely you don't have the project "debugging" settings pointing to the proper directory. Try setting it to the executable directory, and the demos should run OK from within the IDE.

slinky

11-04-2007 22:13:33

Ok, i did what you said and rebuilt all. Now the error has changed to "InternalErrorException". It has to be something to do with the OgreNewt as the Ogre demos compile fine.

walaber

12-04-2007 00:27:44

have you copied all the proper DLLs from Ogre into the OgreNewt demo directories?

that error often happens when you try to run an executable compiled with Service Pack 1, but you have an old DLL in the directory that was compiled without the SP...

slinky

12-04-2007 18:08:46

Bellow is the ogre text file that appears when i try to run the ogrenewt app. The problem seems to be the directx 9 drivers. I had the same problem with the ogre demos, so i ran them in opengl. I have the latest drivers for my computer. Any ideas?

Ogre text file:

18:02:14: Creating resource group General
18:02:14: Creating resource group Internal
18:02:14: Creating resource group Autodetect
18:02:14: SceneManagerFactory for type 'DefaultSceneManager' registered.
18:02:14: Registering ResourceManager for type Material
18:02:14: Registering ResourceManager for type Mesh
18:02:14: Registering ResourceManager for type Skeleton
18:02:14: MovableObjectFactory for type 'ParticleSystem' registered.
18:02:14: OverlayElementFactory for type Panel registered.
18:02:14: OverlayElementFactory for type BorderPanel registered.
18:02:14: OverlayElementFactory for type TextArea registered.
18:02:14: Registering ResourceManager for type Font
18:02:14: ArchiveFactory for archive type FileSystem registered.
18:02:14: ArchiveFactory for archive type Zip registered.
18:02:14: FreeImage version: 3.9.2
18:02:14: This program uses FreeImage, a free, open source image library supporting all common bitmap formats. See http://freeimage.sourceforge.net for details
18:02:14: Supported formats: bmp,ico,jpg,jif,jpeg,jpe,jng,koa,iff,lbm,mng,pbm,pbm,pcd,pcx,pgm,pgm,png,ppm,ppm,ras,tga,targa,tif,tiff,wap,wbmp,wbm,psd,cut,xbm,xpm,gif,hdr,g3,sgi
18:02:14: DDS codec registering
18:02:14: Registering ResourceManager for type HighLevelGpuProgram
18:02:14: Registering ResourceManager for type Compositor
18:02:14: MovableObjectFactory for type 'Entity' registered.
18:02:14: MovableObjectFactory for type 'Light' registered.
18:02:14: MovableObjectFactory for type 'BillboardSet' registered.
18:02:14: MovableObjectFactory for type 'ManualObject' registered.
18:02:14: MovableObjectFactory for type 'BillboardChain' registered.
18:02:14: MovableObjectFactory for type 'RibbonTrail' registered.
18:02:14: Loading library .\RenderSystem_Direct3D9
18:02:14: OGRE EXCEPTION(7:InternalErrorException): Could not load dynamic library .\RenderSystem_Direct3D9. System Error: The specified module could not be found.

in DynLib::load at ..\src\OgreDynLib.cpp (line 80)

walaber

12-04-2007 18:19:33

did you compile the RenderSystem_Direct3D9? it should be a DLL file.

anyway, you can fix tht by editing the "plugins.cfg" file... either change the name to the proper one (if you are in DEBUG mode, it should be "RenderSystem_Direct3D9_d" I believe), or remove it entirely and it won't try to load it.

that error is caused because the plugins.cfg file is specifying a file that doesn't exist.

slinky

12-04-2007 19:04:10

I changed the plugin cfg file, but still no change. You asked if i compiled the directx dll. What did you mean? I am using a pre-built Ogre SDK. Should i be compiling the dll?

slinky

12-04-2007 19:22:16

Thankyou for the advice. Ogrenewt is now working with directx and opengl. I think it was a linker problem telling the app where to find the dlls. Sorry to be a pain.