[Ipopt] Problem running Ipopt matlab interface

Paul van Hoven paul.van.hoven at googlemail.com
Thu Aug 2 11:43:53 EDT 2012


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?
>
>



More information about the Ipopt mailing list