error: ‘str’ was not declared in this scope

19 views
Skip to first unread message

Rashmi Mendis

unread,
Mar 23, 2018, 5:51:13 AM3/23/18
to Caffe Users
Hey guys,

This is bit of an emergency. I'm struggling to install Caffe on my ubuntu machine to proceed with my Final Year project. When I use the command make all -j8 it gives me the following error. Any help?


src/caffe/util/bbox_util.cpp: In instantiation of ‘void caffe::RboxToPolygon(const Dtype*, caffe::Polygon&) [with Dtype = float; caffe::Polygon = boost::geometry::model::polygon<boost::geometry::model::d2::point_xy<float> >]’:
src/caffe/util/bbox_util.cpp:747:64:   required from here
src/caffe/util/bbox_util.cpp:743:145: error: ‘str’ was not declared in this scope
   std::string s = str(boost::format("POLYGON((%1% %2%, %3% %4%, %5% %6%, %7% %8%, %9% %10%))") % x1 % y1 % x2 % y2 % x3 % y3 % x4 % y4 % x1 % y1);
                                                                                                                                                 ^
src/caffe/util/bbox_util.cpp:743:145: note: suggested alternative: ‘sbrk’
   std::string s = str(boost::format("POLYGON((%1% %2%, %3% %4%, %5% %6%, %7% %8%, %9% %10%))") % x1 % y1 % x2 % y2 % x3 % y3 % x4 % y4 % x1 % y1);




thanks in advance

jannis...@web.de

unread,
Mar 23, 2018, 6:01:03 AM3/23/18
to Caffe Users
This might or might not help you, since I can't give you a solution for that error.
But you could instead try to install caffe via "conda" with:

 conda install -c conda-forge caffe

That might be a faster solution. Also good luck with your project.

Przemek D

unread,
Mar 23, 2018, 8:41:10 AM3/23/18
to Caffe Users
What flavor of Caffe are you using? This is not the master branch, as it does not even have anything like bbox_util.

Rashmi Mendis

unread,
Mar 23, 2018, 8:56:01 AM3/23/18
to Caffe Users
It is a custom caffe. I'm trying this TextBoxes++

Rashmi Mendis

unread,
Mar 23, 2018, 8:57:44 AM3/23/18
to Caffe Users
This is a custom version of caffe. I'm trying Textboxes++ 
Reply all
Reply to author
Forward
0 new messages