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.56k 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.

purushpsm147 commented 5 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.

Thank you so much...

rajibrj43 commented 5 years ago

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

qiqiang01 commented 5 years ago

close

qiqiang01 commented 5 years ago

close

evidri commented 5 years ago

Thank you !!!

Mahathi commented 4 years ago

Thanks! That helped a lot!

xxyypp commented 4 years ago

Thanks! That's really helpful!!!

Kwunbun commented 4 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.

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

zjph602xtc commented 4 years ago

Thank you!

ZhuShaw-han commented 4 years ago

That's amazing! Thanks a lot!

parthdevbundela commented 4 years ago

tHANKS, BRO IT WORKED

marvelous-dog commented 4 years ago

niubi........

xczhang123 commented 4 years ago

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

zhanglithium commented 4 years ago

thank you so much!!!

bhawnajyoti commented 3 years ago

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

b20163100 commented 3 years ago

Thank you vey much

will945945945 commented 3 years ago

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.

Yao-Yiru commented 3 years ago

Really useful !!!

105305021paul commented 3 years ago

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

cjlin1 commented 3 years ago

This issue has been addressed in libsvm 3.25 so you can directly use make.m

On 2021-05-14 11:54, 105305021paul wrote:

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 [1]

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

Links:

[1] https://user-images.githubusercontent.com/73280873/118218978-1e8e9480-b4ab-11eb-97d4-70ed5c5ee0c3.jpg [2] https://github.com/cjlin1/libsvm/issues/55#issuecomment-840987039 [3] https://github.com/notifications/unsubscribe-auth/ABI3BHXTCTQXSIMQVK43PG3TNSNIBANCNFSM4BZE5CNQ

105305021paul commented 3 years ago

Hi Professor Lin:

I tried directly typing "make" in the command window but got C:\Program Files\MATLAB\R2019a\toolbox\libsvm-3.25\windows\libsvmread.c not found; check that you are in the correct current folder, and check the spelling of'C:\Program Files\MATLAB\R2019a\toolbox\libsvm-3.25\windows\libsvmread.c'.I don't understand what happened.

The second one, I read in the Readme Installation section, "On Windows systems, pre-built mex files are already in the directory'..\windows', so please just copy them to the matlab directory. Now we provide binary files only for 64bit MATLAB on Windows. If you would like to re-build the package, please rely on the "Following steps." In this part, I also tried to copy the four mex files from the windows directory to the matlab directory, and directly typed "make" in the command window, but I also got the same error as above.

Please help me check it out, Professor Lin. Thank you.

Chih-Jen Lin @.***> 於 2021年5月14日 週五 下午12:31寫道:

This issue has been addressed in libsvm 3.25 so you can directly use make.m

On 2021-05-14 11:54, 105305021paul wrote:

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 [1]

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

Links:

[1]

https://user-images.githubusercontent.com/73280873/118218978-1e8e9480-b4ab-11eb-97d4-70ed5c5ee0c3.jpg [2] https://github.com/cjlin1/libsvm/issues/55#issuecomment-840987039 [3]

https://github.com/notifications/unsubscribe-auth/ABI3BHXTCTQXSIMQVK43PG3TNSNIBANCNFSM4BZE5CNQ

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

cjlin1 commented 3 years ago

Since you are using windows, you can directly use the mex files without doing make..

On 2021-05-16 20:02, Paul wrote:

Hi Professor Lin:

I tried directly typing "make" in the command window but got C:\Program Files\MATLAB\R2019a\toolbox\libsvm-3.25\windows\libsvmread.c not found; check that you are in the correct current folder, and check the spelling of'C:\Program Files\MATLAB\R2019a\toolbox\libsvm-3.25\windows\libsvmread.c'.I don't understand what happened.

The second one, I read in the Readme Installation section, "On Windows systems, pre-built mex files are already in the directory'..\windows', so please just copy them to the matlab directory. Now we provide binary files only for 64bit MATLAB on Windows. If you would like to re-build the package, please rely on the "Following steps." In this part, I also tried to copy the four mex files from the windows directory to the matlab directory, and directly typed "make" in the command window, but I also got the same error as above.

Please help me check it out, Professor Lin. Thank you.

Chih-Jen Lin @.***> 於 2021年5月14日 週五 下午12:31寫道:

