Forums

F.A.Q. F.A.Q.    Register Register    Login Login    Home Home
Search Search
SBML Discussions » sbml-interoperability » Problem with MatLab
Show: Today's Posts  :: Message Navigator
| Subscribe to topic 
Return to the default flat view Create a new topic Submit Reply
AuthorTopic
Sarah Keating


Posts: 413
Registered:
May 2004
Re: Problem with MatLab 21 Jun '06 10:55 Go to previous messageGo to previous message

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



----- Original Message -----
From: "Andreas Dräger" <andreas.draeger@uni-tuebingen.de>
To: <libsbml-discuss@caltech.edu>
Sent: Wednesday, June 21, 2006 3:43 PM
Subject: [libsbml-discuss] Problem with MatLab


> Hello,
>
> I am very new to SBML at all and thus having some questions how to get
> started. I used the CellDesigner to create a SBML file containing my
> model. Then I wanted to use this model in MatLab (with the SBToolbox).
> Therefore I followed the instructions to install both libsbml and also the
> SBToolbox successfully. When I tried the following in MatLab an error
> occured and I don't know how to solve this problem:
> ------------------------------------------------------------------------------------
> >> model = SBmodel('my_model.xml')
> ??? Undefined command/function 'TranslateSBML'.
>
> Error in ==> @SBmodel/private/SBimportSBML at 39
> SBMLmodel = TranslateSBML(SBMLmodelFile);
>
> Error in ==> SBmodel.SBmodel at 150
> [SBstructure,errorMsg] = SBimportSBML(filename);
>
> >>
> ------------------------------------------------------------------------------------
> I also tried to install the SBMLToolbox for MatLab. When I typed in "make"
> the following error occured:
> ------------------------------------------------------------------------------------
> [root@rapc77 toolbox]# make
> mex -I/usr/local/include -L/usr/local/lib TranslateSBML.c -lsbml
> TranslateSBML.c:61:30: xml/ParseMessage.h: No such file or directory
> TranslateSBML.c:62:23: util/util.h: No such file or directory
> TranslateSBML.c: In function `GetKineticLaw':
> TranslateSBML.c:1687: warning: passing arg 1 of `LookForCSymbolTime'
> discards qualifiers from pointer target type
> TranslateSBML.c: In function `GetRule':
> TranslateSBML.c:2052: warning: passing arg 1 of `LookForCSymbolTime'
> discards qualifiers from pointer target type
> TranslateSBML.c: In function `GetFunctionDefinition':
> TranslateSBML.c:2286: warning: passing arg 1 of `LookForCSymbolTime'
> discards qualifiers from pointer target type
> TranslateSBML.c: In function `GetEvent':
> TranslateSBML.c:2409: warning: passing arg 1 of `LookForCSymbolTime'
> discards qualifiers from pointer target type
> TranslateSBML.c:2414: warning: passing arg 1 of `LookForCSymbolTime'
> discards qualifiers from pointer target type
> TranslateSBML.c: In function `GetEventAssignment':
> TranslateSBML.c:2564: warning: passing arg 1 of `LookForCSymbolTime'
> discards qualifiers from pointer target type
> TranslateSBML.c: In function `LookForCSymbolTime':
> TranslateSBML.c:2655: warning: assignment discards qualifiers from pointer
> target type
>
> mex: compile of 'TranslateSBML.c' failed.
>
> make: *** [TranslateSBML.mexglx] Error 1
> ------------------------------------------------------------------------------------
> Does anybody know, what to do?
>
> Thanks a lot for your help
> Andreas Dräger
>
> --
> Dipl.-Bioinform. Andreas Dräger
> Eberhard Karls University Tübingen
> Center for Bioinformatics (ZBIT)
> Phone: +49-7071-29-70436
> Fax: +49-7071-29-5091
>
>
>



      

SubjectPosterDate
Read Message   Problem with MatLab Andreas Dräger21 Jun '06 07:43
Read Message   Re: Problem with MatLab  Sarah Keating21 Jun '06 10:55
Read Message   Re: Problem with MatLab Andreas Dräger22 Jun '06 01:01
Read Message   Re: Problem with MatLab David Fange22 Jun '06 01:46
Read Message   Re: Problem with MatLab Andreas Dräger22 Jun '06 02:18
Read Message   Re: Problem with MatLab Sarah Keating22 Jun '06 03:04
Read Message   Re: Problem with MatLab Andreas Dräger23 Jun '06 03:11
Read Message   Re: Problem with MatLab Andreas Dräger23 Jun '06 03:16
Read Message   Re: Problem with MatLab Mike Hucka27 Jun '06 23:42
Read Message   Re: Problem with MatLab blent9129 Jun '06 02:48
Read Message   Re: Problem with MatLab sonnenschein21 Feb '07 08:35
Read Message   Re: Problem with MatLab nerdelbaum22 Oct '07 10:21
Read Message   Re: Problem with MatLab Sarah Keating24 Oct '07 08:07
Read Message   Re: Problem with MatLab meono02 Mar '09 00:12
Read Message   Re: Problem with MatLab Sarah Keating02 Mar '09 09:54
Read Message   Re: Problem with MatLab Javier10 Nov '09 14:43
Previous Topic:Problems building MATLAB API
Next Topic:libSBML for 64bit windows vista [was Re: EBI HELP: SOFTWARE ERROR (SUP#535325)]
Go to forum:
-=] Back to Top [=-

Powered by FUDforum. (Copyright Advanced Internet Designs Inc.)

Please use our issue tracking system for any questions or suggestions about this website.