The latest git version is now supporting the Apple M1 device!
NGSolve can be compiled with the following steps:
- Install Python Installer (note that this is thew new “universal2” installer, opposed to the “intel” one)
- Install CMake Installer (same as above, a new universal installer)
- Install Xcode command line tools:
sudo xcode-select --install
Run the following code to download/build/install NGSolve
git clone https://github.com/ngsolve/ngsolve.git
cd ngsolve
git submodule update --init --recursive
mkdir build
cd build
/Applications/CMake.app/Contents/bin/cmake ..
make -j5 install
Currently the linker issues a lot of warnings about different visibilities, we are about to fix this.
As usual, set some environment variables to use NGSolve from the command line. Put these lines in the .bash_profile file in your home directory:
export PATH=/Applications/Netgen.app/Contents/MacOS:$PATH
export PYTHONPATH=/Applications/Netgen.app/Contents/Resources/lib/python3.9/site-packages:$PYTHONPATH
Any feedback is welcome
Best,
Matthias