Open alicanb opened 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 changingCFLAGS
toCOMPFLAGS
.
Thank you so much...
Thanks. It's working. I spent around 5 hours.
close
close
Thank you !!!
Thanks! That helped a lot!
Thanks! That's really helpful!!!
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 changingCFLAGS
toCOMPFLAGS
.
Please note that the 'CFLAGS' is in the scripts. You need to replace all 'CFLAGS ' with 'COMPFLAGS'. Remember it is all.
Thank you!
That's amazing! Thanks a lot!
tHANKS, BRO IT WORKED
niubi........
Thanks legend!!!! It really saves my life!
thank you so much!!!
thanx a lot... i spent too much time to solve this issue... but you solved it. big thanx
Thank you vey much
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.
Really useful !!!
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
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
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 .
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]
[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
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]
[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 .
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 changingCFLAGS
toCOMPFLAGS
.