Page 1 of 1
Remove ".dll" requirement from windows plugins
Posted: Fri Feb 29, 2008 11:08 pm
by Game_Ender
Trying to have cross platform config files is complicated by the fact that on Mac and Linux you don't need any special name ending like ".so" or ".dylib" for loading plugins but on Windows you do. It would be nice if Ogre could just add this in internally.
For example, on Windows you need:
While on Mac/Linux you can have:
Posted: Fri Feb 29, 2008 11:44 pm
by xavier
You don't need the .dll.
Posted: Sat Mar 01, 2008 9:30 am
by Kojack
The plugins.cfg for ogre's demos running in windows:
Code: Select all
# Defines plugins to load
# Define plugin folder
PluginFolder=.
# Define plugins
Plugin=RenderSystem_Direct3D9
Plugin=RenderSystem_GL
Plugin=Plugin_ParticleFX
Plugin=Plugin_BSPSceneManager
Plugin=Plugin_CgProgramManager
Plugin=Plugin_PCZSceneManager.dll
Plugin=Plugin_OctreeZone.dll
Plugin=Plugin_OctreeSceneManager
Only 2 of them have .dll on the end, but they don't need it. The rest work fine.
Posted: Mon Mar 03, 2008 9:26 pm
by nullsquared
Code: Select all
root->loadPlugin("RenderSystem_Direct3D9");
Has been running like that for ... a
while.
Posted: Tue Mar 04, 2008 12:10 am
by Game_Ender
Wow, I feel kind of stupid.
Is that what is in the configuration file for the demos on windows has? This is the linux one:
Code: Select all
# Defines plugins to load
# Define plugin folder
PluginFolder=/home/jlisee/projects/mrbc/trunk/deps/local/lib/OGRE
# Define D3D rendering implementation plugin
Plugin=RenderSystem_GL.so
Plugin=Plugin_ParticleFX.so
Plugin=Plugin_BSPSceneManager.so
Plugin=Plugin_OctreeSceneManager.so
#Plugin=Plugin_CgProgramManager.so
I guess I change my request to: Remove and/or the endings when loading plugins.
Posted: Tue Mar 04, 2008 12:21 am
by xavier
If any of the shipped config files have endings, they should be removed from the config files. The code adds the endings depending on the platform.
Posted: Tue Mar 04, 2008 7:37 am
by Game_Ender
For linux it appears the ".so" is there in the
current version.