hello all,
ive been trying to get spm5b to compile on my g5, running mac os x 10.3.9 and matlab 6.5.1... i used a modified version of the make command steve suggested below, adjusting for my path to mex (in MATLAB6p5, not MATLAB7). when i run it, i get this:
In file included from spm_mapping.h:13,
from spm_mapping.c:19:
/Applications/MATLAB6p5/extern/include/mex.h:307: macro "mxGetName" passed 1 arguments, but takes just 0
mex: compile of 'spm_mapping.c' failed.
in my search for answers, i came across some mentions of using the -V5 flag with mex for backwards compatibility with that function. unfortunately, thats not working either. it produces this output:
In file included from spm_mapping.h:13,
from spm_mapping.c:19:
/Applications/MATLAB6p5/extern/include/mex.h:311: macro "mexPutArray" requires 2 arguments, but only 1 given
/Applications/MATLAB6p5/extern/include/mex.h:312: macro "mexGetArray" requires 2 arguments, but only 1 given
/Applications/MATLAB6p5/extern/include/mex.h:313: macro "mexGetArrayPtr" requires 2 arguments, but only 1 given
mex: compile of 'spm_mapping.c' failed.
after remembering an article i saw in the past (that i am unable to locate again), i have even tried using gcc2 instead of cc (which is v3.3 in reality on my box), but that gives the same results. editing .c, .h, and .m files is not something im eager to do, for fear of breaking something else, but that might be my next course of action. the spm5 webpage on ucl.ac.uk seems to imply that matlab should work just fine with my configuration -- as you can see, its not getting very far. any ideas? would an upgrade to matlab 7 be helpful?
thanks,
-george
-----Original Message-----
From: SPM (Statistical Parametric Mapping) on behalf of Stephen Smith
Sent: Sun 5/15/2005 7:52 AM
To: [log in to unmask]
Cc:
Subject: Re: [SPM] spm5b installation on MAC OS X - ERROR!
Hi - for the mac is is quite straightforward - just do:
cd <wherever>/spm5b/src
make all SUF=mexmac RANLIB="ranlib spm_vol_utils.mexmac.a" \
CC="cc -DBIGENDIAN" MEX="/Applications/MATLAB7/bin/mex -O -DBIGENDIAN"
cp *.a *mexmac ..
Cheers, Steve.
On Sun, 15 May 2005, Steven Platek wrote:
> SPMexperts,
>
> Hi. I just installed SPM5b on a MAC running OSX 10.3, MATLAB 7 and I get the
> following errors upon initialization. If I type spm at the prompt it will
> bring up the selection screen, but any selection gives this error and I get
> the same error if I type spm fmri at the prompt. Any advice would be
> greatly appreciated Išve unzipped SPM from the UNIX prompt. I get all the
> folders (n=15) and have private folder in the appropriate @--- folders. I
> have also tried running matlab without the java vm, but no luck.
> ---------
> ___ ____ __ __
> / __)( _ \( \/ )
> \__ \ )___/ ) ( Statistical Parametric Mapping
> (___/(__) (_/\/\_) SPM5 - http://www.fil.ion.ucl.ac.uk/spm/
>
>
>
> Initialising SPM..??? Error using ==> spm_list_files
> spm_list_files.c not compiled - see spm_MAKE.sh
>
> Error in ==> spm at 1432
> [null,tmp] = spm_list_files(Tdir,'-');
>
> Error in ==> spm at 1029
> xTB = spm('TBs');
>
> Error in ==> spm at 462
> Fmenu = spm('CreateMenuWin','off'); fprintf('.')
>
> ------------
> Thanks,
> Steve
>
--
Stephen M. Smith DPhil
Associate Director, FMRIB and Analysis Research Coordinator
Oxford University Centre for Functional MRI of the Brain
John Radcliffe Hospital, Headington, Oxford OX3 9DU, UK
+44 (0) 1865 222726 (fax 222717)
[log in to unmask] http://www.fmrib.ox.ac.uk/~steve
|