[FieldTrip] buffer.mexw64 not found

Oostenveld, R. (Robert) robert.oostenveld at fcdonders.ru.nl
Mon Oct 6 17:56:36 CEST 2014


Hi Beth,

The buffer.mexw64 file is present in the fieldtrip release. I suspect your initial problem is that a DLL is not being found, i.e. MATLAB loads the mex file as a dynamic link library (dll), and in that process there are some other dlls that also have to be loaded. You could diagnose this further with http://www.dependencywalker.com and the solution might be as simple as getting the correct MSVC dll (which is installed by default on some Windows versions, but not on others). Recompiling the buffer mex file on windows (esp 64) bit is not trivial, but you can find some hints onhttp://fieldtrip.fcdonders.nl/development/realtime/reference_implementation#compiling_the_code

best
Robert


On 06 Oct 2014, at 15:17, Elizabeth Anne Bock, Ms <elizabeth.bock at mcgill.ca<mailto:elizabeth.bock at mcgill.ca>> wrote:

Thanks, Jorn.  I am now trying to compile the buffer in Matlab 2014a and I get the following error.  It seems that some of the include files listed do not exist...

compile('vc')
Compiling library functions in util.c ...
Building with 'Microsoft Windows SDK 7.1 (C)'.
Error using mex
util.c
c:\users\mcgill\documents\matlab\fieldtrip-20140929\realtime\src\buffer\src\platform_includes.h(26) : fatal
error C1083: Cannot open include file: 'win32/gettimeofday.h': No such file or directory



Error in compile (line 138)
eval(cmd);
------------------------------------------------------------------------------------------

Elizabeth Bock / MEG System Engineer

McConnell Brain Imaging Centre / Montreal Neurological Institute

McGill University / 3801 University St. / Montreal, QC H3A 2B4


MEG Lab: 514.398.6056

Mobile: 514.718.6342

________________________________________
From: fieldtrip-bounces at science.ru.nl<mailto:fieldtrip-bounces at science.ru.nl> [fieldtrip-bounces at science.ru.nl<mailto:fieldtrip-bounces at science.ru.nl>] on behalf of "Jörn M. Horschig" [jm.horschig at donders.ru.nl<mailto:jm.horschig at donders.ru.nl>]
Sent: Friday, October 03, 2014 5:25 AM
To: FieldTrip discussion list
Subject: Re: [FieldTrip] buffer.mexw64 not found

Hi Beth,

are ou sure the buffer.mexw64 is located in your path? You can check by
typing "which buffer" in the matlab command window. If so, then you can
try to re-mex the file yourself (or redownload Fieldtrip, maybe the file
was just corrupted in your copy?). Mexing the file in a matlab 64bit
environment is a bit cumbersome, as you need to install some external
compiler. For more information, please see here:
http://fieldtrip.fcdonders.nl/development/guidelines/code#windows_64_bit
and here:
http://www.mathworks.com/support/compilers/R2014b/index.html;jsessionid=55154776089981772f81c3d47c7f?nocookie=true

After downloading and installer the compiler, you need to locate the
buffer.c file (probably in the fieldtrip/src directory) and then type
"mex buffer.c" in the matlab command window. Hope you can take it from
here ;)

Best,
Jörn

On 10/2/2014 2:24 PM, Elizabeth Anne Bock, Ms wrote:
I am trying to use the realtime buffer on windows 7 running Matlab
2014a and I get the following error:
Invalid MEX-file
'C:\Users\McGill\Documents\MATLAB\fieldtrip-20140929\realtime\src\buffer\matlab\buffer.mexw64':
The
specified module could not be found.

It works fine on my other windows 7 workstation running Matlab 2012b.
Please advise.
Beth

------------------------------------------------------------------------------------------

Elizabeth Bock / MEG System Engineer

McConnell Brain Imaging Centre / Montreal Neurological Institute

McGill University / 3801 University St. / Montreal, QC H3A 2B4


MEG Lab: 514.398.6056

Mobile: 514.718.6342



_______________________________________________
fieldtrip mailing list
fieldtrip at donders.ru.nl
http://mailman.science.ru.nl/mailman/listinfo/fieldtrip


--
Jörn M. Horschig
PhD Student
Donders Institute for Brain, Cognition and Behaviour
Centre for Cognitive Neuroimaging
Radboud University Nijmegen
Neuronal Oscillations Group
FieldTrip Development Team

P.O. Box 9101
NL-6500 HB Nijmegen
The Netherlands

Contact:
E-Mail: jm.horschig at donders.ru.nl
Tel:    +31-(0)24-36-68493
Web: http://www.ru.nl/donders

Visiting address:
Trigon, room 2.30
Kapittelweg 29
NL-6525 EN Nijmegen
The Netherlands

_______________________________________________
fieldtrip mailing list
fieldtrip at donders.ru.nl
http://mailman.science.ru.nl/mailman/listinfo/fieldtrip

_______________________________________________
fieldtrip mailing list
fieldtrip at donders.ru.nl
http://mailman.science.ru.nl/mailman/listinfo/fieldtrip





More information about the fieldtrip mailing list