general-discussion > ERROR with matlab 2008b and minc tool
Showing 1-2 of 2 posts
Display:
Results per page:
May 11, 2011  04:05 PM | stephan grimault
ERROR with matlab 2008b and minc tool
hi
since now i used matlab2007a and i was able to launch minc command with matlab
i switch to a matlab 2008b and now i have error like:


/usr/local/bic/bin/rawtominc: symbol lookup error: /usr/lib/libminc2.so.1: undefined symbol: ncerr
mincresample: symbol lookup error: /usr/lib/libminc2.so.1: undefined symbol: ncerr

do you have a solution for that ?

thanks in advance

SG
May 11, 2011  05:05 PM | Pierre Bellec
RE: ERROR with matlab 2008b and minc tool
Hi St├ęphane,

The problem comes from an incompatibility between Matlab and the MINC tools. Matlab is forcing the use of its own (rather old) version of NetCDF, and you must be using a version of MINC that has been compiled dynamically. When the MINC tools are called from Matlab, they're using an outdated version of Netcf and they crash. A (hack) fix is to replace the Netcdf libraries of Matlab by a symlink to /usr/local/lib/netcdf.so.4 . Unfortunately I don't have any trace of the exact file locations, but that shouldn't be too hard to find.

You will find more details in the following thread :
http://www.bic.mni.mcgill.ca/pipermail/minc-users/2010-February/002665.html

I hope that you will be able to solve your issue. Best,

Pierre