BINGObjectness
BINGObjectness copied to clipboard
compile error
When I run compile.m I encountered this error:
BINGObjectness-master/BINGSingle.cpp:5:
/usr/include/c++/4.8/bits/c++0x_warning.h:32:2: error: #error This file requires compiler
and library support for the ISO C++ 2011 standard. This support is currently experimental,
and must be enabled with the -std=c++11 or -std=gnu++11 compiler options.
Do you have any idea about this error?
When I run compile.m, I encountered another error:
Objectness/Src/CmTimer.h: In member function ‘void CmTimer::Reset()’: Objectness/Src/CmTimer.h:59:88: warning: format ‘%s’ expects a matching ‘char*’ argument [-Wformat]
mex: compile of ' "BINGSingle.cpp"' failed.
Unable to complete successfully.
Error in compile (line 37) eval(['mex BINGSingle.cpp' include lib objects ' CFLAGS="$CFLAGS -fopenmp" LDFLAGS="$LDFLAGS -fopenmp" ']);
It is a warning. I donot think this is the reason for the failure of compilation.
2015-11-26 12:03 GMT+08:00, Lin JM [email protected]:
When I run compile.m, I encountered another error:
Objectness/Src/CmTimer.h: In member function ‘void CmTimer::Reset()’: Objectness/Src/CmTimer.h:59:88: warning: format ‘%s’ expects a matching ‘char*’ argument [-Wformat]
mex: compile of ' "BINGSingle.cpp"' failed.Unable to complete successfully.
Error in compile (line 37) eval(['mex BINGSingle.cpp' include lib objects ' CFLAGS="$CFLAGS -fopenmp" LDFLAGS="$LDFLAGS -fopenmp" ']);
Reply to this email directly or view it on GitHub: https://github.com/tfzhou/BINGObjectness/issues/2#issuecomment-159798393
yes, you are right. I actually find the error is :
In file included from /usr/include/c++/4.8/random:35:0,
from Objectness/Src/kyheader.h:29,
from BINGSingle.cpp:5:
/usr/include/c++/4.8/bits/c++0x_warning.h:32:2: error: #error This file requires compiler and library support for the ISO C++ 2011 standard. This support is currently experimental, and must be enabled with the -std=c++11 or -std=gnu++11 compiler options.
#error This file requires compiler and library support for the
^
In file included from /usr/include/c++/4.8/backward/strstream:51:0,
from Objectness/Src/kyheader.h:33,
from BINGSingle.cpp:5:
We can see that the compiler used in your Matlab does not support C++ 11. Maybe you should install a higher version of gcc, and link (ln -s xx xx) it to the Matlab compiler so that Matlab can use the higher gcc rather than the built-in one.
2015-11-26 14:48 GMT+08:00 Lin JM [email protected]:
yes, you are right. I actually find the error is : In file included from /usr/include/c++/4.8/random:35:0, from Objectness/Src/kyheader.h:29, from BINGSingle.cpp:5: /usr/include/c++/4.8/bits/c++0x_warning.h:32:2: error: #error This file requires compiler and library support for the ISO C++ 2011 standard. This support is currently experimental, and must be enabled with the -std=c++11 or -std=gnu++11 compiler options. #error This file requires compiler and library support for the
^ In file included from /usr/include/c++/4.8/backward/strstream:51:0, from Objectness/Src/kyheader.h:33, from BINGSingle.cpp:5:— Reply to this email directly or view it on GitHub https://github.com/tfzhou/BINGObjectness/issues/2#issuecomment-159824409 .
although I have update the higher version of gcc (4.9), I still encounter the error:
In file included from /usr/include/c++/4.9/random:35:0,
from Objectness/Src/kyheader.h:29,
from BINGSingle.cpp:5:
/usr/include/c++/4.9/bits/c++0x_warning.h:32:2: error: #error This file requires compiler and library support for the ISO C++ 2011 standard. This support is currently experimental, and must be enabled with the -std=c++11 or -std=gnu++11 compiler options.
#error This file requires compiler and library support for the
^
I have little idea about this. The error appears in the project of Shuai Zheng(https://github.com/bittnt/Objectness). You may compile his project firstly.
Hi, I run the code on Matlab2014b, ubuntu 64bit and I got error message as: Unexpected Standard exception from MEX file. What() is:Objectness/Src/DataSetVOC.cpp:123: error: (-215) Invalidate class name in function loadBox
..
Error in Example_BINGSingle (line 10) BBs = BINGSingle( im, vocPath, 2, 8, 2, 130 );
So, is it error related to opencv?
this is caused by the line break in the directory /voc2007/imageset/main/ in this directory the txt files' line break is windows style line break(\r\n) not the unix line break(\r). because the author's code is specified to windows style line break. you can change it in the datasetvoc.cpp.