Last active
March 9, 2020 13:50
-
-
Save gdlmx/9dc0c206d73827940bb4b6aedd9aa46e to your computer and use it in GitHub Desktop.
Compile MTEX with NFFT
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/bash | |
# https://github.com/mtex-toolbox/mtex/blob/develop/extern/nfft/readme.md | |
# https://github.com/mtex-toolbox/mtex/tree/develop/extern/nfft_openMP | |
# https://www-user.tu-chemnitz.de/~potts/nfft/download.php | |
set -e | |
MTEX_HOME=$(echo "$PWD"/mtex-*.*.*/) | |
MATLAB_HOME=$(dirname $(dirname $(which matlab))) | |
cd nfft*/ | |
mkdir -p release_mtex/ | |
NFFT_DIR="$PWD"/release_mtex/ | |
function make_nfft () { | |
./configure --prefix="$NFFT_DIR" --with-matlab="$MATLAB_HOME" \ | |
--enable-nfsft --enable-nfsoft --enable-fpt --enable-portable-binary --enable-static | |
# --enable-openmp may not work | |
make | |
make install | |
} | |
make_nfft | |
# Deploy to MTEX | |
cd "$MTEX_HOME" | |
cp "$NFFT_DIR/lib/"nfsoftmex.mex* "$NFFT_DIR/lib/"nfsftmex.mex* ./extern/nfft/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment