Comments (73)
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.
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.
That's really help!!! How you figured this out?
from libsvm.
Thanks very much!!
It works.
Thank God, it made me crazy!
from libsvm.
Thank you very much!!!!!
from libsvm.
Thank you very very much!
I have solved this problem for five days!
from libsvm.
Thank you very much!! That really helps!
from libsvm.
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.
Thank you so very much!!!
from libsvm.
Thank you, it solved my problem!
from libsvm.
I love this guy.
from libsvm.
Tahnk you very much!. It also worked for me.
from libsvm.
Zomg thank you so much!!!1 It works now.
from libsvm.
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.
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.
Thanks!!!
from libsvm.
Thank you so much !!! This really worked like magic!
from libsvm.
make.m is not showing any error anymore but still, it is not adding the library (libsvm) in MATLAB 2014b.
from libsvm.
Thanks, that works great!
from libsvm.
Thank you very much! it solves my problem!
from libsvm.
Thanks a lot. it took me hours
from libsvm.
Thanks a lot, man...
from libsvm.
thanks - -
from libsvm.
Thanks a lot
from libsvm.
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.
really help me !!
from libsvm.
God bless u !!
from libsvm.
It works! Thanks!! Please take my knee, wa-ha-ha!
from libsvm.
It works! Thanks!!
from libsvm.
It works. You saved me : )
from libsvm.
Worked like magic! Thank you so much!!
from libsvm.
I am on a windows 10 x64 with matlab r2018a and MinGW64.
It works.
You saved me.
Thank you so much!
from libsvm.
from libsvm.
Thanks a lot.
from libsvm.
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.
from libsvm.
MATLAB 2018b here. Replace all the CFLAGS by COMPFLAGS. Works perfectly!
from libsvm.
It works. Thanks !!!!
from libsvm.
Thanks God!It works!Thank you!
from libsvm.
Thank you
from libsvm.
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.
from libsvm.
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.
from libsvm.
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.
thanks a lot !...
from libsvm.
Hi, thanks a lot. That worked <3
from libsvm.
感谢感谢!
from libsvm.
thanks a lot :)
from libsvm.
OMG, I forgot to restart matlab!!! That worked!!!
--Matlab R2019 a
from libsvm.
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...
from libsvm.
Thanks. It's working. I spent around 5 hours.
from libsvm.
close
from libsvm.
close
from libsvm.
Thank you !!!
from libsvm.
Thanks! That helped a lot!
from libsvm.
Thanks! That's really helpful!!!
from libsvm.
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.
from libsvm.
Thank you!
from libsvm.
That's amazing! Thanks a lot!
from libsvm.
tHANKS, BRO IT WORKED
from libsvm.
niubi........
from libsvm.
Thanks legend!!!! It really saves my life!
from libsvm.
thank you so much!!!
from libsvm.
thanx a lot... i spent too much time to solve this issue... but you solved it. big thanx
from libsvm.
Thank you vey much
from libsvm.
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.
Really useful !!!
from libsvm.
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
from libsvm.
from libsvm.
from libsvm.
from libsvm.
from libsvm.
Related Issues (20)
- How to use the saved trained svm model file manually HOT 1
- how can i improve train speed? HOT 1
- why my memory always HOT 1
- Some dataset problem HOT 2
- static library HOT 1
- gridregression.py
- LIBSVM library not found HOT 1
- gridregression.py 出现 RuntimeError: get no mse HOT 2
- Exception Thrown: read access violation HOT 1
- 使用svm-train.exe做回归(regression),参数c与g如何优化 HOT 1
- How to modify SVR loss function? HOT 1
- Accuracies lower than 50% if the random seed is unlucky HOT 8
- one class svm HOT 1
- Questions about the results of libSVM HOT 6
- Questions about probability estimation of one-class svm HOT 4
- 如何调整nu,使训练集的准确率增加? HOT 6
- cannot find -lgcc: No such file or directory HOT 1
- When using svm-scale , missing values come out. HOT 1
- Try using a custom objective function
- MATLAB Crashes when trying to run "svmtrain" on CentOS HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from libsvm.