[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:

Invalid MEX-file
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
undefined reference to `mxSerialize'
undefined reference to `mxSerialize'
undefined reference to `mxDeserialize'
undefined reference to `mxDeserialize'
collect2: ld returned 1 exit status

Error in peercompile (line 147)

I should note that other mex files (before the above) were compiled OK. The
full output of peercompile is here

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,
-------------- 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