Azzera filtri
Azzera filtri

Info

Questa domanda è chiusa. Riaprila per modificarla o per rispondere.

FFT-based convolution by Bruno Luong

3 visualizzazioni (ultimi 30 giorni)
Maura Monville
Maura Monville il 29 Ago 2014
Chiuso: MATLAB Answer Bot il 20 Ago 2021
I downloaded the code and tried to install launching the installation function from Matlab command line. But I got the following error that I am copying in the following. I verified that clang is installed on my Mac running Maverick 10.9.4 f4230:~ mauede$ which clang /usr/bin/clang
I would greatly appreciate your help. Thank you so much. Regards, Maura Monville
>> convnfft_install
-> mexopts.sh sourced from directory (DIR = $MATLAB/bin)
FILE = /Applications/MATLAB_R2013b.app/bin/mexopts.sh
----------------------------------------------------------------
-> MATLAB = /Applications/MATLAB_R2013b.app
-> CC = xcrun -sdk macosx10.7 clang
-> CC flags:
CFLAGS = -fno-common -arch x86_64 -isysroot -mmacosx-version-min=10.7 -fexceptions
CDEBUGFLAGS = -g
COPTIMFLAGS = -O2 -DNDEBUG
CLIBS = -L/Applications/MATLAB_R2013b.app/bin/maci64 -lmx -lmex -lmat -lstdc++
arguments =
-> CXX = xcrun -sdk macosx10.7 clang++
-> CXX flags:
CXXFLAGS = -fno-common -fexceptions -arch x86_64 -isysroot -mmacosx-version-min=10.7
CXXDEBUGFLAGS = -g
CXXOPTIMFLAGS = -O2 -DNDEBUG
CXXLIBS = -L/Applications/MATLAB_R2013b.app/bin/maci64 -lmx -lmex -lmat -lstdc++
arguments =
-> FC = gfortran
-> FC flags:
FFLAGS = -fexceptions -m64 -fbackslash
FDEBUGFLAGS = -g
FOPTIMFLAGS = -O
FLIBS = -L/Applications/MATLAB_R2013b.app/bin/maci64 -lmx -lmex -lmat -L -lgfortran -L -lgfortranbegin
arguments =
-> LD = xcrun -sdk macosx10.7 clang
-> Link flags:
LDFLAGS = -arch x86_64 -Wl,-syslibroot, -mmacosx-version-min=10.7 -bundle -Wl,-exported_symbols_list,/Applications/MATLAB_R2013b.app/extern/lib/maci64/mexFunction.map
LDDEBUGFLAGS = -g
LDOPTIMFLAGS = -O
LDEXTENSION = .mexmaci64
arguments =
-> LDCXX =
-> Link flags:
LDCXXFLAGS =
LDCXXDEBUGFLAGS =
LDCXXOPTIMFLAGS =
LDCXXEXTENSION =
arguments =
----------------------------------------------------------------
-> xcrun -sdk macosx10.7 clang -c -I/Applications/MATLAB_R2013b.app/extern/include -I/Applications/MATLAB_R2013b.app/simulink/include -DMATLAB_MEX_FILE -fno-common -arch x86_64 -isysroot -mmacosx-version-min=10.7 -fexceptions -O2 -DNDEBUG "inplaceprod.c"
xcodebuild: error: SDK "macosx10.7" cannot be located.
xcrun: error: unable to find utility "clang", not a developer tool or in PATH
mex: compile of ' "inplaceprod.c"' failed.
Unable to complete successfully.
Error in convnfft_install (line 17)
mex(mexopts{:},'inplaceprod.c');
  1 Commento
Geoff Hayes
Geoff Hayes il 29 Ago 2014
Maura - have you tried to build MEX-functions before or is this the first time? Have you previously run mex -setup?
Note the error
xcodebuild: error: SDK "macosx10.7" cannot be located.
This may be due to your version of Xcode (do you know the version?) and the fact that your OS X is 10.9. This error is similar to the one found at mex,mac,xcode. Note in particular the comment made by Tim Davis on 15 Nov 2013. This may be more relevant to you since he has OS X Mavericks installed as well.
His steps seemed to be:
- make a copy of the mexopts.sh,found in /Applications/MATLAB_R2013b.app/bin/mexopts.sh
- edit the original file, replacing instances of 10.7 with 10.8 (not 10.9); see answer from MathWorks Support Team for where in the file to edit
- run, from the MATLAB Command Window, *mex -setup*
- choose the original mexopts.sh option (there will be two, one for the original and one for your copy)
- and that is it.

Risposte (0)

Questa domanda è chiusa.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by