dyne / frei0r

A large collection of free and portable video plugins
https://frei0r.dyne.org/
GNU General Public License v2.0
427 stars 89 forks source link

Fails to build with opencv 3.4.2 #26

Closed dbermond closed 6 years ago

dbermond commented 6 years ago

I'm getting this compile error when using the newly released opencv 3.4.2:

filter/facebl0r/facebl0r.cpp: In member function ‘virtual void FaceBl0r::update(double, uint32_t*, const uint32_t*)’:
filter/facebl0r/facebl0r.cpp:224:45: error: ‘CV_RGB’ was not declared in this scope
               cvEllipseBox(image, face_box, CV_RGB(255,0,0), 2, CV_AA, 0);
                                             ^~~~~~
filter/facebl0r/facebl0r.cpp:224:45: note: suggested alternative: ‘CV_C’
               cvEllipseBox(image, face_box, CV_RGB(255,0,0), 2, CV_AA, 0);
                                             ^~~~~~
                                             CV_C

It builds fine when using opencv 3.4.1.

It seems that the macro CV_RGB is not defined anymore in opencv 3.4.2.

System Information: OS: Arch Linux x86_64 Compiler: gcc 8.1.1 frei0r-plugins: git master opencv: 3.4.2

cwilling commented 6 years ago

I see the same problem here (Slackware64-14.2). I've submitted PR #27 which fixes the issue for me.

jaromil commented 6 years ago

PR merged! thanks.