Back to the main page.

Bug 2098 - write FAQ on dmlt mex file problems

Status CLOSED FIXED
Reported 2013-04-09 15:15:00 +0200
Modified 2019-08-10 12:03:04 +0200
Product: FieldTrip
Component: multivariate
Version: unspecified
Hardware: PC
Operating System: Mac OS
Importance: P3 normal
Assigned to: Ali Bahramisharif
URL:
Tags:
Depends on:
Blocks:
See also:

Robert Oostenveld - 2013-04-09 15:15:41 +0200

We had some problems to get the dmlt toolbox running on off-the-shelf windows desktop computers with matlab2011b. Thgis was solved by the DCCN TG, and Frank wrote: Het volgende moet geinstalleerd worden: C++ redistributable 2010 x64 Als je dit bij Google intypt is het de eerste link. http://www.microsoft.com/en-us/download/details.aspx?id=14632 This needs to be documented as frequently asked question, i.e. "How do I solve a a problem with the xxx.mexw64 mecx file" At this moment I don't know to which mex file it pertains, but it should be possible to find that back in the email exchange with JM.


Ali Bahramisharif - 2013-04-23 13:54:52 +0200

http://fieldtrip.fcdonders.nl/faq/how_can_i_compile_the_mex_files_on_64_bit_windows


Robert Oostenveld - 2013-04-23 17:50:25 +0200

so as I understand it, the DMLT mex files are partially computed with MSVC C++ 2008 and partially with 2010, and require both the msvcr90.dll (for 2008) and a similar dll for 2010 compiled mex files. Is this right? What is the name of the dll that is needed when using the 2010 compiler and where to get it?


Robert Oostenveld - 2013-04-23 17:52:48 +0200

Hi Ali, Could you write a FAQ on what to do when DMLT mex files give a problem? As I understand it, recompiling is not needed, only installing the msvcr90.dll file (for 2008) and/or the msvcrXXX.dll file (for 2010) are needed. Many people will not be able to recompile, as they do not have administrative rights to install software (such as the free MSVC 2008 or 2010 editions) on their windows computer. It would be nice if those people are still able to use DMLT.


Ali Bahramisharif - 2013-04-23 20:16:07 +0200

Marek told me that they have installed the 64bit c++ redist of Microsoft. And I noticed that the FAQ associated to the mex problem for windows 64 bit is already there. So I just added a second part to it other than making another FAQ.


Robert Oostenveld - 2013-04-23 21:24:56 +0200

(In reply to comment #4) > Marek told me that they have installed the 64bit c++ redist of Microsoft. yes, they did so on the computers used in the course. those were afterwards (i.e. after the toolkit) re-imaged with a linux installation to be used in the cluster. So it was a temporary fix only. The FAQ is meant for external users, not for those at the Donders (DCCN and DCC). At the Donders we use linux most of the time anyway, but outside Nijmegen there are many non-linux users. If the mex files for windows users don't work out of the box, we'd better remove them and then point to the compile instructions. Shipping fieldtrip+dmlt with broken mex files that require recompilation does not meet my expectations. @Marcel: what do you suggest? Document how to use these specific mex files or remove the mex files from svn and tell people that they have to recompile them?


Ali Bahramisharif - 2013-05-13 21:36:58 +0200

The problem was with a function called 'tprod' which needed to be compiled in 64bit matlab in 64bit windows. The compiled version (trod.mexw64) is now copied in the corresponding folder: dmlt/external/tprod/


Robert Oostenveld - 2019-08-10 12:03:04 +0200

This closes a whole series of bugs that have been resolved (either FIXED/WONTFIX/INVALID) for quite some time. If you disagree, please file a new issue describing the issue on https://github.com/fieldtrip/fieldtrip/issues.