[Solved] How to load plugins in OSX Ogre 1.9?

Anything and everything that's related to OGRE or the wider graphics field that doesn't fit into the other forums.
Post Reply
jorgediogo
Gnoblar
Posts: 6
Joined: Sun Feb 09, 2014 6:57 pm

[Solved] How to load plugins in OSX Ogre 1.9?

Post by jorgediogo »

Hi,

I'm porting from Ogre 1.8 to a recent 1.9 branch downloaded yesterday from bitbucket.
Instead of using the config dialog I used to load the OpenGL RenderSystem .dylib file by doing:

OgreRoot->loadPlugin(pluginPath);
rs = OgreRoot->getRenderSystemByName("OpenGL Rendering Subsystem");

Where pluginPath is a string with the absolute path to the plugin .dylib.
However plugins are now built as .framework files which the xcode build process copies to a Frameworks folder inside the app bundle - there are no more .dylib files to load!

Can anyone kindly point me on how to use render systems and other plugins in Ogre 1.9?

Thanks - best regards,

Jorge
Last edited by jorgediogo on Mon Feb 10, 2014 9:59 am, edited 1 time in total.
User avatar
masterfalcon
OGRE Team Member
OGRE Team Member
Posts: 4270
Joined: Sun Feb 25, 2007 4:56 am
Location: Bloomington, MN
x 126
Contact:

Re: How to load plugins in OSX Ogre 1.9?

Post by masterfalcon »

You should be able to get it working by just passing the name of the plugin as long as the framework has been copied into the app bundle.

For example:

OgreRoot->loadPlugin("RenderSystem_GL");
jorgediogo
Gnoblar
Posts: 6
Joined: Sun Feb 09, 2014 6:57 pm

Re: [Solved] How to load plugins in OSX Ogre 1.9?

Post by jorgediogo »

- That solved it.
Thank you so much - and thank you for your care of the OSX part, without your dedication Ogre wouldn't be so great!

Regards
Post Reply