Forums

F.A.Q. F.A.Q.    Register Register    Login Login    Home Home
Search Search
SBML Discussions » sbml-interoperability » installation of libSBML 2.3.4/SBML Toolbox2.0.2
Show: Today's Posts  :: Message Navigator
| Subscribe to topic 
Return to the default flat view Create a new topic Submit Reply
AuthorTopic
fbergman


Posts: 122
Registered:
February 2010
Re: installation of libSBML 2.3.4/SBML Toolbox2.0.2 26 Jan '11 14:32 Go to previous messageGo to previous message

Hello Celine,

I'm sorry you encountered problems with the Matlab bindings on Linux. It is
a difficult platform to support with its variety. So thank you first of all
for letting us know and we will make sure that the compilation gets easier
going forward. Let me turn to your actual issue:

>
> Warning: You are using gcc version "4.4.4-14ubuntu5)". The version
> currently supported with MEX is "4.3.4".
> For a list of currently supported compilers see:
> http://www.mathworks.com/support/compilers/current_release/

This warning is issued by the Matlab compilation script, and can in fact be
disregarded. The newest gcc will work just fine with the Matlab bindings.

However, unfortunately both the script seems to work differently on Linux
than it does on OSX. So to compile the Matlab bindings minor tweaks have to
be made:

For libsbml 4.1.0 and 4.2.0 please edit the src/bindings/matlab/Makefile.in
file and replace:


%.$(MEXEXT): %.c
env MATLABROOT=$(MATLABROOT) ARCH=$(MEX_ARCH) Arch=$(MEX_ARCH) \
CFLAGS="${CFLAGS}" $(LIBTOOL) --tag=CC --mode=link $(MEX) \
ARCH=$(MEX_ARCH) Arch=$(MEX_ARCH) -f $(mexopts_file) \
-o $@ $^ $(flags) ../../libsbml.la $(MATLAB_LIBS)
cp -f .libs/$@ .

with:


%.$(MEXEXT): %.c
env MATLABROOT=$(MATLABROOT) ARCH=$(MEX_ARCH) Arch=$(MEX_ARCH) \
CFLAGS="${CFLAGS}" $(LIBTOOL) --tag=CC --mode=link $(MEX) \
ARCH=$(MEX_ARCH) Arch=$(MEX_ARCH) -f ./$(mexopts_file) \
-o $@ $^ $(flags) ../../libsbml.la $(MATLAB_LIBS)
cp -f .libs/$@ .

(note the ./ in front of $(mexopts_file) ).

For libsbml 5.0.0-b1, please edit the file
src/common/operationReturnValues.h and replace:


//--------------------------------------------------------------------------
-
//
// Return codes for package extension
//

//--------------------------------------------------------------------------
-

with

/*
---------------------------------------------------------------------------
*
* Return codes for package extension
*
*
--------------------------------------------------------------------------
*/

After making these changes running the configure script again will resolve
the issues.

All these changes are in SVN and will be in the next libsbml release.

Sorry for the inconvenience, please let us know if you have further problems

Best
Frank



> -----Original Message-----
> From: sbml-interoperability-bounces@caltech.edu [mailto:sbml-
> interoperability-bounces@caltech.edu] On Behalf Of celine
> Sent: Wednesday, January 26, 2011 1:22 PM
> To: sbml-interoperability@caltech.edu
> Subject: Re: [sbml-interoperability] installation of libSBML 2.3.4/SBML
> Toolbox2.0.2
>
>
> Hi Sarah!
>
> Thank you very much for your very prompt reply.
>
> I gave it a try today, and now am stuck in a different place :roll: I'm
pretty
> good at this, aren't I!?
>
> Today I tried libSBML 4.2.0 (latest stable release?) and SBMLToolbox 3.1.0
(as
> you recommended)
>
> I added the MATLAB's mex to my path,
> and set the CFLAGS and LDFLAGS as described in the readme file.
>
> My first attempt gives the error
>
> Warning: You are using gcc version "4.4.4-14ubuntu5)". The version
> currently supported with MEX is "4.3.4".
> For a list of currently supported compilers see:
> http://www.mathworks.com/support/compilers/current_release/
>
> So, I went to d/l gcc 4.3.5 (I couldn't find 4.3.4), and tried it again.
>
> The gcc warning is now replaced by:
>
> mex -I/usr/local/include -I/usr/local/include -L/usr/local/lib
-L/usr/local/lib
> OutputSBML.c -lsbml
> /usr/bin/ld: cannot find -lstdc++
> collect2: ld returned 1 exit status
>
> mex: link of ' "OutputSBML.mexa64"' failed.
>
> make: *** [OutputSBML.mexglx] Error 1
>
>
> I saw in a different thread that SBMLToolbox 3.0.0 is not compatible with
> 4.0.0? Is it that I only need to change the version that I install?
>
> Thanks again!
> Celine
>
> __________________________________________________________
> __
> To manage your sbml-interoperability list subscription, visit
> https://utils.its.caltech.edu/mailman/listinfo/sbml-interoperability
>
> For a web interface to the sbml-interoperability mailing list, visit
> http://sbml.org/Forums/
>
> For questions or feedback about the sbml-interoperability list, contact
sbml-
> team@caltech.edu

____________________________________________________________
To manage your sbml-interoperability list subscription, visit
https://utils.its.caltech.edu/mailman/listinfo/sbml-interoperability

For a web interface to the sbml-interoperability mailing list, visit
http://sbml.org/Forums/

For questions or feedback about the sbml-interoperability list,
contact sbml-team@caltech.edu

      

SubjectPosterDate
Read Message   installation of libSBML 2.3.4/SBML Toolbox2.0.2 celine25 Jan '11 14:10
Read Message   Re: installation of libSBML 2.3.4/SBML Toolbox2.0.... Sarah Keating26 Jan '11 05:53
Read Message   Re: installation of libSBML 2.3.4/SBML Toolbox2.0.... celine26 Jan '11 13:12
Read Message   Re: installation of libSBML 2.3.4/SBML Toolbox2.0.... Torbjoern Klatt26 Jan '11 14:10
Read Message   Re: installation of libSBML 2.3.4/SBML Toolbox2.0.... celine27 Jan '11 16:16
Read Message   Re: installation of libSBML 2.3.4/SBML Toolbox2.0.... Torbjoern Klatt28 Jan '11 01:10
Read Message   Re: installation of libSBML 2.3.4/SBML Toolbox2.0....  fbergman26 Jan '11 14:32
Read Message   Re: installation of libSBML 2.3.4/SBML Toolbox2.0.... celine27 Jan '11 15:23
Read Message   Re: installation of libSBML 2.3.4/SBML Toolbox2.0.... fbergman27 Jan '11 15:44
Read Message   Re: installation of libSBML 2.3.4/SBML Toolbox2.0.... celine27 Jan '11 16:35
Read Message   Re: installation of libSBML 2.3.4/SBML Toolbox2.0.... celine28 Jan '11 08:42
Read Message   Re: installation of libSBML 2.3.4/SBML Toolbox2.0.... fbergman28 Jan '11 09:13
Read Message   Re: installation of libSBML 2.3.4/SBML Toolbox2.0.... celine31 Jan '11 17:15
Previous Topic:libSBML Installation Failed Message
Next Topic:Problem to bind libsbml with matlab
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.