Git Product home page Git Product logo

Comments (73)

aalimz avatar aalimz commented on August 11, 2024 3

Just open the Make.m file and find all "CFLAGS". Then replace them with "COMPFLAGS" and run the file. Hope it works for you.

from libsvm.

MonaSu9562 avatar MonaSu9562 commented on August 11, 2024 1

I am on win10 x64 also and I also use r2018a and MinGW64. I replaced all the CFLAGS by COMPFLAGS. But it doesn't work.... Please save me!!!

It works now! I am toooooo stupid. I just restart the Matlab and then it works!
Many thanks!!!

from libsvm.

Shuaishi avatar Shuaishi commented on August 11, 2024

That's really help!!! How you figured this out?

from libsvm.

xiangzhang1015 avatar xiangzhang1015 commented on August 11, 2024

Thanks very much!!
It works.
Thank God, it made me crazy!

from libsvm.

zhaoxin111 avatar zhaoxin111 commented on August 11, 2024

Thank you very much!!!!!

from libsvm.

sharealll avatar sharealll commented on August 11, 2024

Thank you very very much!
I have solved this problem for five days!

from libsvm.

lei25 avatar lei25 commented on August 11, 2024

Thank you very much!! That really helps!

from libsvm.

outofthink avatar outofthink commented on August 11, 2024

Is there anyone buid right on win 10 use vs 2015 community?
I do it, and got "math.h no such file or dirctory". I change to makefile.win add include dir in CFLAGS, it's no use.
then I use vs 12, alse add include dir in CFLAGS, got "size_t redefine".
what's wrong?

from libsvm.

 avatar commented on August 11, 2024

Thank you so very much!!!

from libsvm.

aysegulozkaya avatar aysegulozkaya commented on August 11, 2024

Thank you, it solved my problem!

from libsvm.

angeloyeo avatar angeloyeo commented on August 11, 2024

I love this guy.

from libsvm.

jfmoralest avatar jfmoralest commented on August 11, 2024

Tahnk you very much!. It also worked for me.

from libsvm.

bside89 avatar bside89 commented on August 11, 2024

Zomg thank you so much!!!1 It works now.

from libsvm.

zeaksi avatar zeaksi commented on August 11, 2024

Thanks a ton...
God bless.... I spend entire day fixing it out.. but this small modification works like magic...
I wonder how u got this.... thanks again

from libsvm.

casper5300 avatar casper5300 commented on August 11, 2024

Thank you very much!! Although I've know idea what was happend there after replacing all the CFLAGS with COMPFLAGS. It really worked!!!!

from libsvm.

aiorwoa avatar aiorwoa commented on August 11, 2024

Thanks!!!

from libsvm.

sourjyasarkar avatar sourjyasarkar commented on August 11, 2024

Thank you so much !!! This really worked like magic!

from libsvm.

Ekanki avatar Ekanki commented on August 11, 2024

make.m is not showing any error anymore but still, it is not adding the library (libsvm) in MATLAB 2014b.

from libsvm.

aalimz avatar aalimz commented on August 11, 2024

Thanks, that works great!

from libsvm.

 avatar commented on August 11, 2024

Thank you very much! it solves my problem!

from libsvm.

ruthot avatar ruthot commented on August 11, 2024

Thanks a lot. it took me hours

from libsvm.

 avatar commented on August 11, 2024

Thanks a lot, man...

from libsvm.

HOUYU275 avatar HOUYU275 commented on August 11, 2024

thanks - -

from libsvm.

architkansal avatar architkansal commented on August 11, 2024

Thanks a lot

from libsvm.

pankajnita1 avatar pankajnita1 commented on August 11, 2024

i am using matlab R2017a and using libsvm.when i try to run the make.m file "Building with 'MinGW64 Compiler (C)'.
Error: C:\Users\PANKAJ\Desktop\libsvm-3.22\libsvm-3.22\matlab\make.m failed (line 13)
gcc: error: -fexceptions: No such file or directory" error is shown ??compflag solution isn't working.please guide me.

from libsvm.

lihp11 avatar lihp11 commented on August 11, 2024

really help me !!

from libsvm.

mrin9san avatar mrin9san commented on August 11, 2024

God bless u !!

