[FieldTrip] Erros using peer and peercompile

Jan Freyberg jan.freyberg at gmail.com
Wed Feb 15 16:20:08 CET 2017


Hi fieldtrippers,

I was trying to get peer working on a 64-bit linux installation.

I downloaded the peer zip file from the modules folder on the FTP server,
added it to my path, and tried running peerinfo.

I was expecting that the pre-compiled mex files would work, but this
yielded an error:

>>peerinfo
Invalid MEX-file
'/home/k1513504/Documents/MATLAB/toolbox/peer-20170213/private/peer.mexa64':
/home/k1513504/Documents/MATLAB/toolbox/peer-20170213/private/peer.mexa64:
undefined symbol: mxSerialize.

Error in peerinfo (line 31)
info = peer('peerinfo');

I then thought I would run peercompile to see if this would generate the
necessary file, but received this error:

Compiling and linking MEX file:
mex -outdir ../private -I. -g -DSYSLOG=3 -g peer.c  announce.o discover.o
expire.o extern.o peerinit.o util.o udsserver.o tcpserver.o tcpsocket.o
security.o localhost.o smartshare.o smartmem.o smartcpu.o connect.o
Building with 'gcc'.
Error using mex
/tmp/mex_6036383241028850_9086/peer.o: In function
`mexFunction':
/home/k1513504/Documents/MATLAB/toolbox/peer-20170213/src/peer.c:1094:
undefined reference to `mxSerialize'
/home/k1513504/Documents/MATLAB/toolbox/peer-20170213/src/peer.c:1099:
undefined reference to `mxSerialize'
/home/k1513504/Documents/MATLAB/toolbox/peer-20170213/src/peer.c:1266:
undefined reference to `mxDeserialize'
/home/k1513504/Documents/MATLAB/toolbox/peer-20170213/src/peer.c:1267:
undefined reference to `mxDeserialize'
collect2: ld returned 1 exit status

Error in peercompile (line 147)
eval(cmd);

I should note that other mex files (before the above) were compiled OK. The
full output of peercompile is here
<https://dl.dropboxusercontent.com/u/42897873/peer-error.txt>.

Is there anything else I need to do to get set up? I couldn't quite figure
out which steps to take for peer to work.

Thanks for any help,
Jan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.science.ru.nl/pipermail/fieldtrip/attachments/20170215/0d898f26/attachment-0001.html>


More information about the fieldtrip mailing list