Hi Delyle,
Unfortunately, Matlab 2015b does not support mex files compiled with
versions of gfortran later than 4.3.
Using the precompiled file snoptmex.mexmaci64 should work though.
I'm not sure what causes the HS116 error. It may be something with Matlab 2015b.
It's hard to keep up with all the minor non-backward-compatible changes that
Mathworks makes to each Matlab release.
If snoptmex.mexmaci64 works with GPOPS II, that should be good enough. Please let us know.
We will take a look at the HS116 issue.
Cheers,
--Philip
On 2/25/16 9:05 AM, Delyle Polet wrote:
> Excuse me in advance for my ignorance.
>
> I have experienced three, seemingly-related issues in installing snopt 7.5 and getting it to work on MATLAB 2015b for Mac.
>
> I followed the instructions in the INSTALL file included in the zip folder. In particular, I ran the following commands from terminal:
>
> >> ./configure --with-matlab=/Applications/MATLAB_R2015b.app
> >> make
> >> make install
> >> make check
>
> All commands appear to execute without error, and the final command issues the result: "0 /tmp/EXITdiffs.txt is good news (no differences)"
>
> However, when in MATLAB in the snopt7/matlab directory, if I try to issue the command `runNPexamples`, I get the following error (emphasis added)
>
> Invalid MEX-file '/Users/delyle/Documents/MATLAB/snopt7/matlab/snoptmex.mexmaci64':
> dlopen(/Users/delyle/Documents/MATLAB/snopt7/matlab/snoptmex.mexmaci64, 6): Symbol not found:
> __gfortran_transfer_array_write
> Referenced from: /Users/delyle/Documents/MATLAB/snopt7/matlab/snoptmex.mexmaci64 (*which was built for Mac OS X*
> * 10.11*)
> Expected in: /Applications/MATLAB_R2015b.app/sys/os/maci64/libgfortran.3.dylib
> in /Users/delyle/Documents/MATLAB/snopt7/matlab/snoptmex.mexmaci64
> Error in snscreen (line 18)
> snoptmex( screenon );
> Error in runNPexamples (line 6)
> snscreen on
>
>
> I get a similar error when invoking `runQPexamples`.
>
> Does this mean I need to upgrade my system to 10.11 to use snopt 7.5?
>
> --
> You received this message because you are subscribed to the Google Groups "SNOPT" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to
snopt+un...@googlegroups.com <mailto:
snopt+un...@googlegroups.com>.
> For more options, visit
https://groups.google.com/d/optout.