-
Notifications
You must be signed in to change notification settings - Fork 319
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Compile on Mac OS Monterey12.1 (Mac Mini M1) #313
Comments
Hello, thanks for the work. This solution may have worked before gcc 12 release, but we need now to precise gcc@11 when installing. I also made more flexible the variable (to prevent incompatibility to old intel macs). I made a PR: #393. |
Any ideas on how to update to Ventura on an M3? gcc is at 13 now. Are the opengl lib paths the same? |
There's no utility find_program as used in CmakeLists.txt. This documentation is very outdated. |
|
MacBook Pro M1 I followed the original instructions outlined by @ouening and it sent me into an infinite install loop. |
I am closing some old build related issues since most likely they are not relevant any more. |
OS: Mac OS Monterey 12.1
Computer: Mac mini (M1, 2020)
elmerfem version: 9.0 (devel 7665920)
1. Prepare
Install gcc, g++, gfortran, cmake, Qt5 and qwt-qt5:
brew install gcc g++ gfortran cmake qt@5 qwt-qt5
The
gcc
andg++
installed frombrew
are located in/opt/homebrew/bin/gcc-11
and/opt/homebrew/bin/g++-11
.gfortran
is located in/opt/homebrew/bin/gfortran
.We can use command:
to see where the
qt5
andqwt-qt5
are installed (my computer is m1 mac mini, the installation dir is in/opt
).And command:
find /opt -name Qt5Config.cmake
to findQt5_DIR
Same as
qwt-qt5
. Be aware we should installqt@5
instead ofqt
, so asqwt-qt5
instead ofqwt
. See https://formulae.brew.sh/formula/qt@5 and https://formulae.brew.sh/formula/qwt-qt5#default.2. Modify
elmerfem/CmakeLists.txt
Modify the Apple section configuration:
and
Compile and install
Just
make -j6 && sudo make install
The text was updated successfully, but these errors were encountered: