dyne / frei0r

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

frei0r can not be built on Oracle Linux 8 #129

Closed andyone closed 1 year ago

andyone commented 1 year ago

Environment info

NAME="Oracle Linux Server"
VERSION="8.7"
ID="ol"
ID_LIKE="fedora"
VARIANT="Server"
VARIANT_ID="server"
VERSION_ID="8.7"
PLATFORM_ID="platform:el8"
PRETTY_NAME="Oracle Linux Server 8.7"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:oracle:linux:8:7:server"
HOME_URL="https://linux.oracle.com/"
BUG_REPORT_URL="https://bugzilla.oracle.com/"

ORACLE_BUGZILLA_PRODUCT="Oracle Linux 8"
ORACLE_BUGZILLA_PRODUCT_VERSION=8.7
ORACLE_SUPPORT_PRODUCT="Oracle Linux"
ORACLE_SUPPORT_PRODUCT_VERSION=8.7
        make: make-4.2.1-11.el8.x86_64
         gcc: gcc-8.5.0-15.0.2.el8.x86_64
     gcc-c++: gcc-c++-8.5.0-15.0.2.el8.x86_64
    automake: automake-1.16.5-0.el8.noarch
     libtool: libtool-2.4.6-25.el8.x86_64
    autoconf: autoconf-2.69-29.el8.noarch
opencv-devel: opencv-devel-3.4.6-8.el8.x86_64
  gavl-devel: gavl-devel-1.4.0-1.el8.x86_64

Build error:

filter/facebl0r/facebl0r.cpp:192:64: error: 'LINE_AA' is not a member of 'cv'
               cv::ellipse(image, face_box, CV_RGB(255,0,0), 2, cv::LINE_AA);
                                                                ^
filter/facebl0r/facebl0r.cpp: In member function 'void TrackedObj::update_hist()':
filter/facebl0r/facebl0r.cpp:235:29: error: 'nullptr' was not declared in this scope
   cv::calcHist(&hue_roi, 1, nullptr, mask_roi, hist, 1, &hist_bins, &range);
                             ^
filter/facebl0r/facebl0r.cpp: In member function 'cv::RotatedRect TrackedObj::camshift_track_face()':
filter/facebl0r/facebl0r.cpp:244:32: error: 'nullptr' was not declared in this scope
   cv::calcBackProject(&hue, 1, nullptr, hist, prob, &range);
                                ^
filter/facedetect/facedetect.cpp: In member function 'void FaceDetect::draw()':
filter/facedetect/facedetect.cpp:252:42: error: 'FILLED' is not a member of 'cv'
             int thickness = stroke <= 0? cv::FILLED : cvRound(stroke * 100);
                                          ^
filter/facedetect/facedetect.cpp:253:39: error: 'LINE_AA' is not a member of 'cv'
             int linetype = antialias? cv::LINE_AA : 8;