cjlin1 / libsvm

LIBSVM -- A Library for Support Vector Machines
https://www.csie.ntu.edu.tw/~cjlin/libsvm/
BSD 3-Clause "New" or "Revised" License
4.54k stars 1.64k forks source link

make.m problem in win10 & MinGW64 compiler #55

Open alicanb opened 8 years ago

alicanb commented 8 years ago

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.

Shuaishi commented 8 years ago

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

xiangzhang1015 commented 7 years ago

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

zhaoxin111 commented 7 years ago

Thank you very much!!!!!

sharealll commented 7 years ago

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

lei25 commented 7 years ago

Thank you very much!! That really helps!

outofthink commented 7 years ago

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?

ghost commented 7 years ago

Thank you so very much!!!

aysegulozkaya commented 7 years ago

Thank you, it solved my problem!

angeloyeo commented 7 years ago

I love this guy.

jfmoralest commented 7 years ago

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

bside89 commented 7 years ago

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

zeaksi commented 7 years ago

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

casper5300 commented 7 years ago

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

aiorwoa commented 7 years ago

Thanks!!!

sourjyasarkar commented 7 years ago

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

Ekanki commented 7 years ago

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

aalimz commented 6 years ago

Thanks, that works great!

ghost commented 6 years ago

Thank you very much! it solves my problem!

ruthot commented 6 years ago

Thanks a lot. it took me hours

ghost commented 6 years ago

Thanks a lot, man...

HOUYU275 commented 6 years ago

thanks - -

architkansal commented 6 years ago

Thanks a lot

pankajnita1 commented 6 years ago

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.

aalimz commented 6 years ago

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

lihp11 commented 6 years ago

really help me !!

mrin9san commented 6 years ago

God bless u !!

SuninKingdom commented 6 years ago

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

v4-hub commented 6 years ago

It works! Thanks!!

jinjiaodawang commented 6 years ago

It works. You saved me : )

lijecaru commented 6 years ago

Worked like magic! Thank you so much!!

BDChinh commented 6 years ago

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

MonaSu9562 commented 6 years ago

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!!!

cjlin1 commented 6 years ago

Why don't you use the pre-compiled mex files in the windows sub-directory?

On 2018-07-26 02:47, MonaSu9562 wrote:

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!!!

-- You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub [1], or mute the thread [2]. [ { "@context": "http://schema.org", "@type": "EmailMessage", "potentialAction": { "@type": "ViewAction", "target": "https://github.com/cjlin1/libsvm/issues/55#issuecomment-407856839", "url": "https://github.com/cjlin1/libsvm/issues/55#issuecomment-407856839", "name": "View Issue" }, "description": "View this Issue on GitHub", "publisher": { "@type": "Organization", "name": "GitHub", "url": "https://github.com" } }, { "@type": "MessageCard", "@context": "http://schema.org/extensions", "hideOriginalBody": "false", "originator": "AF6C5A86-E920-430C-9C59-A73278B5EFEB", "title": "Re: [cjlin1/libsvm] make.m problem in win10 \u0026 MinGW64 compiler (#55)", "sections": [ { "text": "", "activityTitle": "MonaSu9562", "activityImage": "https://assets-cdn.github.com/images/email/message_cards/avatar.png", "activitySubtitle": "@MonaSu9562", "facts": [ ] } ], "potentialAction": [ { "name": "Add a comment", "@type": "ActionCard", "inputs": [ { "isMultiLine": true, "@type": "TextInput", "id": "IssueComment", "isRequired": false } ], "actions": [ { "name": "Comment", "@type": "HttpPOST", "target": "https://api.github.com", "body": "{\n\"commandName\": \"IssueComment\",\n\"repositoryFullName\": \"cjlin1/libsvm\",\n\"issueId\": 55,\n\"IssueComment\": \"{{IssueComment.value}}\"\n}" } ] }, { "name": "Close issue", "@type": "HttpPOST", "target": "https://api.github.com", "body": "{\n\"commandName\": \"IssueClose\",\n\"repositoryFullName\": \"cjlin1/libsvm\",\n\"issueId\": 55\n}" }, { "targets": [ { "os": "default", "uri": "https://github.com/cjlin1/libsvm/issues/55#issuecomment-407856839" } ], "@type": "OpenUri", "name": "View on GitHub" }, { "name": "Unsubscribe", "@type": "HttpPOST", "target": "https://api.github.com", "body": "{\n\"commandName\": \"MuteNotification\",\n\"threadId\": 119859355\n}" } ], "themeColor": "26292E" } ]

