Using external C-Libs with Python

Hello,

I’m new to Panda. Is it possible to use Python using some external C-coded lib, dll …?

Since I want to do a programm using some Matlab-generated C-libaries.

Thx,

Stefan

It is possible, however, not trivial. You’ll need the matlab libraries and then the Python wrapper such as http://claymore.engineer.gvsu.edu/~steriana/Python/pymat.html. Python will then import PyMat (for instance) and you’ll have access to that library from within Python.

This is of course doesn’t really have anything to do with Panda really, other than the fact your probably wanting to have access to Matlab from within Panda3d if I’m not mistaken.

You may also want to look at SIP which can help you interfacing c/c++ libraries with Python.

http://www.river-bank.demon.co.uk/docs/sip/sipref.html

Steve