from libsvm.

SuninKingdom avatar SuninKingdom commented on August 11, 2024

It works! Thanks!! Please take my knee, wa-ha-ha!

from libsvm.

v4-hub avatar v4-hub commented on August 11, 2024

It works! Thanks!!

from libsvm.

jinjiaodawang avatar jinjiaodawang commented on August 11, 2024

It works. You saved me : )

from libsvm.

lijecaru avatar lijecaru commented on August 11, 2024

Worked like magic! Thank you so much!!

from libsvm.

BDChinh avatar BDChinh commented on August 11, 2024

I am on a windows 10 x64 with matlab r2018a and MinGW64.
It works.
You saved me.
Thank you so much!

from libsvm.

cjlin1 avatar cjlin1 commented on August 11, 2024

from libsvm.

zwvews avatar zwvews commented on August 11, 2024

Thanks a lot.

from libsvm.

sudhirrt10 avatar sudhirrt10 commented on August 11, 2024

when i am going to instal libsvm in r2017a matlab the error is coming like thisError using mex
No supported compiler or SDK was found. You can install
the freely available MinGW-w64 C/C++ compiler; see
Install MinGW-w64 Compiler. For more options, visit
http://www.mathworks.com/support/compilers/R2017a/.

from libsvm.

pankajnita1 avatar pankajnita1 commented on August 11, 2024

from libsvm.

jorgeps86 avatar jorgeps86 commented on August 11, 2024

MATLAB 2018b here. Replace all the CFLAGS by COMPFLAGS. Works perfectly!

from libsvm.

peijl1998 avatar peijl1998 commented on August 11, 2024

It works. Thanks !!!!

from libsvm.

Hedongge avatar Hedongge commented on August 11, 2024

Thanks God!It works!Thank you!

from libsvm.

awur978 avatar awur978 commented on August 11, 2024

Thank you

from libsvm.

vannguyenthanh avatar vannguyenthanh commented on August 11, 2024

I am on win10 x64 and I also use R2016a. I installed tdm64-gcc-4.9.2 in C:\TDM-GCC-64, then replaced all the CFLAGS by COMPFLAGS. I also restarted the Matlab. But it doesn't work.... Please help me!!!
Building with 'MinGW64 Compiler (C)'.
Error: D:\LIBSVM-Code\libsvm-3.22\matlab\make.m failed (line 13)
gcc: error: -fexceptions: No such file or directory

from libsvm.

cjlin1 avatar cjlin1 commented on August 11, 2024

from libsvm.

vannguyenthanh avatar vannguyenthanh commented on August 11, 2024

Hi cjlin1, I am not clear your mention. I put all code to C:\WINDOWS, right?. But it doesn't work.
gcc: error: -fexceptions: No such file or directory
However, I find another answer:
mex -O -largeArrayDims abc.c
mex -O -largeArrayDims xyz.c
mex -O -I.. -largeArrayDims yuh.c ../svm.cpp yuh1.c
mex -O -I.. -largeArrayDims ngh.c ../svm.cpp ngh1.c
It works for me. What is the difference between this way and the previous way of compiling LibSVM? Are there any disadvantages of using this way?

from libsvm.

cjlin1 avatar cjlin1 commented on August 11, 2024

from libsvm.

vannguyenthanh avatar vannguyenthanh commented on August 11, 2024

Yes, I see.
However, maybe I need to change something to make it suitable for my data, so I need a recompile to mex file. Can I use "mex -O -largeArrayDims...." instead?

Thank you

from libsvm.

apolloaggrey avatar apolloaggrey commented on August 11, 2024

thanks a lot !...

from libsvm.

shafi007 avatar shafi007 commented on August 11, 2024

Hi, thanks a lot. That worked <3

from libsvm.

Sweetmeng avatar Sweetmeng commented on August 11, 2024

感谢感谢!

from libsvm.

Roozbeh-Sdtz avatar Roozbeh-Sdtz commented on August 11, 2024

thanks a lot :)

from libsvm.

Yunnglin avatar Yunnglin commented on August 11, 2024

OMG, I forgot to restart matlab!!! That worked!!!
--Matlab R2019 a

from libsvm.

purushpsm147 avatar purushpsm147 commented on August 11, 2024

