Error in Plugin Loading using commands

Provide easy-to-use, extensible software for modeling, simulating, controlling, and analyzing the neuromusculoskeletal system.
POST REPLY
User avatar
Priyanshu Agarwal
Posts: 39
Joined: Tue Jun 08, 2010 10:08 am

Error in Plugin Loading using commands

Post by Priyanshu Agarwal » Mon Jun 28, 2010 2:32 pm

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

User avatar
Ayman Habib
Posts: 2238
Joined: Fri Apr 01, 2005 12:24 pm

RE: Error in Plugin Loading using commands

Post by Ayman Habib » Mon Jun 28, 2010 2:38 pm

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

User avatar
Priyanshu Agarwal
Posts: 39
Joined: Tue Jun 08, 2010 10:08 am

RE: Error in Plugin Loading using commands

Post by Priyanshu Agarwal » Mon Jun 28, 2010 2:50 pm

Thank you so much Ayman it's working now.

Regards,
Priyanshu

POST REPLY