[Ipopt] Problem running Ipopt matlab interface

Paul van Hoven paul.van.hoven at googlemail.com
Fri Aug 3 06:54:41 EDT 2012


Ah sorry, I've totally overlooked that. Okay, but again I get the same error:

>> IpoptDemo.clusterRunme
------------------------------------------
Invalid MEX-file '/homes/numerik/paul/lib/Ipopt/lib64/ipopt.mexa64':
/net/matlab/Matlab2011b/sys/os/glnxa64/libgfortran.so.3: version
`GFORTRAN_1.4' not found (required by
/usr/lib64/liblapack.so.3)

Error in IpoptDemo.runme (line 48)
            [x info] = ipopt(x0,funcs,options);

Error in IpoptDemo.clusterRunme (line 9)
            IpoptDemo.runme;




2012/8/2 Stefan Vigerske <stefan at math.hu-berlin.de>:
> Come on, this is exactly the same error that you reported several days ago.
> The PKG_CONFIG_PATH is setup wrong on your machine.
> If you don't want to correct this, you have to set the INCL flags
> explicitely in the matlab interface Makefile.
>
> Stefan
>
>
> On 08/02/2012 05:43 PM, Paul van Hoven wrote:
>>
>> Thanks Tony, that was it! I also switched to the latest IpOpt Version
>> 3.10.2 and it compiles fine. But now I get another error when trying
>> to compile the matlab interface:
>>
>> paul at gauss:~/lib_src/CoinIpopt/build/Ipopt/contrib/MatlabInterface/src>
>> make
>> /usr/site-local/bin/g++-4.2 -O3 -pipe -DNDEBUG -pedantic-errors
>> -Wparentheses -Wreturn-type -Wcast-qual -Wall -Wpointer-arith
>> -Wwrite-strings -Wconversion -Wno-unknown-pragmas -Wno-long-long -fPIC
>> -fexceptions -DFUNNY_LAPACK_FINT  -DIPOPT_BUILD -DMATLAB_MEXFILE
>>
>> `PKG_CONFIG_PATH=/homes/numerik/paul/lib/Ipopt/lib/pkgconfig:/homes/numerik/paul/lib/Ipopt/share/pkgconfig::/homes/numerik/paul/lib_src/CoinIpopt/build/ThirdParty/ASL:/homes/numerik/paul/lib_src/CoinIpopt/build/ThirdParty/Blas:/homes/numerik/paul/lib_src/CoinIpopt/build/ThirdParty/Lapack:/homes/numerik/paul/lib_src/CoinIpopt/build/ThirdParty/HSL:/homes/numerik/paul/lib_src/CoinIpopt/build/Ipopt
>> /usr/bin/pkg-config --cflags ipopt`
>> -I/net/matlab/Matlab2011b/extern/include \
>>          -o matlabexception.o -c
>> ../../../../../Ipopt/contrib/MatlabInterface/src/matlabexception.cpp
>> In file included from
>> /homes/numerik/paul/lib_src/CoinIpopt/Ipopt/src/Common/IpoptConfig.h:39,
>>                   from
>> /homes/numerik/paul/lib_src/CoinIpopt/Ipopt/src/Common/IpTypes.hpp:12,
>>                   from
>> /homes/numerik/paul/lib_src/CoinIpopt/Ipopt/src/Common/IpUtils.hpp:13,
>>                   from
>> ../../../../../Ipopt/contrib/MatlabInterface/src/matlabexception.cpp:10:
>>
>> /homes/numerik/paul/lib_src/CoinIpopt/Ipopt/src/Common/config_default.h:3:30:
>> error: configall_system.h: No such file or directory
>> In file included from
>> /homes/numerik/paul/lib_src/CoinIpopt/Ipopt/src/Common/IpUtils.hpp:14,
>>                   from
>> ../../../../../Ipopt/contrib/MatlabInterface/src/matlabexception.cpp:10:
>> /homes/numerik/paul/lib_src/CoinIpopt/Ipopt/src/Common/IpDebug.hpp:22:4:
>> error: #error "don't have header file for assert"
>> make: *** [matlabexception.o] Fehler 1
>>
>>
>>
>>
>> 2012/8/1 Tony Kelman <kelman at berkeley.edu>:
>>>
>>> Unfortunately I'm stumped now... It's tricky to tell which version of
>>> libgfortran the linker is actually picking up. It could have something to
>>> do
>>> with your extra LDFLAGS="-L/usr/lib64 -lblas_pic", do you still need
>>> that?
>>> Since you have -fPIC in ADD_FFLAGS and --with-blas=BUILD, you should get
>>> a
>>> PIC libcoinblas, like Matlab wants (Matlab will use its own BLAS instead
>>> of
>>> libcoinblas unless you do --disable-shared, but that's a separate issue).
>>> And kind of a shot in the dark here, but have you been doing make
>>> distclean
>>> between these changes to the configure flags?
>>>
>>>
>>
>> _______________________________________________
>> Ipopt mailing list
>> Ipopt at list.coin-or.org
>> http://list.coin-or.org/mailman/listinfo/ipopt
>>
>



More information about the Ipopt mailing list