How to write dynamic plugin?

General chat related to ScummVM, adventure gaming, and so on.

Moderator: ScummVM Team

Post Reply
karsten
Posts: 14
Joined: Sun Feb 05, 2006 11:59 am

How to write dynamic plugin?

Post by karsten » Sun Feb 05, 2006 12:08 pm

Hi,

I wrote a static test plugin (does not much more than registering) and it worked nicely in ScummVM. Can someone enlighten me how can I turn that to a dynamic plugin?

Thanks in advance

fingolfin
Retired
Posts: 1466
Joined: Wed Sep 21, 2005 4:12 pm

Post by fingolfin » Mon Feb 06, 2006 6:25 pm

You normally do not have to do anything extra at all!

However, you can't currently mix static and dynamic plugins. So, if you want your plugin to be built dynamically, you'll have to run
./configure --enable-plugins
and recompile.

If you are not using the confgure / make build system (e.g. if you are using Visual C++), I have no idea if and how you can build with dynamic plugins. But that shouldn't worry you too much, since there is little sense in building dynamic plugins anyway, unless you are working on a port for a system with limited memory :-).

Post Reply