Closed jaeandersson closed 8 years ago
Pushed to the "matlab" branch. Note that this adds one MATLAB file: SwigGet.m
. You'd need to distribute this file for the updated module to work. But then it should work for both MATLAB and Octave.
Alerted octave devs about the fact that mkoctfile doesn't recognize ".cxx" suffix: https://savannah.gnu.org/bugs/index.php?48381. Can't do much more than that.
Octave issue fixed: ".cxx" will be recognized by mkoctfile in Octave 4.2.
Build system now bilingual: Set the "--enable-octave-for-matab" configure option to use Octave instead of MATLAB for the testing (the generated code code is always bilingual). One unit test fails for Octave: #69.
Octave has support for most of the features used by the MATLAB SWIG module: mex, classdef etc. It should (in principle at least) be possible to make the generated SWIG-MATLAB modules compilable for both Octave and MATLAB. This would be an attractive alternative to using SWIG's Octave module in many cases.
Issues encountered:
stdio.h
missing (needed by vsnprintf)ne
not defined for handle objectsimport module.*
is not supported by Octave