Ogre exception 7 internalerrorexception ошибка

Dear HexiDave,

First of all, thank you very much for trying to help! Please don’t give up, and keep with me!

I checked plugins.cfg and the other .cfg files. They are ok, i think. Let me show you their contents:

plugins.cfg

# Defines plugins to load

# Define plugin folder
PluginFolder=.

# Define plugins
Plugin=RenderSystem_Direct3D9_d
Plugin=RenderSystem_GL_d
Plugin=Plugin_ParticleFX_d
Plugin=Plugin_BSPSceneManager_d
Plugin=Plugin_OctreeSceneManager_d
Plugin=Plugin_CgProgramManager_d

media.cfg

Mesh=ogrehead.mesh
Mesh=geosphere4500.mesh
Mesh=razor.mesh
Mesh=knot.mesh
Mesh=RZR-002.mesh
Mesh=geosphere8000.mesh
Mesh=sphere.mesh

CubeMap=cubescene.jpg
CubeMap=early_morning.jpg
CubeMap=cubemap.jpg
CubeMap=morning.jpg
CubeMap=cloudy_noon.jpg
CubeMap=evening.jpg
CubeMap=stormy.jpg
CubeMap=stevecube.jpg

resources.cfg

# Resource locations to be added to the ‘boostrap’ path
# This also contains the minimum you need to use the Ogre example framework
[Bootstrap]
Zip=../../Media/packs/OgreCore.zip

# Resource locations to be added to the default path
[General]
FileSystem=../../Media
FileSystem=../../Media/fonts
FileSystem=../../Media/materials/programs
FileSystem=../../Media/materials/scripts
FileSystem=../../Media/materials/textures
FileSystem=../../Media/models
FileSystem=../../Media/overlays
FileSystem=../../Media/particle
FileSystem=../../Media/gui
FileSystem=../../Media/DeferredShadingMedia
Zip=../../Media/packs/cubemap.zip
Zip=../../Media/packs/cubemapsJS.zip
Zip=../../Media/packs/dragon.zip
Zip=../../Media/packs/fresneldemo.zip
Zip=../../Media/packs/ogretestmap.zip
Zip=../../Media/packs/skybox.zip

quake3settings.cfg (i don’t really understand what this file is for… i don’t find chiropteraDM.pk3 anywhere… so i left this file like the others with their default contents)

<<<<<<< quake3settings.cfg
Pak0Location: ..\..\..\Media\packs\chiropteraDM.pk3
Map: maps/chiropteradm.bsp

=======
Pak0Location: ..\..\..\Media\packs\chiropteraDM.pk3
Map: maps/chiropteradm.bsp
>>>>>>> 1.2.32.1

By the way, these files are in the C:\OgreSDK\bin\debug folder. And in this folder there are the samples applications that i built from the project that comes in the C:\OgreSDK\Mogre-Samples folder.

In the C:\OgreSDK\bin\debug folder I also have these dlls:
CEGUIBase_d.dll
CeguiBindings.dll
CeguiDotNet.dll
CEGUIExpatParser_d.dll
CEGUIFalagardWRBase_d.dll
cg.dll
Mogre.Cegui.dll
Mogre.Demo.ExampleApplication.dll
Mogre.dll
MogreFramework.dll
MogreNewt.dll
MOIS.dll
OgreBindings_Cegui.dll
OgreGUIRenderer_d.dll
OgreMain_d.dll
OIS_d.dll
Plugin_BSPSceneManager_d.dll
Plugin_CgProgramManager_d.dll
Plugin_OctreeSceneManager_d.dll
Plugin_ParticleFX_d.dll
RenderSystem_Direct3D9_d.dll
RenderSystem_GL_d.dll

Yes, I think that all Ogre DLLs have _d. I think CeguiBindings.dll, CeguiDotNet.dll, cg.dll Mogre.Cegui.dll, Mogre.Demo.ExampleApplication.dll, Mogre.dll, MogreFramework.dll, MogreNewt.dll, MOIS.dll and OgreBindings_Cegui.dll don’t need ‘_d’, is it correct?

PS- please, don’t go away :)

This is the first exception in my RoR.log. All I am trying to do is regen my cache and keep getting the Bad UTF-8 Continuation type.

If you need more info please dont hesitate to ask. I’ll keep trying to figure something out

OGRE EXCEPTION(7:InternalErrorException): Could not load dynamic library .\RenderSystem_Direct3D10. System Error: The specified module could not be found.

in DynLib::load at C:\data\codehg\dependencies\src\Ogre\ogre_src_v1-8-1\OgreMain\src\OgreDynLib.cpp (line 93)
18:42:55: failed to load plugin: .\RenderSystem_Direct3D10: OGRE EXCEPTION(7:InternalErrorException): Could not load dynamic library .\RenderSystem_Direct3D10. System Error: The specified module could not be found.

in DynLib::load at C:\data\codehg\dependencies\src\Ogre\ogre_src_v1-8-1\OgreMain\src\OgreDynLib.cpp (line 93)

I’m using Ogre 3D 1.9, and I’m trying to load a mesh contained in a folder pointed by the resource.cfg file. The folder contains sub-folders, that separate the .mesh files, .material files and textures. Here’s the content of the resource.cfg file:

# Resources required by the sample browser and most samples.
[Essential]


# Resource locations to be added to the default path
[General]
FileSystem=media
FileSystem=media/materials/scripts
FileSystem=media/materials/textures
FileSystem=media/models

After this i declare and initialize the mesh, materials and textures with the following:

Ogre::ResourceGroupManager::getSingleton().declareResource("ram.mesh", "Mesh", Ogre::ResourceGroupManager::DEFAULT_RESOURCE_GROUP_NAME, Ogre::NameValuePairList());
Ogre::ResourceGroupManager::getSingleton().declareResource("char_ram_col.png", "Font", Ogre::ResourceGroupManager::DEFAULT_RESOURCE_GROUP_NAME, Ogre::NameValuePairList());
Ogre::ResourceGroupManager::getSingleton().declareResource("char_ram_nor.png", "Font", Ogre::ResourceGroupManager::DEFAULT_RESOURCE_GROUP_NAME, Ogre::NameValuePairList());
Ogre::ResourceGroupManager::getSingleton().declareResource("ram_skin.material", "Material", Ogre::ResourceGroupManager::DEFAULT_RESOURCE_GROUP_NAME, Ogre::NameValuePairList());
Ogre::ResourceGroupManager::getSingleton().declareResource("ram_skin_eyelids.material", "Material", Ogre::ResourceGroupManager::DEFAULT_RESOURCE_GROUP_NAME, Ogre::NameValuePairList());
Ogre::ResourceGroupManager::getSingleton().declareResource("ram_skin_eyes.material", "Material", Ogre::ResourceGroupManager::DEFAULT_RESOURCE_GROUP_NAME, Ogre::NameValuePairList());
Ogre::ResourceGroupManager::getSingleton().declareResource("ram_skin_horns.material", "Material", Ogre::ResourceGroupManager::DEFAULT_RESOURCE_GROUP_NAME, Ogre::NameValuePairList());

Ogre::ResourceGroupManager::getSingleton().initialiseAllResourceGroups();

Then i attach the mesh to a node:

Ogre::Entity *entity = scene->createEntity("LocalMesh_Ent", "ram.mesh");
Ogre::SceneNode *cube = node->createChildSceneNode("ram.mesh", Ogre::Vector3(x, y, z));
cube->attachObject(entity);

where cube is a SceneNode previously created.

I have problem loading the texture. The code is build without any problem, but when i run it i have the following error (in the log file):

OGRE EXCEPTION(7:InternalErrorException): Error decoding image in FreeImageCodec::decode at ..\..\..\..\OgreMain\src\OgreFreeImageCodec.cpp (line 419)

The mesh and the materials are created correctly, if for example i comment the part regarding the texture.

Does anybody know which could be the problem ?

Second question: i read that the .png file has to be declared as Font, but there’s also the Texture option (which doesn’t work as well). Is that correct ?

Problem

I had an binary compiled on Ubuntu 14.04. I tried to run it on Ubuntu 16.04 and got this error:

OGRE EXCEPTION(7:InternalErrorException): Could not load dynamic library /usr/lib/x86_64-linux-gnu/OGRE-1.8.0/RenderSystem_GL

Solution

From the error, I could see that it was looking for an OGRE library file. I installed the OGRE library available on Ubuntu 16.04:

$ sudo apt install libogre-1.9-dev

The error still persisted, because Ubuntu 16.04 only has OGRE 1.9, while this binary was looking for OGRE 1.8 library files.

I tried to create a symbolic link of an OGRE 1.8 directory to the existing OGRE 1.9 directory:

$ cd /usr/lib/x86_64-linux-gnu/
$ ln -s OGRE-1.9.0 OGRE-1.8.0

This worked! The executable ran without problems. This saved me from having to build OGRE 1.8 from source on this computer.

📅 2017-Apr-15 ⬩ ✍️ Ashwin Nanjappa ⬩ 🏷️ ogre ⬩ 📚 Archive

Problem

I had an binary compiled on Ubuntu 14.04. I tried to run it on Ubuntu 16.04 and got this error:

OGRE EXCEPTION(7:InternalErrorException): Could not load dynamic library /usr/lib/x86_64-linux-gnu/OGRE-1.8.0/RenderSystem_GL

Solution

From the error, I could see that it was looking for an OGRE library file. I installed the OGRE library available on Ubuntu 16.04:

$ sudo apt install libogre-1.9-dev

The error still persisted, because Ubuntu 16.04 only has OGRE 1.9, while this binary was looking for OGRE 1.8 library files.

I tried to create a symbolic link of an OGRE 1.8 directory to the existing OGRE 1.9 directory:

$ cd /usr/lib/x86_64-linux-gnu/
$ ln -s OGRE-1.9.0 OGRE-1.8.0

This worked! The executable ran without problems. This saved me from having to build OGRE 1.8 from source on this computer.

Понравилась статья? Поделить с друзьями:
  • Office 365 код ошибки 0 2035
  • Offlineservicing ошибка при установке windows 7 что делать
  • Offlineservicing ошибка как исправить
  • Ocf ошибка частотника schneider electric
  • Office 2016 ошибка установки 1935