It seems to work by applying the following command when installing the nfft package (before make and make install):
./configure --with-fftw3='/usr/local' --with-fftw3-libdir='/usr/local/lib' --with-fftw3-includedir='/usr/local/include' --with-matlab='/Applications/MATLAB_R2014a.app' --with-matlab-fftw3-libdir='/usr/local/lib'
Another comment: even if the version of OS X is 10.9, matlab selects 10.8sdk. To avoid this, you can edit the file mex_C_maci64.xml, and invert 2 lines of codes:
if true
<dirExists name="$$/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk" />
<dirExists name="$$/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk" />
<dirExists name="$$/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk" />
<cmdReturns name="find $$ -name MacOSX10.7.sdk" />
<cmdReturns name="find $$ -name MacOSX10.9.sdk" />
<cmdReturns name="find $$ -name MacOSX10.8.sdk" />
end
instead of
if true
<dirExists name="$$/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk" />
<dirExists name="$$/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk" />
<dirExists name="$$/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk" />
<cmdReturns name="find $$ -name MacOSX10.7.sdk" />
<cmdReturns name="find $$ -name MacOSX10.8.sdk" />
<cmdReturns name="find $$ -name MacOSX10.9.sdk" />
end
Hope it can help.
Best Answer