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
[Solved] How to load plugins in OSX Ogre 1.9?
-
- Gnoblar
- Posts: 6
- Joined: Sun Feb 09, 2014 6:57 pm
[Solved] How to load plugins in OSX Ogre 1.9?
Last edited by jorgediogo on Mon Feb 10, 2014 9:59 am, edited 1 time in total.
- masterfalcon
- 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?
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");
For example:
OgreRoot->loadPlugin("RenderSystem_GL");
-
- Gnoblar
- Posts: 6
- Joined: Sun Feb 09, 2014 6:57 pm
Re: [Solved] How to load plugins in OSX Ogre 1.9?
- 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
Thank you so much - and thank you for your care of the OSX part, without your dedication Ogre wouldn't be so great!
Regards