I am on a windows 10 with matlab r2015b and MinGW64. When I run make.m I encountered with gcc: error: \-fexceptions: No such file or directory. I solved it by changing CFLAGS to COMPFLAGS.

Thank you so much...

from libsvm.

rajibrj43 avatar rajibrj43 commented on August 11, 2024

Thanks. It's working. I spent around 5 hours.

from libsvm.

qiqiang01 avatar qiqiang01 commented on August 11, 2024

close

from libsvm.

qiqiang01 avatar qiqiang01 commented on August 11, 2024

close

from libsvm.

evidri avatar evidri commented on August 11, 2024

Thank you !!!

from libsvm.

Mahathi avatar Mahathi commented on August 11, 2024

Thanks! That helped a lot!

from libsvm.

xxyypp avatar xxyypp commented on August 11, 2024

Thanks! That's really helpful!!!

from libsvm.

Kwunbun avatar Kwunbun commented on August 11, 2024

I am on a windows 10 with matlab r2015b and MinGW64. When I run make.m I encountered with gcc: error: \-fexceptions: No such file or directory. I solved it by changing CFLAGS to COMPFLAGS.

Please note that the 'CFLAGS' is in the scripts. You need to replace all 'CFLAGS ' with 'COMPFLAGS'. Remember it is all.

from libsvm.

zjph602xtc avatar zjph602xtc commented on August 11, 2024

Thank you!

from libsvm.

ZhuShaw-han avatar ZhuShaw-han commented on August 11, 2024

That's amazing! Thanks a lot!

from libsvm.

parthdevbundela avatar parthdevbundela commented on August 11, 2024

tHANKS, BRO IT WORKED

from libsvm.

marvelous-dog avatar marvelous-dog commented on August 11, 2024

niubi........

from libsvm.

xczhang123 avatar xczhang123 commented on August 11, 2024

Thanks legend!!!! It really saves my life!

from libsvm.

zhanglithium avatar zhanglithium commented on August 11, 2024

thank you so much!!!

from libsvm.

bhawnajyoti avatar bhawnajyoti commented on August 11, 2024

thanx a lot... i spent too much time to solve this issue... but you solved it. big thanx

from libsvm.

b20163100 avatar b20163100 commented on August 11, 2024

Thank you vey much

from libsvm.

will945945945 avatar will945945945 commented on August 11, 2024

In matlab/make.m, please replace line 13~17
"""
mex CFLAGS="$CFLAGS -std=c99" -largeArrayDims libsvmread.c
mex CFLAGS="$CFLAGS -std=c99" -largeArrayDims libsvmwrite.c
mex CFLAGS="$CFLAGS -std=c99" -I.. -largeArrayDims svmtrain.c ../svm.cpp svm_model_matlab.c
mex CFLAGS="$CFLAGS -std=c99" -I.. -largeArrayDims svmpredict.c ../svm.cpp svm_model_matlab.c
"""
with
"""
mex -largeArrayDims libsvmread.c
mex -largeArrayDims libsvmwrite.c
mex -I.. -largeArrayDims svmtrain.c ../svm.cpp svm_model_matlab.c
mex -I.. -largeArrayDims svmpredict.c ../svm.cpp svm_model_matlab.c
""".
We have tested it in both MinGW64 and Visual Studio 2019 compilers in MATLAB, and ``-std=c99'' is no longer needed.

The aforementioned part will be updated in the future.
Thank you.

from libsvm.

Yao-Yiru avatar Yao-Yiru commented on August 11, 2024

Really useful !!!

from libsvm.

105305021paul avatar 105305021paul commented on August 11, 2024

Hi guys, I read the introduction above, and I can’t find the word "CFLAGS" in my make.m file. Please tell me how to solve this problem, thank you

By the way, my matlab version is R2019a and I use libsvm-3.25
my make file

from libsvm.

cjlin1 avatar cjlin1 commented on August 11, 2024

from libsvm.

105305021paul avatar 105305021paul commented on August 11, 2024

from libsvm.

cjlin1 avatar cjlin1 commented on August 11, 2024

from libsvm.

105305021paul avatar 105305021paul commented on August 11, 2024

from libsvm.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.