Try setting up mex following these instructions
http://www.mathworks.com/support/tech-notes/1600/1605.html#setup
On Wed, Mar 28, 2012 at 2:51 PM, Rodrigo Perea <[log in to unmask]> wrote:
> Hello,
> I am having problems correctly installing spm8 and compiling it as it shows in: http://en.wikibooks.org/wiki/SPM/Installation_on_64bit_Mac_OS_%28Intel%29
>
> After downloading Xcode4 and the make command tools (Preferences --> Downloads --> Command Line Tools
>
> I tried to use make. However when I tried make && make install, I got an error that gcc-4.2 could be found. So I tried thought of using gcc instead and after I go to /usr/bin/ I created a symbolic link (ln -s gcc gcc-4.2).
>
>
>
>
> Again I got the following error with the make command:
>
>
>
>
>
>
> /usr/local/spm8/src$ gcc --version
> i686-apple-darwin11-llvm-gcc-4.2 (GCC) 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2336.9.00)
> Copyright (C) 2007 Free Software Foundation, Inc.
> This is free software; see the source for copying conditions. There is NO
> warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
>
> rperea@kum-rhonea2:/usr/local/spm8/src$ make && make install
> _____________________________________________________________
>
> Unix compilation (MacOS X, Intel 64 bit)
> _____________________________________________________________
>
> mex -O -c spm_vol_utils.c -DSPM_UNSIGNED_CHAR
> spm_vol_utils.c:240:18: error: math.h: No such file or directory
> spm_vol_utils.c:241:20: error: stdlib.h: No such file or directory
> spm_vol_utils.c: In function ‘resample_uchar_0’:
> spm_vol_utils.c:258: warning: incompatible implicit declaration of built-in function ‘floor’
> spm_vol_utils.c: In function ‘resample_uchar_1’:
> spm_vol_utils.c:291: warning: incompatible implicit declaration of built-in function ‘floor’
> spm_vol_utils.c: In function ‘resample_d_uchar_1’:
> spm_vol_utils.c:336: warning: incompatible implicit declaration of built-in function ‘floor’
> spm_vol_utils.c: In function ‘slice_uchar_0’:
> spm_vol_utils.c:536: warning: incompatible implicit declaration of built-in function ‘floor’
> spm_vol_utils.c: In function ‘slice_uchar_1’:
> spm_vol_utils.c:591: warning: incompatible implicit declaration of built-in function ‘floor’
> spm_vol_utils.c: In function ‘slice_uchar’:
> spm_vol_utils.c:720: warning: incompatible implicit declaration of built-in function ‘fabs’
> spm_vol_utils.c:720: warning: incompatible implicit declaration of built-in function ‘floor’
>
> mex: compile of ' "spm_vol_utils.c"' failed.
>
> make: *** [utils_uchar.mexmaci64.o] Error 1
>
>
>
> Any help???
>
> In matlab when I tried to run spm preprocessing steps I get the following error:
>
> Warning: Default string does not match any button string name.
> Warning: Run spm_jobman('initcfg'); beforehand
>> In spm_jobman at 107
> In Dartel_Step2_PereaReviewed_v1_1 at 233
>
>
> ------------------------------------------------------------------------
> Running job #1
> ------------------------------------------------------------------------
> Running 'Run DARTEL (create Templates)'
> Continuing registration from pre-existing parameters (/Users/rperea/Desktop/Test_WMDartel/u_rc2H_1_2000_Template_WM_withcoreg_all.nii)
> Failed 'Run DARTEL (create Templates)'
> Error using dartel3 (line 206)
> Not compiled for MACI64 in MATLAB 7.14.0.739 (R2012a) (see make.m)
>
> In file "/usr/local/spm8/toolbox/DARTEL/dartel3.m" (v1359), function "dartel3" at line 206.
> In file "/usr/local/spm8/toolbox/DARTEL/spm_dartel_template.m" (v4064), function "spm_dartel_template" at line 66.
>
> No executable modules, but still unresolved dependencies or incomplete module inputs.
> The following modules did not run:
> Failed: Run DARTEL (create Templates)
> Skipped: Normalise to MNI Space
>
> Error using cfg_util (line 835)
> Job execution failed. The full log of this run can be found in MATLAB command window, starting
> with the lines (look for the line showing the exact #job as displayed in this error message)
> ------------------
> Running job #1
> ------------------
>
>
> Error in spm_jobman (line 217)
>
>
> Error in Dartel_Step2_PereaReviewed_v1_1 (line 233)
>
|