VMD-L Mailing List
From: John Stone (johns_at_ks.uiuc.edu)
Date: Fri Apr 21 2006 - 11:48:07 CDT
- Next message: Nathan C. Rockwell: "questions for 1.8.4"
- Previous message: ziemys_at_ecr6.ohio-state.edu: "VMD's Python/Tcl - importing libraries"
- In reply to: ziemys_at_ecr6.ohio-state.edu: "VMD's Python/Tcl - importing libraries"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Hi,
You can import dynamic libraries in both Tcl and Python in VMD, (that's
actually the only way to import compiled C/C++ routines into Tcl/Python).
You can't import a static link library without re-linking VMD itself.
Several of the VMD plugins (psfgen, autopsf, pmepot, hesstrans, intersurf, ...)
are actually implemented as compile C/C++ dynamic libraries which are
wrapped with a simple scripting interface and loaded at runtime into VMD.
Have a look at the way psfgen or pmepot plugins are built as an example.
(get the plugin source tree from CVS...)
Let me know if you need assistance with this.
John Stone
vmd_at_ks.uiuc.edu
On Fri, Apr 21, 2006 at 03:45:08PM +0000, ziemys_at_ecr6.ohio-state.edu wrote:
> Hi,
>
> I there any ability to use static or dynamic libraries witn VMD's native tcl or python interfce ? Can and how I can import the modules to python or tcl (of VMD) ?
>
> I trying to use C functions (wrapped with SWIG) and I need to add path to the tcl or python of VMD. What's the exact path or where to search for it ?
>
> What would be advices ?
>
> With best
> Arturas
>
-- NIH Resource for Macromolecular Modeling and Bioinformatics Beckman Institute for Advanced Science and Technology University of Illinois, 405 N. Mathews Ave, Urbana, IL 61801 Email: johns_at_ks.uiuc.edu Phone: 217-244-3349 WWW: http://www.ks.uiuc.edu/~johns/ Fax: 217-244-6078
- Next message: Nathan C. Rockwell: "questions for 1.8.4"
- Previous message: ziemys_at_ecr6.ohio-state.edu: "VMD's Python/Tcl - importing libraries"
- In reply to: ziemys_at_ecr6.ohio-state.edu: "VMD's Python/Tcl - importing libraries"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]