Veronica S Smith wrote:
> It appears that you have a problem with the precompiled mex-files for SPM2.
> (This solution may work for SPM5, but I have not tried it for that.)
>
> The trick is to recompile the mex files for 64 bit linux machines:
For SPM5, I think it should be as simple as:
make && make install
without any editing of files. Shout if that doesn't work.
Best,
Ged.
>
> First, check the "Makefile" file in the SPM2 directory. You see the description
> below around line 60 in the Makefile:
>
> Linux.A64:
> #The '-fPIC' opition is necessary to allow the linking process to complete.
> # '-march=x86-64' provides generic optimisations for both Opteron and 64bit Xeon.
> # If the code is running on a 64bit Xeon you can change '-march=x86-64' to #'-march=nocona', when running on an Opteron, change it to '-march=opteron'.
> #Also, possibly use '-march=k8' for 64 bit Athlon.
>
> make all SUF=mexa64 CC="gcc -03 -funrol-loops -fPIC -march=x86-64 -mrpath=sse"\
> MEX="mex COPTIMFLAGS=' -03 -funroll-loops -fPIC -march=x86-64 -mrpath=sse'"
>
> You will want to modify the last 2 lines according to the CPU you use.
> Then, what you will specify the option in the shell within the SPM2 directory:
> Instead of typing "make" type
> # make clean.Linux.A64
> # make Linux.A64
>
> Let me know if this works for SPM5 as well as SPM2.
>
> Best,
> Veronica
>
> PS Thanks to Kiyota Nemoto who shared this trick with me.
>
>
>
> On Wed, 17 Jan 2007, Manish Dalwani wrote:
>
>> Dear SPM'ers,
>>
>> I downloaded and compiled SPM2 and SPM5 on a 64 bit linux machine. The
>> matlab version is 7.3 and when I try to open an image using the display
>> button, it gives an error saying the image cannot be resampled. Any clues?
>> Note that the rest of the image information (dimensions, etc) shows up on
>> the graphic page but the image itself.
>>
>> Thanks,
>> Manish
>> PRA
>> Dept. of Psychiatry
>> UCHSC
>>
>>
>> ---------------------------------
>> Food fight? Enjoy some healthy debate
>> in the Yahoo! Answers Food & Drink Q&A.
>
|