> The file spm_MAKE.sh includes the line
> $cmex5 -c spm_mapping.c
> which is supposed to produce spm_mapping.o
>
> Is it possible that it produces a file with a different name? Are there
> any files (other than spm_mapping.c) that begin with "spm_mapping."?
>
> The alternative is to replace this line by something like:
> gcc -c -o spm_mapping.o spm_mapping.c
> -I/usr/local/matlab/extern/include
> replacing /usr/local/matlab with wherever you have installed matlab5.x
I un-tared spm99b.tar package, applied all updates, installed libc5
libraries as suggested @
http://www.mathworks.com/support/solutions/v5/11129.shtml, and ran
spm_MAKE.sh.
This time, I could compile spm_mapping.c without any error. But it claimed:
---
Compiling volume utilities...
Adding to archive library spm_vol_utils.a...
a - utils_uchar.o
a - utils_short.o
a - utils_int.o
a - utils_float.o
a - utils_double.o
a - utils_schar.o
a - utils_ushort.o
a - utils_uint.o
a - utils_short_s.o
a - utils_int_s.o
a - utils_float_s.o
a - utils_double_s.o
a - utils_ushort_s.o
a - utils_uint_s.o
a - spm_vol_access.o
a - spm_make_lookup.o
a - spm_getdata.o
a - spm_mapping.o
Compiling mex files...
spm_add.c: In function `mexFunction':
spm_add.c:107: warning: decimal constant is so large that it is unsigned
Done.
----
I also edited spm_MAKE.sh options as in
http://www.mailbase.ac.uk/lists/spm/1999-09/0030.html. Resulted in
---
Compiling volume utilities...
spm_vol_utils.c: In function `RESAMPLE_0':
spm_vol_utils.c:252: parse error before `IMAGE_DTYPE'
spm_vol_utils.c:263: subscripted value is neither array nor pointer
spm_vol_utils.c: In function `RESAMPLE_1':
spm_vol_utils.c:273: parse error before `IMAGE_DTYPE'
spm_vol_utils.c:301: subscripted value is neither array nor pointer
spm_vol_utils.c:301: subscripted value is neither array nor pointer
spm_vol_utils.c:302: subscripted value is neither array nor pointer
spm_vol_utils.c:302: subscripted value is neither array nor pointer
spm_vol_utils.c:303: subscripted value is neither array nor pointer
spm_vol_utils.c:303: subscripted value is neither array nor pointer
spm_vol_utils.c:304: subscripted value is neither array nor pointer
spm_vol_utils.c:304: subscripted value is neither array nor pointer
spm_vol_utils.c: In function `RESAMPLE_D_1':
spm_vol_utils.c:319: parse error before `IMAGE_DTYPE'
spm_vol_utils.c:346: subscripted value is neither array nor pointer
spm_vol_utils.c:346: subscripted value is neither array nor pointer
spm_vol_utils.c:347: subscripted value is neither array nor pointer
spm_vol_utils.c:347: subscripted value is neither array nor pointer
spm_vol_utils.c:348: subscripted value is neither array nor pointer
spm_vol_utils.c:348: subscripted value is neither array nor pointer
spm_vol_utils.c:349: subscripted value is neither array nor pointer
spm_vol_utils.c:349: subscripted value is neither array nor pointer
spm_vol_utils.c: In function `RESAMPLE_POLY':
spm_vol_utils.c:395: parse error before `IMAGE_DTYPE'
spm_vol_utils.c:418: `IMAGE_DTYPE' undeclared (first use in this function)
.....
---
I seem to know this is FAQ, but could not find any solution...
Regards,
--sudo
-----------------------------------------------
Yasuhiko Sudo
Division of Advanced Technology for Medical Imaging
National Institute of Radiological Sciences
FAX: +81-43-253-0396 E-Mail: [log in to unmask]
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|