[Ipopt] Setting up MATLAB interface in Linux 64 bit

Gianpaolo Gulletta gianpaologulletta at gmail.com
Tue Feb 17 18:39:16 EST 2015


Hi ,

It worked!
The problem was that!

Now when I type "ipopt" on the MATLAB PROMPT I get:

 >> ipopt
Invalid MEX-file '/home/gianpaolo/Ipopt/install/lib/ipopt.mexa64':
/usr/local/MATLAB/R2012b/bin/glnxa64/../../sys/os/glnxa64/libgfortran.so.3: 
version `GFORTRAN_1.4' not found (required by
/home/gianpaolo/Ipopt/install/lib/ipopt.mexa64)

What should I install exactly?

Thank you,

Gianpaolo

On 17-02-2015 22:34, Tony Kelman wrote:
> That should only happen if you didn't configure Ipopt with 
> --disable-shared. You're going to have problems later on if you don't 
> do --disable-shared, so you should start from scratch and rebuild 
> Ipopt with that configure flag. You should make sure to use the "site 
> script" as described in the documentation, which will set that flag, 
> as well as --with-pic, --with-blas=BUILD, and --with-lapack=BUILD, for 
> you.
>
>
> -----Original Message----- From: Gianpaolo Gulletta
> Sent: Tuesday, February 17, 2015 2:27 PM
> To: Tony Kelman ; ipopt at list.coin-or.org
> Subject: Re: [Ipopt] Setting up MATLAB interface in Linux 64 bit
>
>
>
> And I have an hidden folder ".libs" ,under the "src" folder , which 
> contains:
>
> callbackfunctions.o  iterate.o               matlabinfo.o options.o
> ipopt.o              matlabexception.o       matlabjournal.o 
> sparsematrix.o
> ipoptoptions.o       matlabfunctionhandle.o  matlabprogram.o
>
>
> On 17-02-2015 22:08, Tony Kelman wrote:
> Did you run `make` in the Ipopt/contrib/MatlabInterface/src folder? 
> Are you sure there were no warnings or errors? matlabexception.o 
> should be compiled from matlabexception.cpp, you can see it listed in 
> OBJS. Did you configure and compile the rest of Ipopt from the top 
> level first?
>
>
> -----Original Message----- From: Gianpaolo Gulletta
> Sent: Tuesday, February 17, 2015 2:02 PM
> To: Tony Kelman ; ipopt at list.coin-or.org
> Subject: Re: [Ipopt] Setting up MATLAB interface in Linux 64 bit
>
> Hi,
>
> Thank you for your reply.
>
> Basically, the file does not exist,
> Here the answer of `file matlabexception.o`:
> matlabexception.o: ERROR: cannot open `matlabexception.o' (No such 
> file or directory)
>
> so, where should it be? Why do not I have it?
>
> Thank you,
>
> Gianpaolo Gulletta
>
>
> On 17-02-2015 21:34, Tony Kelman wrote:
> Well does matlabexception.o exist? If not, then the previous steps 
> weren't successful or you didn't run `make` yet. If so, what does 
> `file matlabexception.o` say?
>
>
> -----Original Message----- From: Gianpaolo Gulletta
> Sent: Tuesday, February 17, 2015 1:26 PM
> To: ipopt at list.coin-or.org
> Subject: [Ipopt] Setting up MATLAB interface in Linux 64 bit
>
> Hello everybody,
>
> I am having issues in compiling the source files in the 
> $IPOPTDIR/Ipopt/contrib/MatlabInterface/src folder.
>
> Here the Makefile:
> <snip>
>
> Here the problem:
>
> ----------------------------------------------------------------
> Warning: You are using gcc version "4.8.2-19ubuntu1)".  The version
>       currently supported with MEX is "4.4.6".
>       For a list of currently supported compilers see:
>       http://www.mathworks.com/support/compilers/current_release/
>
>
>  mex:  matlabexception.o  not a normal file or does not exist.
>
> make: *** [ipopt.mexa64] Error 1
> I have just followed the guide at the link: 
> http://www.coin-or.org/Ipopt/documentation/node18.html and all the 
> previous steps were successful.
>
> Can you help me?
>
> Thank you,
>
> Gianpaolo Gulletta
>
>
>
>
> -- Gianpaolo Gulletta

-- 
Gianpaolo Gulletta



More information about the Ipopt mailing list