<div dir="ltr"><div><div><div>Tony,<br><br></div>I tried your suggestion and got the following error when I tried to compile the mex file: <br><br>ld: library not found for -lblas<br>clang: error: linker command failed with exit code 1 (use -v to see invocation)<br><br> mex: link of ' "ipopt.mexmaci64"' failed.<br><br></div>Any suggestions?<br><br></div>Anil<br><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Sep 1, 2015 at 6:45 AM, Tony Kelman <span dir="ltr"><<a href="mailto:kelman@berkeley.edu" target="_blank">kelman@berkeley.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">If you want dynamically linked then you shouldn't build with --disable-shared.<br>
<br>
I suspect a short-term fix would be to configure with --with-blas=-lblas --with-lapack=-llapack, and a longer-term fix would be to patch the Matlab interface build system to account for the recent change in BuildTools from -framework vecLib to -framework Accelerate. Sorry I didn't catch this sooner. I can try to prepare a patch, but not having a Mac easily available I won't be able to test it directly.<br>
<br>
-Tony<br>
<br>
<br>
-----Original Message----- From: Anil Rao<br>
Sent: Monday, August 31, 2015 3:05 PM<br>
To: <a href="mailto:ipopt@list.coin-or.org" target="_blank">ipopt@list.coin-or.org</a><br>
Subject: [Ipopt] Compiling IPOPT for MATLAB R2015a on Yosemite<div><div class="h5"><br>
<br>
<br>
All,<br>
<br>
I am trying to compile the MATLAB interface for IPOPT R2015a using Mac OS-X Yosemite and I m having some issues. Please note that I want to compile a dynamically linked mex file (not a static mex file). I am using XCode version 6.4 with gfortran 4.8. Also, I am using the coinhsl code that includes all of the Harwell linear solvers. My configure script is as follows:<br>
<br>
./configure --disable-shared F77=gfortran FFLAGS="-fexceptions -m64 -fbackslash" CFLAGS="-fno-common -no-cpp-precomp -fexceptions -arch x86_64 -m64" CXXFLAGS="-fno-common -no-cpp-precomp -fexceptions -arch x86_64 -m64"<br>
<br>
I was able to run make --> make install --> make test with no problems and obtained the following output:<br>
<br>
Running unitTests...<br>
<br>
Testing AMPL Solver Executable...<br>
Test passed!<br>
Testing C++ Example...<br>
Test passed!<br>
Testing C Example...<br>
Test passed!<br>
Testing Fortran Example...<br>
Test passed!<br>
<br>
I then tried to compile the MATLAB mex file and received the following error:<br>
<br>
mex: -framework not a valid option.<br>
<br>
Usage:<br>
MEX [option1 ... optionN] sourcefile1 [... sourcefileN]<br>
[objectfile1 ... objectfileN] [libraryfile1 ... libraryfileN]<br>
<br>
Use the -help option for more information, or consult the MATLAB External Interfaces Guide.<br>
<br>
I am grateful if somebody could tell me what I am doing wrong. Alternatively, if somebody could tell me the steps they followed to obtain a working mex file, I would be super grateful.<br>
<br>
Anil Rao<br>
<br>
<br>
<br>
-- <br>
<br>
Anil V. Rao, PhD<br>
Associate Professor<br>
Department of Mechanical and Aerospace Engineering<br>
University of Florida<br>
Gainesville, FL 32611-6250<br>
Tel: <a href="tel:%28352%29%20672-1529" value="+13526721529" target="_blank">(352) 672-1529</a><br>
E-mail: <a href="mailto:anilvrao@gmail.com" target="_blank">anilvrao@gmail.com</a><br>
<br>
<br>
<br>
<br>
<br></div></div>
_______________________________________________<br>
Ipopt mailing list<br>
<a href="mailto:Ipopt@list.coin-or.org" target="_blank">Ipopt@list.coin-or.org</a><br>
<a href="http://list.coin-or.org/mailman/listinfo/ipopt" rel="noreferrer" target="_blank">http://list.coin-or.org/mailman/listinfo/ipopt</a> <br>
</blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature"><div dir="ltr">Anil V. Rao, PhD<br>
Associate Professor<br>
Department of Mechanical and Aerospace Engineering<br>
University of Florida<br>
Gainesville, FL 32611-6250<br>Tel: (352) 672-1529<br>E-mail: <a href="mailto:anilvrao@gmail.com" target="_blank">anilvrao@gmail.com</a><br></div></div>
</div>