i'm unable to run a simple OGRE program. i'm using Debian Testing and installed OGRE 1.9 from apt-get. i get the following error:
however, if i search this file, it apparently doesn't exists anywhere. if i run in the terminal find / -iname "*RenderSystem_GL_d*" , it returns nothing.Loading library RenderSystem_GL_d
terminate called after throwing an instance of 'Ogre::InternalErrorException'
what(): OGRE EXCEPTION(7:InternalErrorException): Could not load dynamic library RenderSystem_GL_d. System Error: RenderSystem_GL_d.so.1.9.0: cannot open shared object file: No such file or directory in DynLib::load at /build/ogre-1.9-3EFEDQ/ogre-1.9-1.9.0+dfsg1/OgreMain/src/OgreDynLib.cpp (line 109)
Aborted
this is the code:
Code: Select all
#include <OGRE/OgreRoot.h>
#include <OGRE/OgreRenderWindow.h>
#include <OGRE/OgreWindowEventUtilities.h>
int main{
// the root
Ogre::Root *root = new Ogre::Root("", "");
// load the rendersystem
root->loadPlugin("RenderSystem_GL_d");
root->setRenderSystem(*(root->getAvailableRenderers().begin()));
root->initialise(false);
// the window
Ogre::RenderWindow *window = root->createRenderWindow("Hello World!", 800, 600, false);
window->setActive(true);
window->setAutoUpdated(true);
window->setDeactivateOnFocusChange(false);
Ogre::SceneManager *sceneMgr = root->createSceneManager(Ogre::ST_GENERIC);
// viewport and camera
Ogre::Camera *camera = sceneMgr->createCamera("cam");
Ogre::Viewport *viewport = window->addViewport(camera);
viewport->setClearEveryFrame(true);
// TODO: set-up your camera
// TODO: set-up your resources
// TODO: set-up your lighting
// TODO: create your objects
// main loop
while (true)
{
// TODO: do your game logic here
Ogre::WindowEventUtilities::messagePump();
if (!root->renderOneFrame())
break;
}
// clean up
delete root;
return 0;
}