Thankyou! This issue has been a source of some frustration.
"make MAC" works fine, of course, but that file2mat.c would not
compile until I did as you suggested.
-Dianne
On 8/27/05, Ray Fix <[log in to unmask]> wrote:
> 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.
>
--
Dianne Patterson, Ph.D.
Cognition and NeuroImaging labs
University of Arizona
626-4571 (Office)
|