Links:

[1] https://github.com/cjlin1/libsvm/issues/55#issuecomment-407856839 [2] https://github.com/notifications/unsubscribe-auth/AFGwnmIgSCBEAMBHyIdfdMZdrJcaxKsoks5uKL00gaJpZM4HJOib

zwvews commented 5 years ago

Thanks a lot.

sudhirrt10 commented 5 years ago

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/.

pankajnita1 commented 5 years ago

Install minGW-w64 compiler to a licensed MATLAB version and then install libsvm other wise it won’t work....

On Mon, 5 Nov 2018 at 10:31 AM, sudhirrt10 notifications@github.com wrote:

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/.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/cjlin1/libsvm/issues/55#issuecomment-435755881, or mute the thread https://github.com/notifications/unsubscribe-auth/Afvd-_C5XSogvXJ20Ojdy49vuPj9VfKqks5ur8ZBgaJpZM4HJOib .

jorgeps86 commented 5 years ago

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

peijl1998 commented 5 years ago

It works. Thanks !!!!

Hedongge commented 5 years ago

Thanks God!It works!Thank you!

awur978 commented 5 years ago

Thank you

vannguyenthanh commented 5 years ago

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

cjlin1 commented 5 years ago

Why don't you use the pre-built .mex files in the windows sub-directory?

On 2019-03-19 07:51, vannguyenthanh wrote:

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

-- You are receiving this because you commented. Reply to this email directly, view it on GitHub [1], or mute the thread [2]. [ { "@context": "http://schema.org", "@type": "EmailMessage", "potentialAction": { "@type": "ViewAction", "target": "https://github.com/cjlin1/libsvm/issues/55#issuecomment-474405328", "url": "https://github.com/cjlin1/libsvm/issues/55#issuecomment-474405328", "name": "View Issue" }, "description": "View this Issue on GitHub", "publisher": { "@type": "Organization", "name": "GitHub", "url": "https://github.com" } } ]

Links:

[1] https://github.com/cjlin1/libsvm/issues/55#issuecomment-474405328 [2] https://github.com/notifications/unsubscribe-auth/AFGwnnrD__7TJ1AeOEsAu72W78Z7N06rks5vYPldgaJpZM4HJOib

vannguyenthanh commented 5 years ago

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?

cjlin1 commented 5 years ago

No, you don't do the compilation. You go to libsvm/windows and get the mex file for use On 2019-03-19 20:25, vannguyenthanh wrote:

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?

-- You are receiving this because you commented. Reply to this email directly, view it on GitHub [1], or mute the thread [2]. [ { "@context": "http://schema.org", "@type": "EmailMessage", "potentialAction": { "@type": "ViewAction", "target": "https://github.com/cjlin1/libsvm/issues/55#issuecomment-474669948", "url": "https://github.com/cjlin1/libsvm/issues/55#issuecomment-474669948", "name": "View Issue" }, "description": "View this Issue on GitHub", "publisher": { "@type": "Organization", "name": "GitHub", "url": "https://github.com" } } ]

Links:

[1] https://github.com/cjlin1/libsvm/issues/55#issuecomment-474669948 [2] https://github.com/notifications/unsubscribe-auth/AFGwnoW69kwUGiVcAuPuFDYAC3YLpwESks5vYaodgaJpZM4HJOib

vannguyenthanh commented 5 years ago

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

apolloaggrey commented 5 years ago

thanks a lot !...

shafi007 commented 5 years ago

Hi, thanks a lot. That worked <3

Sweetmeng commented 5 years ago

感谢感谢!

Roozbeh-Sdtz commented 5 years ago

thanks a lot :)

Yunnglin commented 4 years ago

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