Skip to content
Brian Wandell edited this page Aug 29, 2024 · 8 revisions

mrMesh has a client and server component. The pnet program communicates between the client and server. The pnet file needs to be compiled to run on your platform (intel or Apple silicon or whatever you are using).

The location of the files that need to be compiled are in the mrMesh subdirectory of vistasoft. They are specifically in the tcpToolbox directory. A number of these have already been compiled, and your system may have a compiled file there.

The instructions for the mex compile (Matlab) are in the header of pnet.c. Here is a look

image

On August 27, 2024 Wandell used mex -O pnet.c to generate the mex file for Apple silicon. It generated 9 warnings, but did complete.

Warning from the compile

We then did an install.

brew update

brew install wine-stable

An issue with wine is that it requires Rosetta 2 to be installed. I already had it installed, and we think many people do. To check, we ran this:

arch -x86_64 zsh

It returned and that required Rosetta.

Then, I invoked

wine mrMeshSrv.exe

I had to go to Settings, Privacy and Security, to allow wine to run. I did, and then the mrMeshSrv window appeared on my Mac.

Clone this wiki locally