This issue has been addressed in libsvm 3.25 so you can directly use make.m

On 2021-05-14 11:54, 105305021paul wrote:

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 [1]

-- You are receiving this because you commented. Reply to this email directly, view it on GitHub [2], or unsubscribe [3]. [ { @.": "http://schema.org", @.": "EmailMessage", "potentialAction": { @.***": "ViewAction", "target":

"https://github.com/cjlin1/libsvm/issues/55#issuecomment-840987039", "url":

"https://github.com/cjlin1/libsvm/issues/55#issuecomment-840987039", "name": "View Issue" }, "description": "View this Issue on GitHub", "publisher": { @.***": "Organization", "name": "GitHub", "url": "https://github.com" } } ]

Links:

[1]

https://user-images.githubusercontent.com/73280873/118218978-1e8e9480-b4ab-11eb-97d4-70ed5c5ee0c3.jpg

[2] https://github.com/cjlin1/libsvm/issues/55#issuecomment-840987039 [3]

https://github.com/notifications/unsubscribe-auth/ABI3BHXTCTQXSIMQVK43PG3TNSNIBANCNFSM4BZE5CNQ

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/cjlin1/libsvm/issues/55#issuecomment-840999107, or unsubscribe

https://github.com/notifications/unsubscribe-auth/ARPC22LJJIS4H43GSU4NQITTNSRTVANCNFSM4BZE5CNQ .

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

Links:

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

105305021paul commented 3 years ago

Hi Professor Lin: I have solved the problem, thanks for your help.

Have a good day

Chih-Jen Lin @.***> 於 2021年5月16日 週日 下午8:05寫道:

Since you are using windows, you can directly use the mex files without doing make..

On 2021-05-16 20:02, Paul wrote:

Hi Professor Lin:

I tried directly typing "make" in the command window but got C:\Program Files\MATLAB\R2019a\toolbox\libsvm-3.25\windows\libsvmread.c not found; check that you are in the correct current folder, and check the spelling of'C:\Program Files\MATLAB\R2019a\toolbox\libsvm-3.25\windows\libsvmread.c'.I don't understand what happened.

The second one, I read in the Readme Installation section, "On Windows systems, pre-built mex files are already in the directory'..\windows', so please just copy them to the matlab directory. Now we provide binary files only for 64bit MATLAB on Windows. If you would like to re-build the package, please rely on the "Following steps." In this part, I also tried to copy the four mex files from the windows directory to the matlab directory, and directly typed "make" in the command window, but I also got the same error as above.

Please help me check it out, Professor Lin. Thank you.

Chih-Jen Lin @.***> 於 2021年5月14日 週五 下午12:31寫道:

This issue has been addressed in libsvm 3.25 so you can directly use make.m

On 2021-05-14 11:54, 105305021paul wrote:

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 [1]

-- You are receiving this because you commented. Reply to this email directly, view it on GitHub [2], or unsubscribe [3]. [ { @.": "http://schema.org", @.": "EmailMessage", "potentialAction": { @.***": "ViewAction", "target":

"https://github.com/cjlin1/libsvm/issues/55#issuecomment-840987039", "url":

"https://github.com/cjlin1/libsvm/issues/55#issuecomment-840987039", "name": "View Issue" }, "description": "View this Issue on GitHub", "publisher": { @.***": "Organization", "name": "GitHub", "url": "https://github.com" } } ]

Links:

[1]

https://user-images.githubusercontent.com/73280873/118218978-1e8e9480-b4ab-11eb-97d4-70ed5c5ee0c3.jpg

[2] https://github.com/cjlin1/libsvm/issues/55#issuecomment-840987039 [3]

https://github.com/notifications/unsubscribe-auth/ABI3BHXTCTQXSIMQVK43PG3TNSNIBANCNFSM4BZE5CNQ

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/cjlin1/libsvm/issues/55#issuecomment-840999107, or unsubscribe

< https://github.com/notifications/unsubscribe-auth/ARPC22LJJIS4H43GSU4NQITTNSRTVANCNFSM4BZE5CNQ

.

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

Links:

[1] https://github.com/cjlin1/libsvm/issues/55#issuecomment-841807913 [2]

https://github.com/notifications/unsubscribe-auth/ABI3BHW5SS46WZGORDWIWZTTN6X6PANCNFSM4BZE5CNQ

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