Hi!
Here are my notes from compiling SPM5b on the Mac. I was able to get
it all working with a couple of caveats.
The makefile uses uname to determine the target. This is set to MAC
in the makefile. The correct uname is "Darwin" for Apple Macintosh
OS X.
file2mat.c is missing the include to the POSIX definition of
caddr_t. I needed to add #include <sys/types.h> to this file.
Ray
PS:
I had a problem with mex because it is also the name of a LaTeX
executable. I guess I could change my paths but to work around this
in the Makefile I said:
ifndef MEX_BIN
MEX_BIN=mex
endif
Then everywhere it says mex I replace with $(MEX_BIN). This way the
default is just mex but if you set the environment variable you can
override it.
|