Hello Andreas,
my quick and dirty solution for this problem:
CFLAGS="-I/usr/local/include -I/usr/local/include/sbml" make
/David Fange
On Thursday 22 June 2006 10:01, Andreas Dräger wrote:
> Hello Sarah,
>
> I still get an error message. However, the file common/extern.h and
> sbmlfwd.h does exist. What else could I change?
> Thank you a lot for your help!
>
> Andreas
>
> [root@rapc77 toolbox]# make
> mex -I/usr/local/include -L/usr/local/lib TranslateSBML.c -lsbml
> In file included from TranslateSBML.c:61:
> /usr/local/include/sbml/xml/ParseMessage.h:56:27: common/extern.h: No
> such file or directory
> /usr/local/include/sbml/xml/ParseMessage.h:156:28: common/sbmlfwd.h: No
> such file or directory
> TranslateSBML.c: In function `GetKineticLaw':
> TranslateSBML.c:1689: warning: passing arg 1 of `LookForCSymbolTime'
> discards qualifiers from pointer target type
> TranslateSBML.c: In function `GetRule':
> TranslateSBML.c:2054: warning: passing arg 1 of `LookForCSymbolTime'
> discards qualifiers from pointer target type
> TranslateSBML.c: In function `GetFunctionDefinition':
> TranslateSBML.c:2288: warning: passing arg 1 of `LookForCSymbolTime'
> discards qualifiers from pointer target type
> TranslateSBML.c: In function `GetEvent':
> TranslateSBML.c:2411: warning: passing arg 1 of `LookForCSymbolTime'
> discards qualifiers from pointer target type
> TranslateSBML.c:2416: warning: passing arg 1 of `LookForCSymbolTime'
> discards qualifiers from pointer target type
> TranslateSBML.c: In function `GetEventAssignment':
> TranslateSBML.c:2566: warning: passing arg 1 of `LookForCSymbolTime'
> discards qualifiers from pointer target type
> TranslateSBML.c: In function `LookForCSymbolTime':
> TranslateSBML.c:2657: warning: assignment discards qualifiers from
> pointer target type
>
> mex: compile of 'TranslateSBML.c' failed.
>
> make: *** [TranslateSBML.mexglx] Error 1
>
> Sarah Keating wrote:
> > Hi Andreas
> >
> > The build problem in SBMLToolbox is a bug in TranslateSBML.c - my
> > fault as I'm a windows user :-)
> >
> > If you change the includes at the top of TranslateSBML.c to read
> >
> > #include "sbml/xml/ParseMessage.h"
> > #include "sbml/util/util.h"
> > that should sort it! Once you have built TranslateSBML from
> > SBMLToolbox or libSBML SBToolbox should be fine.
> >
> > Remember to add the directory where TranslateSBML.mexglx is to your
> > path in MATLAB. Your initial problem could have been caused by this!
> >
> > Hope this helps
> >
> > Sarah