# HG changeset patch # User cannam # Date 1253615976 0 # Node ID a331172e11ba78dc2ff1a19c870f9b569c0265b0 # Parent 2fc6456b1c715eabd021a5d51ae2f4802c46f679 * Improve error reporting from PluginLoader diff -r 2fc6456b1c71 -r a331172e11ba src/vamp-hostsdk/PluginLoader.cpp --- a/src/vamp-hostsdk/PluginLoader.cpp Tue Sep 22 10:08:01 2009 +0000 +++ b/src/vamp-hostsdk/PluginLoader.cpp Tue Sep 22 10:39:36 2009 +0000 @@ -270,6 +270,10 @@ (handle, "vampGetPluginDescriptor"); if (!fn) { + if (forPlugin != "") { + cerr << "Vamp::HostExt::PluginLoader: No vampGetPluginDescriptor function found in library \"" + << fullPath << "\"" << endl; + } unloadLibrary(handle); continue; } @@ -365,7 +369,12 @@ } string fullPath = getLibraryPathForPlugin(key); - if (fullPath == "") return 0; + if (fullPath == "") { + std::cerr << "Vamp::HostExt::PluginLoader: No valid \"" + << libname << "." << PLUGIN_SUFFIX + << "\" found in Vamp path" << std::endl; + return 0; + } void *handle = loadLibrary(fullPath); if (!handle) return 0; @@ -375,6 +384,8 @@ (handle, "vampGetPluginDescriptor"); if (!fn) { + cerr << "Vamp::HostExt::PluginLoader: No vampGetPluginDescriptor function found in library \"" + << fullPath << "\"" << endl; unloadLibrary(handle); return 0; }