Using external C-Libs with Python


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.



It is possible, however, not trivial. You’ll need the matlab libraries and then the Python wrapper such as 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.