biometrics / openbr

Open Source Biometrics, Face Recognition
www.openbiometrics.org
Other
2.85k stars 773 forks source link

Fails to build with OpenCV 3.2.0 #578

Open pinaa opened 4 years ago

pinaa commented 4 years ago

I modified openbr/CMakeLists.txt so I could compile the code by changing the line,

find_package(OpenCV 2.4.5 REQUIRED) 

with

find_package(OpenCV 3.2.0 REQUIRED)

However, it breaks on boost.h at the definition of struct CascadeBoostParams : CvBoostParams {..};" with, boost.h:35:1: error: expected class-name before ‘{’ token 35 | { | ^ because CvBoostParams is not defined. I really didn't want to install OpenCV 2.4.5. Is it possible to get build it with 3.2.0? My OS is Ubuntu 20.04.1 LTS with the latest utils.

Thanks, Art