trentool / TRENTOOL3

Open-Source MATLAB toolbox for transfer entropy estimation
http://trentool.github.io/TRENTOOL3/
GNU General Public License v3.0
58 stars 26 forks source link

tstool nn_prepare.mexmaci64 "Library not found" #31

Closed phullett closed 5 years ago

phullett commented 5 years ago

Would it be possible to provide the original nn_prepare.c, nn_search.c, and range_search.c files used to make the mex files for 64bit Mac (I cannot find these files on TSTOOL downloads and they did not come with TRENTOOL; only the mex files are provided). The current mex file for nn_prepare returns the following error (below). I think it is because mex file compatibility is sometimes an issue across platforms and across Matlab versions unless the the mex file is generated locally.

"Invalid MEX-file '/Users/pcnn/Documents/MATLAB/work2/TRENTOOL3-master/tstool_functions/mex_mac/mex64/nn_prepare.mexmaci64': dlopen(/Users/pcnn/Documents/MATLAB/work2/TRENTOOL3-master/tstool_functions/mex_mac/mex64/nn_prepare.mexmaci64, 6): Library not loaded: @loader_path/libmex.dylib Referenced from: /Users/pcnn/Documents/MATLAB/work2/TRENTOOL3-master/tstool_functions/mex_mac/mex64/nn_prepare.mexmaci64 Reason: image not found."

Thanks!

mwibral commented 5 years ago

Dear Phullet,

I fear that those source files are from the TSTool project. At the moment we only have those mex files. However, you may have to look for Fortran instead of c-files, if I remember correctly.

Best,

Michael

Btw: If you're familiar with python, you may also want to have a look at IDtxl (https://github.com/pwollstadt/IDTxl) , TRENTOOL's successor (removes the eed for MATLAb licenses).

On 14.05.19 03:10, phullett wrote:

Would it be possible to provide the original nn_prepare.c, nn_search.c, and range_earch.c files used to make the mex files for 64bit Mac (I cannot find these on TSTOOL downloads). The current mex file for nn_prepar returns the following error. I think it is because mex file compatibility is sometimes an issue across platforms and across Matlab versions unless the the mex file is generated locally.

"Invalid MEX-file '/Users/pcnn/Documents/MATLAB/work2/TRENTOOL3-master/tstool_functions/mex_mac/mex64/nn_prepare.mexmaci64': dlopen(/Users/pcnn/Documents/MATLAB/work2/TRENTOOL3-master/tstool_functions/mex_mac/mex64/nn_prepare.mexmaci64, 6): Library not loaded: @loader_path/libmex.dylib Referenced from: /Users/pcnn/Documents/MATLAB/work2/TRENTOOL3-master/tstool_functions/mex_mac/mex64/nn_prepare.mexmaci64 Reason: image not found."

Thanks!

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/trentool/TRENTOOL3/issues/31?email_source=notifications&email_token=ACFJQGUNEEAN56WIDUEMXFLPVIGPXA5CNFSM4HMUSWW2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4GTRZRSA, or mute the thread https://github.com/notifications/unsubscribe-auth/ACFJQGQ4NTWFW2HYADCSFEDPVIGPXANCNFSM4HMUSWWQ.

phullett commented 5 years ago

Thank you for the quick reply! They are from the TSTool project-- I will likely use IDtxl tool instead. Also, thank you for this TE resource!

Best,

Patrick

pwollstadt commented 5 years ago

Hi all, I will close this issue. Feel free to reopen if necessary.