[Slackbuilds-users] frei0r slackbuild issue
Christoph Willing
chris.willing at linux.com
Mon Jan 20 14:05:07 UTC 2020
On 20/1/20 11:07 pm, Tim Dickson via SlackBuilds-users wrote:
> frei0r is failing to build when opencv is installed. (using sbopkg).
> see error below. Any ideas on how to fix it?
>
>> /tmp/SBo/frei0r-plugins-1.7.0/src/filter/facebl0r/facebl0r.cpp: In
>> member function 'virtual void FaceBl0r::update(double, uint32_t*,
>> const uint32_t*)':
>> /tmp/SBo/frei0r-plugins-1.7.0/src/filter/facebl0r/facebl0r.cpp:217:43:
>> error: could not convert
>> '((FaceBl0r*)this)->FaceBl0r::tracked_obj->TrackedObj::prev_rect' from
>> 'cv::Rect {aka cv::Rect_<int>}' to 'CvRect'
>> cvSetImageROI (image, tracked_obj->prev_rect);
>> ^
>> /tmp/SBo/frei0r-plugins-1.7.0/src/filter/facebl0r/facebl0r.cpp:226:73:
>> error: could not convert 'cv::Scalar_<double>(0.0, 0.0, 2.55e+2, 0.0)'
>> from 'cv::Scalar {aka cv::Scalar_<double>}' to 'CvScalar'
>> cvEllipseBox(image, face_box, CV_RGB(255,0,0), 2,
>> CV_AA, 0);
>> ^
>> /tmp/SBo/frei0r-plugins-1.7.0/src/filter/facebl0r/facebl0r.cpp: In
>> member function 'CvBox2D FaceBl0r::camshift_track_face(IplImage*,
>> TrackedObj*)':
>> /tmp/SBo/frei0r-plugins-1.7.0/src/filter/facebl0r/facebl0r.cpp:350:10:
>> error: could not convert 'rot_rect' from 'cv::RotatedRect' to 'CvBox2D'
>> return rot_rect;
>> ^
>> src/filter/facebl0r/CMakeFiles/facebl0r.dir/build.make:62: recipe for
>> target 'src/filter/facebl0r/CMakeFiles/facebl0r.dir/facebl0r.cpp.o'
>> failed
>> make[2]: ***
>> [src/filter/facebl0r/CMakeFiles/facebl0r.dir/facebl0r.cpp.o] Error 1
>> CMakeFiles/Makefile2:632: recipe for target
>> 'src/filter/facebl0r/CMakeFiles/facebl0r.dir/all' failed
>> make[1]: *** [src/filter/facebl0r/CMakeFiles/facebl0r.dir/all] Error 2
>> Makefile:127: recipe for target 'all' failed
>> make: *** [all] Error 2
>
I think the alternatives are:
1. file a bug report with frei0r, about compatibility with the latest
opencv-4.2.0 (I'm pretty sure it was OK with the previous opencv-4.1.0).
2. build frei0r using opencv-legacy rather than opencv
3. don't build frei0r against opencv or opencv-legacy at all (since
it's an optional dep for frei0r).
chris
More information about the SlackBuilds-users
mailing list