LLN, le 29/01/08
Hi Kathleen,
I once wrote a wiki page on SPM2-OSX compiling, but it seems to have
disappeared. You'll find below a procedure that used to work fine a
few years ago with SPM2 and Matlab6 on Mac G4s and G5s, but I don't
know if it will work again - especially with more recent versions of
Matlab and/or OS X.
Hope this will help,
Mauro
SMP2-OSX compiling for dummies:
*******************************
NB. Some of the following commands require that you log in as root or
use the "sudo" mode.
Assuming that Matlab and SPM2 are in your Applications folder (say,
"MATLAB6p5p1" and "spm2"):
(1) make sure you use a version of gcc earlier than 3.3:
(sudo) gcc_select 3
(2) put a symbolic link to the "mex" file found in MATLAB6p5p1/bin
into /usr/sbin/ (!!! not in usr/local/bin):
(sudo) ln -s /... /Applications/MATLAB6p5p1/bin/mex /usr/sbin/mex
(3) recompile SPM2:
cd /.../Applications/spm2
make MAC
You should see the following lines:
make all SUF=mexmac RANLIB="ranlib spm_vol_utils.mexmac.a"
_____________________________________________________________
Unix compile for MacOS X
_____________________________________________________________
mex -O -c spm_mapping.c
mv spm_mapping.o spm_mapping.mexmac.o
rm -f spm_vol_utils.mexmac.a
ar rcv spm_vol_utils.mexmac.a utils_uchar.mexmac.o
utils_short.mexmac.o utils_int.mexmac.o utils_schar.mexmac.o
utils_ushort.mexmac.o utils_uint.mexmac.o utils_float.mexmac.o
utils_double.mexmac.o utils_short_s.mexmac.o utils_int_s.mexmac.o
utils_ushort_s.mexmac.o utils_uint_s.mexmac.o utils_float_s.mexmac.o
utils_double_s.mexmac.o spm_make_lookup.mexmac.o spm_getdata.mexmac.o
spm_vol_access.mexmac.o spm_mapping.mexmac.o
a - utils_uchar.mexmac.o
a - utils_short.mexmac.o
... (long list of files)
_____________________________________________________________
FINISHED
_____________________________________________________________
(3b) I don't think it is also necessary to run the spm_MAKE_osx.m or
any other spm_MAKE_*.m files. That's all I can say...
>Dear SPM experts,
>
>I have attempted to use SPM2 on an Intel Mac OS X Server (with
>Matlab R2007a). We followed the helpful advice from
><http://en.wikibooks.org/wiki/SPM>http://en.wikibooks.org/wiki/SPM
>which we learned about on the SPM list. Additionally, we followed
>directions that were in an SPM list message from Markus Nowak
>Lonsdale. Nevertheless, Matlab generates the following error message:
>
>Initialising SPM..??? Error using ==> spm_list_files at 15
>
>spm_list_files.c not compiled - see spm_MAKE.sh
>
>
>
>Error in ==> spm at 1140
>
> [null,tmp] = spm_list_files(Tdir,'-');
>
>
>
>Error in ==> spm at 768
>
>xTB = spm('TBs');
>
>
>
>Error in ==> spm at 450
>
>Fmenu = spm('CreateMenuWin','off');
>fprintf('.')
>
>
>
>??? Error using ==> delete(gcbf),clear all,spm('FMRI')
>
>Error using ==> spm_list_files at 15
>
>spm_list_files.c not compiled - see spm_MAKE.sh
>
>
>
>I know that spm2 does not include an spm_MAKE.sh file, and I
>understand that this is a compilation error. Unfortunately, I am not
>a programmer. Has anyone created a solution for this problem?
>Would you be able to guide me to a link where I could download what
>is needed?
>
>The context is that I have been running SPM2 successfully on a
>duo-core processor with Windows XP Professional. My series of
>projects are now nearly completed. However, for the last portion of
>the project, my 3.4 GB of RAM is insufficient.
>
>
>
>( That is, I receive an "out of memory" message when trying to
>complete an within-subjects ANOVA with non-sphericity correction. I
>am able to complete the work by dropping only one subject, but I
>would rather include all the data. As a test, I ran the work
>successfully with the first 6 and then only the last 7 subjects, to
>ensure that my files were not corrupted. )
>
> Many thanks for any assistance you can provide.
>
>Kathleen W. Smith
>
>
--
_____________________________________
!!! NOUVELLE ADRESSE MAIL -- NEW E-MAIL ADDRESS !!!
[log in to unmask]
_____________________________________
Help fighting hunger: http://www.hungersite.com
Just click your mouse and sponsors of The Hunger Site donate a
serving of food to a person in need - at no cost to you.
______________________________________
Mauro PESENTI
Research Associate, National Fund for Scientific Research (Belgium)
Unite de Neurosciences Cognitives
Departement de Psychologie
Universite Catholique de Louvain
Place Cardinal Mercier, 10
B-1348 Louvain-la-Neuve
tel.: +32 (0)10 47 88 22
fax: +32 (0)10 47 37 74
E-mail: [log in to unmask]
http://www.nesc.ucl.ac.be
http://www.nesc.ucl.ac.be/mp/pesentiHomepage.htm
|