Back to the main page.
Bug 503 - compile some of the missing mex files on win32 and win64
Status | CLOSED FIXED |
Reported | 2011-02-22 21:03:00 +0100 |
Modified | 2011-09-14 14:33:49 +0200 |
Product: | FieldTrip |
Component: | core |
Version: | unspecified |
Hardware: | PC |
Operating System: | Mac OS |
Importance: | P1 normal |
Assigned to: | Jörn M. Horschig |
URL: | |
Tags: | |
Depends on: | |
Blocks: | |
See also: |
Robert Oostenveld - 2011-02-22 21:03:22 +0100
the following mex files are missing - @config/private all mex files for windows 32 and 64 - fileio/@uint64/abs.mexglx - rfbevent for windows 32 and 64 (in src and fileio/private) - ft_spike_sub_crossx for all windows and linux (only in src) After compiling the mex files, copying them to the correct locations and svn adding them, you should do svn commit. Subsequently (IMPORTANT) you should do svn propset autosync true src/FILENAME.mexxxx svn propset autosync true fileio/private/FILENAME.mexxxx for each of the new mex files and subsequently again svn commit. From now on, the change of the file at one location (i.e. in src) will automatically be synched with the other location (i.e. one of the private locations). Note that the mex files in @config and in @uint64 should not have the autosync=true option If not sure, ask Robert!
Robert Oostenveld - 2011-03-23 12:31:34 +0100
see http://fieldtrip.fcdonders.nl/development/svn#how_to_maintain_two_copies_of_the_same_file
Jörn M. Horschig - 2011-05-31 09:55:10 +0200
Created attachment 59 error of mexing rfbevent in src/ I only have a Matlab win32 version, I will ask the TG for a 64bit version for my desktop PC. abs.c was already mexed for both platforms ft_spike_sub_crossx should not be autosynced, should it? mexing of rfbevent resulted in an error due to missing files(see attachment)
Jörn M. Horschig - 2011-08-29 13:29:39 +0200
All files mexed, apart from rfbevent I get a similar error as for the w32 mexing when trying to compile rfbevent in w64: >> mex rfbevent.c rfbevent.c rfbevent.c(52) : fatal error C1083: Cannot open include file: 'arpa/inet.h': No such file or directory C:\PROGRA~1\MATLAB\R2010B\BIN\MEX.PL: Error: Compile of 'rfbevent.c' failed. ??? Error using ==> mex at 208 Unable to complete successfully.
Robert Oostenveld - 2011-08-29 14:18:23 +0200
Making this windows compatible (either 32 or 64 bit) is quite some work, and I don't think that anyone is waiting for that. I added the following as explicit error message. #include "platform.h" #include "compiler.h" #if defined(PLATFORM_WIN32) || defined(PLATFORM_WIN64) #error The source code for this mex file has not yet been made compatible with Windows /* the networking include files differ on windows and some of the functions are different */ /* a possibility to fix this would be to look into the fieldtrip buffer c-code, which is both unix and windows compatible */ #endif ----- I believe that it is possible to include a list of include/exclude compilation platforms in ft_compile_mex, please exclude this for w32 and w64 in that file.
Jörn M. Horschig - 2011-08-31 09:46:28 +0200
done&close