Page 1 of 1

Error in Plugin Loading using commands

Posted: Mon Jun 28, 2010 2:32 pm
by priyanshu
Hi,

I'm trying to create my own analysis using a plugin. I followed the steps as mentioned in the OpenSim developer's guide (Chapter 3). I successfully created the dll using the OpenSim Beta version and copied the generated dll in the OpenSim_Installation_Directory/pulgins. I can also successfully load the plugin from the gui. However, when I try to use it using windows command prompt using

analyze -S setupfile.xml -L myPlugin

I receive the message "Failed to load library myPlugin"

Any clue why it would load successfully in GUI but not through command prompt.

Thanks.

Regards,
Priyanshu

RE: Error in Plugin Loading using commands

Posted: Mon Jun 28, 2010 2:38 pm
by aymanh
Priyanshu,

This sounds like a Path problem. The GUI requires the plugin to be placed in a specific directory that's added to the Path when the application is launched. The corresponding scheme for running from the command line is adding the (directory containing your) dll to the Path, or just copying it to the folder you're running from.

Hope this helps,
-Ayman

RE: Error in Plugin Loading using commands

Posted: Mon Jun 28, 2010 2:50 pm
by priyanshu
Thank you so much Ayman it's working now.

Regards,
Priyanshu