[FieldTrip] FW: mex file cannot be found

Juan juangpc at gmail.com
Wed Feb 15 09:35:55 CET 2017


Hi,

Usually libmx.dll and libmex.dll are in the Matlab installation folder.
This is in C:/Program Files/Matlab/(version)/bin/win32 or win64 (depending
on version). I would try either:

- fast and dirty solution: copy both libraries to the folder where you are
running your Matlab code.

- update the windows' path (not matlab's path) to include this folder.

I hope it works.



Juan

On Wed, Feb 15, 2017 at 5:03 AM, Merve Kaptan <mervekaptan5 at gmail.com>
wrote:

> Hi,
>
> We also had the same error, with Suma files. And with diffent FieldTrip
> version  it worked.
>
> Best
> Merve
>
> 15 Şub 2017 01:34 tarihinde "K Jeffrey Eriksen" <eriksenj at ohsu.edu> yazdı:
>
>> Hi again,
>>
>>
>>
>> I followed some general advice from the Matlab site and downloaded
>> “dependency walker” and ran it on (ft_getopt.mexw64). I was informed that I
>> am missing libmx.dll and libmex.dll, per the screenshot below.
>>
>>
>>
>>
>>
>> I am unable to proceed, please advise.
>>
>> -Jeff
>>
>>
>>
>> *From:* K Jeffrey Eriksen
>> *Sent:* Tuesday, February 14, 2017 4:15 PM
>> *To:* 'fieldtrip at science.ru.nl'
>> *Subject:* mex file cannot be found
>>
>>
>>
>> Hi,
>>
>>
>>
>> I just installed FieldTrip r10442 on Win7-64bit, Matlab 2016b. I picked
>> this version because it matches the megconnectome 3.0. I am using EEG, not
>> MEG data, and simply want to use some of the FieldTrip functions.
>>
>>
>>
>> I installed per the FT recommendations regarding addpath and ft_defaults.
>>
>>
>>
>> When I try to use ft_read_mri, it tries to call ft_getopt, and fails as
>> follows:
>>
>>
>>
>> ************************************************************
>> **********************
>>
>> path_data = 'J:\Projects\HCP\HCP_A01';
>>
>> cd (path_data)
>>
>> filename = 'T1w_acpc_dc_restore.nii'
>>
>> [mri]=ft_read_mri(filename);
>>
>>
>>
>> Invalid MEX-file
>>
>> 'J:\Projects\HCP_MEG\fieldtrip-r10442\fileio\private\ft_getopt.mexw64':
>>
>> The specified procedure could not be found..
>>
>>
>>
>> Error in ft_read_mri (line 79)
>>
>> mriformat = ft_getopt(varargin, 'dataformat');
>>
>>
>>
>> Error in try_ft_read_mri (line 7)
>>
>> [mri]=ft_read_mri(filename);
>>
>> ************************************************************
>> *********************
>>
>>
>>
>> I searched for this error but did not come up with anything specific on
>> general Matlab help. I can see that the ft_getopt.mexw64 file is in the
>> correct folder, so do not understand why Matlab cannot find it.
>>
>>
>>
>> -Jeff
>>
>>
>>
>> _______________________________________________
>> fieldtrip mailing list
>> fieldtrip at donders.ru.nl
>> https://mailman.science.ru.nl/mailman/listinfo/fieldtrip
>>
>
> _______________________________________________
> fieldtrip mailing list
> fieldtrip at donders.ru.nl
> https://mailman.science.ru.nl/mailman/listinfo/fieldtrip
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.science.ru.nl/pipermail/fieldtrip/attachments/20170215/36e324d6/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.png
Type: image/png
Size: 136652 bytes
Desc: not available
URL: <http://mailman.science.ru.nl/pipermail/fieldtrip/attachments/20170215/36e324d6/attachment-0001.png>


More information about the fieldtrip mailing list