|
From: Joel A. <j.a...@gm...> - 2014-09-02 10:31:55
|
Hi all! As you may know if you've been following this mailing list, there is an ongoing effort to write a MATLAB module to SWIG. Since many of you probably are not also following the swig-devel mailing list, I thought it would make sense make a short update on this list. After great contributions from in particular Kris Thielemans, the module has now reached a state where it is actually mature enough to be used for major projects. I've successfully used it to generate MATLAB bindings for our project CasADi (http://casadi.org) and Ian Bell reported to have used it to generate MATLAB bindings to CoolProp (http://www.coolprop.org). If you want to try out the module, now might be the time. Both Kris Thielemans and I have limited time for working on this, so consider contributing if you want to see the module finished soon. Otherwise it might take time before it's mature enough to be merged into the master branch of SWIG. I'm personally (don't know about Kris) also willing to work on the MATLAB module (or its usage) on a commercial basis. Feel free to contact me about that. Here is how you can obtain the module (adapted from Ian Bell's mail): * In Github, fork mine (https://github.com/jaeandersson/swig) or Kris' ( https://github.com/KrisThielemans/swig) fork of SWIG. They are currently in sync, so it shouldn't matter which. * Clone your fork (replace "myusername"): >> git clone -b matlab https://github.com/myusername/swig swig-matlab * Add the mine and Kris' forks as remote to be able to keep up to date with development: >> git remote add joel https://github.com/jaeandersson/swig >> git remote add kris https://github.com/KrisThielemans/swig * Compile SWIG >> cd swig-matlab/ >> ./autogen.sh >> ./configure --with-matlab=/usr/local/MATLAB/R2014a/bin/matlab --prefix=/home/ian/swig-matlab >> make >> make install * If you fix or improve something, commit and push to your fork and then make a pull request in Github. Best regards, Joel |