sbmlteam / libsbml

LibSBML is a native library for reading, writing and manipulating files and data streams containing the Systems Biology Markup Language (SBML). It offers language bindings for C, C++, C#, Java, JavaScript, MATLAB, Perl, PHP, Python, R and Ruby.
https://sbml.org/software/libsbml
Other
41 stars 28 forks source link

Fbc v3 matlab #277

Closed skeating closed 1 year ago

skeating commented 2 years ago

Description

Adding fbc v3support to matlab

Motivation and Context

Types of changes

Checklist:

Testing

fbergmann commented 1 year ago

I'm trying to get the build going on my side, however I am encountering some issues. On my windows machine i get crashes (access violations) when running the tests, and a test failure (not sure whether they are related yet). Also the following test fails:

File: test-greek.xml
Reading  test-greek.xml
Printing  test-greek.xml
Document written
        <p>ɱ - some € symbolsβ śԈ</p> is Not equal to         <p>ɱ - some € symbolsβ śԈ</p>
Output of test-greek.xml failed

so i thought of linux to compile there, but there compilation fails with compiling with:

/home/bq_fbergmann/libsbml-fbc-v3-matlab/src/bindings/matlab/StructureFields.cpp: In member function ‘const string StructureFields::readString(const string&, unsigned int, unsigned int)’:
/home/bq_fbergmann/libsbml-fbc-v3-matlab/src/bindings/matlab/StructureFields.cpp:1774:13: error: ‘mxArrayToUTF8String’ was not declared in this scope; did you mean ‘mxArrayToString’?
 1774 |     value = mxArrayToUTF8String(mxField);
      |             ^~~~~~~~~~~~~~~~~~~
      |             mxArrayToString

but maybe that matlab version is too old.