hi,
we finally compiled the files using visual studio 2008. now it works
on windows vista 64-bit. see the attachement for the mex-files
best,
jakob
On Mon, Jul 6, 2009 at 10:06 PM, Guillaume
Flandin<[log in to unmask]> wrote:
> Dear Jakob,
>
>> Yes, the command you posted terminated successfully. we still got a
>> 32-bit workstation, so i'll just do the steps that don't work on mine
>> on that one.
>
> that's an option and a pragmatic solution but if you have time and could
> try to install Visual 2005 Redistributable Package (x64)
> http://www.microsoft.com/downloads/details.aspx?familyid=90548130-4468-4BBC-9673-D6ACABD5D13B
> and try again on that platform, that would be useful.
>
> Best regards,
> Guillaume.
>
>> thanks for your help, have a nice weekend
>> jakob
>>
>> On Fri, Jul 3, 2009 at 1:44 PM, Guillaume
>> Flandin<[log in to unmask]> wrote:
>>> Dear Jakob,
>>>
>>> you can try, for example, to run these lines:
>>> v=spm_read_vols(spm_vol(fullfile(spm('Dir'),'canonical','avg305T1.nii')));
>>> [l,n]=spm_bwlabel(double(v>0.5),26);
>>> but I've got the feeling that they will work...
>>>
>>> Recompiling the MEX files on Windows64 is not that easy. I'm wondering
>>> if the problem is not that SPM8 MEX files have been compiled on Matlab
>>> 7.4 with Visual Studio 2005, and you've got a more recent Matlab version
>>> that, I think, by default is linked with VS2008. Could you try to
>>> install this:
>>> http://www.microsoft.com/downloads/details.aspx?familyid=90548130-4468-4BBC-9673-D6ACABD5D13B
>>>
>>> Best regards,
>>> Guillaume.
>>>
>>>
>>> Jakob Scherer wrote:
>>>> Dear Guillaume,
>>>>
>>>> in order to check if the problem occurs with other *.mexw64 files,
>>>> could you post me a spm command that would call another mexw64?
>>>> meanwhile i might check out how to recompile mex files and try that on
>>>> my platform,
>>>> thanks
>>>>
>>>> jakob
>>>>
>>>> On Thu, Jul 2, 2009 at 7:31 PM, Guillaume
>>>> Flandin<[log in to unmask]> wrote:
>>>>> Dear Jakob,
>>>>>
>>>>> do you still have this problem with the MEX file?
>>>>> I could find a related discussion here:
>>>>> http://www.mathworks.ch/matlabcentral/newsreader/view_thread/241620
>>>>> Does it only occur with mat2file.mexw64?
>>>>>
>>>>> Best regards,
>>>>> Guillaume.
>>>>>
>>>>>
>>>>> Jakob Scherer wrote:
>>>>>> dear all,
>>>>>> thanks for the rapid help, meanwhile i tested some things
>>>>>>
>>>>>> concerning the 64-bit windows workstation:
>>>>>> -Windows Vista Ultimate, SP2
>>>>>> -Matlab 7.8.0 (R2009a)
>>>>>>
>>>>>> then i tried to run it on a 32-bit windows (XP SP3, Matlab 7.6.0) as
>>>>>> well, as you suggested. There were no problems at the .mex file stage,
>>>>>> however the code aborted later on. i therefore reopened the "spm8
>>>>>> convert epoched eeglab file" thread, if that's ok (as that problem
>>>>>> does not seem to be a platform specific anymore).
>>>>>>
>>>>>> On Fri, Jun 19, 2009 at 4:47 PM, Vladimir
>>>>>> Litvak<[log in to unmask]> wrote:
>>>>>>> Dear Jakob,
>>>>>>>
>>>>>>> On Fri, Jun 19, 2009 at 3:08 PM, Jakob Scherer<[log in to unmask]> wrote:
>>>>>>>> hi,
>>>>>>>>
>>>>>>>> it seems to me that in
>>>>>>>>
>>>>>>>> spm_cfg_eeg_convert.m, line 37 should read:
>>>>>>>> usetrials.val = {1}; % instead of usetrials.val = {0},
>>>>>>>>
>>>>>>> I'll correct that. Thanks.
>>>>>>>
>>>>>>>> Then, having corrected that, i get the following error:
>>>>>>>>
>>>>>>>> SPM8: spm_eeg_channelselection (v2866) 15:22:55 - 19/06/2009
>>>>>>>> ========================================================================
>>>>>>>> Failed 'M/EEG Conversion'
>>>>>>>> Invalid MEX-file
>>>>>>>> 'P:\Science\Matlab\spm8\@file_array\private\mat2file.mexw64': Invalid
>>>>>>>> access to memory location.
>>>>>>>>
>>>>>>>> .
>>>>>>>> In file "P:\Science\Matlab\spm8\@file_array\subsasgn.m" (v1355),
>>>>>>>> function "subfun" at line 132.
>>>>>>>> In file "P:\Science\Matlab\spm8\@file_array\subsasgn.m" (v1355),
>>>>>>>> function "subsasgn" at line 73.
>>>>>>>> In file "P:\Science\Matlab\spm8\spm_eeg_convert.m" (v3088), function
>>>>>>>> "spm_eeg_convert" at line 346.
>>>>>>>> In file "P:\Science\Matlab\spm8\config\spm_cfg_eeg_convert.m" (v3059),
>>>>>>>> function "eeg_convert" at line 231.
>>>>>>>>
>>>>>>> This sounds like a problem with mex files on your particular platform
>>>>>>> rather than something having to do with EEG conversion. Guillaume
>>>>>>> Flandin should be able to help you with that, but he's presently at
>>>>>>> the HBM meeting and I don't know when he'll be able to answer you
>>>>>>> (hopefully within a week or so). In the meantime, if you know how to
>>>>>>> recompile the MEX files, you can try that. Otherwise try working on a
>>>>>>> 32-bit Windows or wait for Guillaume's help. Perhaps to facilitate
>>>>>>> things you can write on the list your exact OS and Matlab versions.
>>>>>>>
>>>>>>> Best,
>>>>>>>
>>>>>>> Vladimir
>>>
>>> --
>>> Guillaume Flandin, PhD
>>> Wellcome Trust Centre for Neuroimaging
>>> University College London
>>> 12 Queen Square
>>> London WC1N 3BG
>>>
>>
>>
>
>
> --
> Guillaume Flandin, PhD
> Wellcome Trust Centre for Neuroimaging
> University College London
> 12 Queen Square
> London WC1N 3BG
>
|