Hi all,
I'm running Snow Leopard 10.6.6 and Matlab R2010b (7.11.0.584). I'm trying to install a package called libsvm ( http://www.csie.ntu.edu.tw/~cjlin/libsvm/). I've tried running make at the terminal but I keep getting some cryptic errors and don't know how to deal with them. Below are the contents of Makefile
###
# This Makefile is used under Linux
# MATLABDIR ?= /usr/local/matlab
# for Mac
MATLABDIR ?= /Applications/MATLAB_R2010b.app
CXX ?= g++
#CXX = g++-4.1
CFLAGS = -Wall -Wconversion -O3 -fPIC -I$(MATLABDIR)/extern/include
MEX = $(MATLABDIR)/bin/mex
MEX_OPTION = CC#$(CXX) CXX#$(CXX) CFLAGS#'$(CFLAGS)' CXXFLAGS#'$(CFLAGS)'
# comment the following line if you use MATLAB on 32-bit computer
MEX_OPTION += -largeArrayDims
MEX_EXT = $(shell $(MATLABDIR)/bin/mexext)
OCTAVEDIR ?= /usr/include/octave
OCTAVE_MEX = env CC=$(CXX) mkoctfile
OCTAVE_MEX_OPTION = --mex
OCTAVE_MEX_EXT = mex
OCTAVE_CFLAGS = -Wall -O3 -fPIC -I$(OCTAVEDIR)
all: matlab
matlab: binary
octave:
@make MEX='$(OCTAVE_MEX)' MEX_OPTION='$(OCTAVE_MEX_OPTION)'
MEX_EXT='$(OCTAVE_MEX_EXT)' CFLAGS='$(OCTAVE_CFLAGS)'
binary
binary: svmpredict.$(MEX_EXT) svmtrain.$(MEX_EXT) libsvmread.$(MEX_EXT) libsvmwrite.$(MEX_EXT)
svmpredict.$(MEX_EXT): svmpredict.c svm.h svm.o svm_model_matlab.o
$(MEX) $(MEX_OPTION) svmpredict.c svm.o svm_model_matlab.o
svmtrain.$(MEX_EXT): svmtrain.c svm.h svm.o svm_model_matlab.o
$(MEX) $(MEX_OPTION) svmtrain.c svm.o svm_model_matlab.o
libsvmread.$(MEX_EXT): libsvmread.c
$(MEX) $(MEX_OPTION) libsvmread.c
libsvmwrite.$(MEX_EXT): libsvmwrite.c
$(MEX) $(MEX_OPTION) libsvmwrite.c
svm_model_matlab.o: svm_model_matlab.c svm.h
$(CXX) $(CFLAGS) -c svm_model_matlab.c
svm.o: svm.cpp svm.h
$(CXX) $(CFLAGS) -c svm.cpp
clean:
rm -f *~ *.o *.mex* *.obj
###
When I type make in the terminal, I get this error message:
/Applications/MATLAB_R2010b.app/bin/mex CC#g++ CXX#g++ CFLAGS#'-Wall -Wconversion -O3 -fPIC -I/Applications/MATLAB_R2010b.app/extern/include' CXXFLAGS#'-Wall -Wconversion -O3 -fPIC -I/Applications/MATLAB_R2010b.app/extern/include' -largeArrayDims svmpredict.c svm.o svm_model_matlab.o
ld64-62.1 failed: library not found for -lgcc_s.10.5
collect2: ld returned 1 exit status
mex: link of ' 'svmpredict.mexmaci64' failed.
make: *** [svmpredict.mexmaci64] Error 1
I notice that it says library not found for -lgcc_s.10.5. What does this mean and how could I possibly fix it?
Thanks in advance.
I'm running Snow Leopard 10.6.6 and Matlab R2010b (7.11.0.584). I'm trying to install a package called libsvm ( http://www.csie.ntu.edu.tw/~cjlin/libsvm/). I've tried running make at the terminal but I keep getting some cryptic errors and don't know how to deal with them. Below are the contents of Makefile
###
# This Makefile is used under Linux
# MATLABDIR ?= /usr/local/matlab
# for Mac
MATLABDIR ?= /Applications/MATLAB_R2010b.app
CXX ?= g++
#CXX = g++-4.1
CFLAGS = -Wall -Wconversion -O3 -fPIC -I$(MATLABDIR)/extern/include
MEX = $(MATLABDIR)/bin/mex
MEX_OPTION = CC#$(CXX) CXX#$(CXX) CFLAGS#'$(CFLAGS)' CXXFLAGS#'$(CFLAGS)'
# comment the following line if you use MATLAB on 32-bit computer
MEX_OPTION += -largeArrayDims
MEX_EXT = $(shell $(MATLABDIR)/bin/mexext)
OCTAVEDIR ?= /usr/include/octave
OCTAVE_MEX = env CC=$(CXX) mkoctfile
OCTAVE_MEX_OPTION = --mex
OCTAVE_MEX_EXT = mex
OCTAVE_CFLAGS = -Wall -O3 -fPIC -I$(OCTAVEDIR)
all: matlab
matlab: binary
octave:
@make MEX='$(OCTAVE_MEX)' MEX_OPTION='$(OCTAVE_MEX_OPTION)'
MEX_EXT='$(OCTAVE_MEX_EXT)' CFLAGS='$(OCTAVE_CFLAGS)'
binary
binary: svmpredict.$(MEX_EXT) svmtrain.$(MEX_EXT) libsvmread.$(MEX_EXT) libsvmwrite.$(MEX_EXT)
svmpredict.$(MEX_EXT): svmpredict.c svm.h svm.o svm_model_matlab.o
$(MEX) $(MEX_OPTION) svmpredict.c svm.o svm_model_matlab.o
svmtrain.$(MEX_EXT): svmtrain.c svm.h svm.o svm_model_matlab.o
$(MEX) $(MEX_OPTION) svmtrain.c svm.o svm_model_matlab.o
libsvmread.$(MEX_EXT): libsvmread.c
$(MEX) $(MEX_OPTION) libsvmread.c
libsvmwrite.$(MEX_EXT): libsvmwrite.c
$(MEX) $(MEX_OPTION) libsvmwrite.c
svm_model_matlab.o: svm_model_matlab.c svm.h
$(CXX) $(CFLAGS) -c svm_model_matlab.c
svm.o: svm.cpp svm.h
$(CXX) $(CFLAGS) -c svm.cpp
clean:
rm -f *~ *.o *.mex* *.obj
###
When I type make in the terminal, I get this error message:
/Applications/MATLAB_R2010b.app/bin/mex CC#g++ CXX#g++ CFLAGS#'-Wall -Wconversion -O3 -fPIC -I/Applications/MATLAB_R2010b.app/extern/include' CXXFLAGS#'-Wall -Wconversion -O3 -fPIC -I/Applications/MATLAB_R2010b.app/extern/include' -largeArrayDims svmpredict.c svm.o svm_model_matlab.o
ld64-62.1 failed: library not found for -lgcc_s.10.5
collect2: ld returned 1 exit status
mex: link of ' 'svmpredict.mexmaci64' failed.
make: *** [svmpredict.mexmaci64] Error 1
I notice that it says library not found for -lgcc_s.10.5. What does this mean and how could I possibly fix it?
Thanks in advance.
Free serial key for avast 2016. Download time out for mac. Macbook Pro, Mac OS X (10.6.6) https://supernalparking918.weebly.com/download-safari-browser-for-mac.html.
Free Downloads For Mac
Bros mkv converter 1.7. Youtube desktop app for android free download. 12 free download for mac. Alcatel one touch flip phone user manual. Posted on
Matlab For Mac Free
Download Manager For Mac
Download LIBSVM The current release (Version 1.04) of LIBSVM can be obtained by downloading the zip file. A MATLAB interface of LIBSVM has been done by Junshui Ma and Stanley Ahalt at Ohio State University. One of our previous SVM software which focuses on difficult SVM models is BSVM. I'm trying to install LibSVM in these environments. I already installed Command Line Tools and I am trying to 'make' file (go to unpacked folder of LibSVM on my Desktop, go to folder matlab and run 'make'). Java eclipse download for mac.
Free Matlab Download For Mac
- Execute the make command inside matlab Error: >> make i686-apple-darwin10-gcc-4.2.1: svm.obj: No such file or directory i686-apple-darwin10-gcc-4.2.1: svm_model_matlab.obj: No such file or directory mex: link of ' 'svmtrain.mexmaci64' failed.???
- In this note I write down the steps needed for MATLAB R2012a on Mac OS X 10.9. Before compilation of LIBSVM, you have to install Xcode 5.x and the command line tools. After the installation, type gcc --version in the terminal and you should see the output below.
- Download and extract libsvm in a directory of your choosing, say C: libsvm. As described in the C: libsvm matlab README file, first you have to make sure a supported C/C++ compiler is installed. Note that on 64-bit systems, you need the correct 64-bit version of the compiler (e.g. Windows SDK is needed for Visual Studio Express.