Hello,
I am currently running OpenTPS on a Mac with Apple Silicon (M1, arm64). The OpenTPS installation itself works correctly, and the GUI launches without issues. However, I am encountering a problem when running MCsquare dose calculations.
The executable provided in the repository (MCsquare_mac) is a Mach-O x86_64 binary, while my system is arm64 (Apple Silicon). When OpenTPS tries to run MCsquare, it fails with the following error:
Illegal instruction: 4
I also tested running it explicitly through Rosetta using:
arch -x86_64 ./MCsquare config.txt
Rosetta is installed and active, but the same Illegal instruction error occurs.
Additionally, I checked the OpenTPS repository and could not find the MCsquare source code (no CMakeLists.txt or build system for MCsquare), only the precompiled binaries.
Could you please clarify:
-
Is there a native build of MCsquare for Apple Silicon (arm64)?
-
If not, is there a recommended way to compile MCsquare from source on macOS?
-
Alternatively, is there a more compatible x86_64 build that works with Rosetta?
Any guidance would be greatly appreciated.
Thank you very much for your work on OpenTPS.
Best regards,
Alejandro Vilar