xcode-select –installgit clone https://codeberg.org/mrirecon/bart.gitbrew install –cask gcc-arm-embedded
brew install libpng
brew install fftw
brew install openblas
brew install make
brew install llvm libomp# LDFLAGS += “-L/usr/local/opt/libomp/lib” -lomp
# CPPFLAGS += “-I/usr/local/opt/libomp/include” -Xclang -fopenmp
LDFLAGS += “-L/opt/homebrew/opt/libomp/lib” -lomp
CPPFLAGS += “-I/opt/homebrew/opt/libomp/include” -Xclang -fopenmp# FFTW_BASE ?= /opt/local/
FFTW_BASE ?= /opt/homebrew/opt/fftw/BLAS_BASE ?= /usr/local/opt/openblas/
BLAS_BASE ?= /opt/homebrew/opt/openblas/# png
ifeq ($(PNG), 0)
PNG_L :=
CFLAGS += -DNO_PNG
CPPFLAGS += -DNO_PNG
else
PNG_L := -lpng
PNG_L := -L/opt/homebrew/opt/libpng/lib -lpng
CPPFLAGS += -I/opt/homebrew/opt/libpng/include
endifcase SIM:
{
const complex float *b1 = NULL;
……
}case STL:
{
// prepare phantom sampling grid
struct grid_opts gopts = grid_opts_defaults;
gopts.kspace = kspace;
……
}Same changes in src/sqpics.c src/grecon/optreg.c src/stl/misc.c src/simu/phantom.c src/stl/misc.c and So On (C language syntax incompatibility in Mac)
CC=gcc MACPORTS=0 gmakeexport BART_TOOLBOX_PATH=“Your_path/bart"
export PATH="{BART_TOOLBOX_PATH}:${PATH}”