Hi Elizabeth,
I get the following error:
bin/bash ./libtool --mode=install --quiet /usr/bin/install -c ./lib/
libsnmex.la /home/codas/snopt/lib
/bin/bash ./libtool --mode=finish --quiet /home/codas/snopt/lib
/home/codas/MATLAB/R2014a/bin/mex -v /snmex.F90 \
/iomex.f90 /snoptmex.F90 \
FFLAGS='$FFLAGS ' LD='gfortran' \
LDFLAGS='$LDFLAGS ' \
/home/codas/snopt/lib/libsnmex.a -output snoptmex -outdir
Verbose mode is on.
/snmex.F90 not found; check that you are in the correct current folder, and check the spelling of '/snmex.F90'.
But I must say that I'm having problems not only to install the mex files, but to install the c and cpp libraries too.
I'm on a ubuntu 14.04 with gcc version 4.8.2 and gfortran 4.8.2. In the README.WhatsNew I see that the version of snopt I have is 7.2-12.
I got help from other snopt user and I manage to compile the c libraries with the following commands:
codas@apis:~/snopt7$ ./configure --prefix=/home/codas/snopt7
make FFLAGS="-O -fPIC -fdefault-integer-8" CFLAGS="-O -fPIC" CXXFLAGS="-O -fPIC"
Observe that I'm running the configure on the same directory as the snopt7 src, and the prefix is pointing there too. That is the only combination I managed to get to work. First I tried to compile from a 'build' subdirectory and with a different prefix and it didn't work.
Further, the additional flags in the make command need to be set.
From the error message for the mex file it seems a prefix is not being set too.
So, I believe I have inconsistent makefiles. I'm not sure how to proceed. Do you have any update for this?
Thanks in advance
Andres