You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The macOS installation instructions, including the instructions to compile the Qt-based applications, should be updated for Apple Silicon.
Here are my suggestions:
When installing gcc with brew, the brew gcc is named 'gcc-[version number]'. For example, installing gcc13 with brew yields gcc-13, which is the compiler name that should be passed to the configure script (and not just plain gcc).
To build the Qt apps, the following extra steps are needed (you need to replace the version number within those paths with the correct version installed with brew):
Add the following to the .zshrc file (I think zsh is the default shell on new Macs... unless you're doing migration assistant from an older Mac, then it keeps your old shell)
Add the following line to /opt/homebrew/Cellar/qt@5/5.15.10/mkspecs/common/macx.conf:
QMAKE_APPLE_DEVICE_ARCHS = arm64
Specify the correct compilers in /opt/homebrew/Cellar/qt@5/5.15.10/mkspecs/common/g++-base.conf (again, this needs to be adjusted with the version installed with brew):
This has been tested with macOS Sonoma (14.1), gcc 13, and qt 5.15.10, on an M2 MacBook Air.
One more thing: brew has changed where they install things semi-recently, so if you've had brew a long time on your Mac or if you migrated from an older Mac, it might be a good idea to remove brew completely and install from scratch before starting this process.
The text was updated successfully, but these errors were encountered:
Also, also: the current instructions for QT mention: "(Note that qmake uses its own compiler configuration, located inside the $QTDIR/mkspecs directory.)"
However, that sounds just like an aside and will not mean anything to an inexperienced user.
In my experience, using mismatched compilers between EGSnrc and the QT apps leads to issues when linking or running the applications. The QT compilers should match what was used to build EGSnrc.
Thanks for these instructions, that's very helpful!
I have also found that if you're compiling egs_view yourself, the compilers need to match those used to compile EGSnrc. Which essentially ties you to using those bundled with QT.
The macOS installation instructions, including the instructions to compile the Qt-based applications, should be updated for Apple Silicon.
Here are my suggestions:
gcc-13
, which is the compiler name that should be passed to the configure script (and not just plaingcc
).To build the Qt apps, the following extra steps are needed (you need to replace the version number within those paths with the correct version installed with brew):
.zshrc
file (I think zsh is the default shell on new Macs... unless you're doing migration assistant from an older Mac, then it keeps your old shell)/opt/homebrew/Cellar/qt@5/5.15.10/mkspecs/common/macx.conf
:QMAKE_APPLE_DEVICE_ARCHS = arm64
/opt/homebrew/Cellar/qt@5/5.15.10/mkspecs/common/g++-base.conf
(again, this needs to be adjusted with the version installed with brew):This has been tested with macOS Sonoma (14.1), gcc 13, and qt 5.15.10, on an M2 MacBook Air.
One more thing: brew has changed where they install things semi-recently, so if you've had brew a long time on your Mac or if you migrated from an older Mac, it might be a good idea to remove brew completely and install from scratch before starting this process.
The text was updated successfully, but these errors were encountered: