[Clam-devel] Successfull dynamic loading spike on Linux

David García Garzón dgarcia at iua.upf.edu
Fri Jun 29 10:03:49 PDT 2007


Committed in CLAM core, pointing to hardcoded /usr/lib/clam/ (should use 
the 'prefix', at least), and disabled for Windows. If mac gives problems, 
just disable it too and commit.

CLAM/src/Processing/Plugins/RunTimeProcessingLibraryLoader.cxx


On Friday 29 June 2007 18:52:40 David García Garzón wrote:
> 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.






More information about the clam-devel mailing list