Prev: need help for simulating electroabsorption coefficient versus photon energy
Next: Help with Mex and Libsvm
From: Achy Main Gupta on 31 Mar 2010 03:19 I was hoping I can get some help setting up Libsvm on my Mac book. I downloaded Libsvm from the server http://www.csie.ntu.edu.tw/~cjlin/libsvm/ and I am trying to "make" the mexglx files which I can call from matlab. To do this I make the following changes in the Makefile: MATLABDIR ?= /Applications/MATLAB_R2008b.app CFLAGS = -Wall -Wconversion -O3 -fPIC -I$(MATLABDIR)/extern/include -I/Developer/SDKs/MacOSX10.5.sdk/usr/include When I do make, I get the following output: g++ -Wall -Wconversion -O3 -fPIC -I/Applications/MATLAB_R2008b.app/extern/include -I//Developer/SDKs/MacOSX10.5.sdk/usr/include -c svm.cpp g++ -Wall -Wconversion -O3 -fPIC -I/Applications/MATLAB_R2008b.app/extern/include -I//Developer/SDKs/MacOSX10.5.sdk/usr/include -c svm_model_matlab.c /Applications/MATLAB_R2008b.app/bin/mex CC#g++ CXX#g++ CFLAGS#"-Wall -Wconversion -O3 -fPIC -I/Applications/MATLAB_R2008b.app/extern/include -I//Developer/SDKs/MacOSX10.5.sdk/usr/include" CXXFLAGS#"-Wall -Wconversion -O3 -fPIC -I/Applications/MATLAB_R2008b.app/extern/include -I//Developer/SDKs/MacOSX10.5.sdk/usr/include" -largeArrayDims svmpredict.c svm.o svm_model_matlab.o ld: library not found for -lbundle1.o collect2: ld returned 1 exit status mex: link of ' "svmpredict.mexmaci"' failed. Since the CFLAGS required searching the non-standard directory /Developer/SDKs/MacOSX10.5.sdk/usr/include (without this it doesn't work), is it possible that I need to make this or something else available to mex after which this would work? I am a dummy as far as command line stuff, mex, and compiling things from source goes. |