[Clam-devel] Successfull dynamic loading spike on Linux

David García Garzón dgarcia at iua.upf.edu
Fri Jun 29 09:52:40 PDT 2007


We have CLAM plugins!!!

Following Pau comments and doing a fast copy of LadspaLoader code, I did a 
fast spike on loading DLL's of processing such the ones on wednesday 
howto[1], but now in runtime looking at the content of a directory. Not that 
difficult, it was just a matter of trying.

[1] http://clam.iua.upf.edu/wikis/clam/index.php/Building_a_processing_library

If you want to try it:
* Add the attached cxx to the NetworkEditor 'src' (should be clam_core)
* Change the hardcoded path to the place where you'll put the processing dlls
* Compile NetEditor
* Build a processing dll with some new processings following the howto[1]
* Move the processing dll to the path
* Run NetworkEditor

Enjoy. :-)

TODO's:
* Clean up the code
* Take the path from somewhere else (Environment? installpath? Colon 
separated?)
* Multiplatform directory navigation
* Multiplatform library loading
* Add metadata symbols
* Check metadata symbols to identify CLAM libraries before loading
* Be verbose on errors (dlerr)

David.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: DynamicProcessingLibraryLoader.cxx
Type: text/x-c++src
Size: 997 bytes
Desc: not available
URL: <http://lists.clam-project.org/pipermail/clam-devel-clam-project.org/attachments/20070629/4fd22541/attachment-0003.cxx>


More information about the clam-devel mailing list