Open ouening opened 2 years ago
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.
find_program
is a CMake command. It's not an external utility.
Any ideas on how to update to Ventura on an M3? gcc is at 13 now. Are the opengl lib paths the same?
That's my real question. There's no /opt/X11 in Ventura, but there is /opt/homebrew/opt/X11 which is a simlink which leads to some strange files. But in /opt/homebrew/opt the following files exist
MacBook Pro M1 Sonoma 14.3.1
I followed the original instructions outlined by @ouening and it sent me into an infinite install loop.
OS: Mac OS Monterey 12.1 Computer: Mac mini (M1, 2020) elmerfem version: 9.0 (devel 7665920e)
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