我已按照文档中的说明使用CMake配置了项目(http://face.ci2cv.net/doc/)但是,当我执行该步骤时,发出make
,发生了错误。错误消息如下:
[ 2%] Building CXX object src/utils/CMakeFiles/utilities.dir/helpers.cpp.o
/Users/RH/Downloads/face-analysis-sdk-master/src/utils/helpers.cpp:101:3: error:
use of undeclared identifier 'assert'
assert(svd.w.type() == cv::DataType<double>::type);
^
/Users/RH/Downloads/face-analysis-sdk-master/src/utils/helpers.cpp:102:3: error:
use of undeclared identifier 'assert'
assert(svd.w.cols == 1);
^
/Users/RH/Downloads/face-analysis-sdk-master/src/utils/helpers.cpp:317:5: error:
use of undeclared identifier 'assert'
assert(rv.type() == cv::DataType<uint8_t>::type);
^
/Users/RH/Downloads/face-analysis-sdk-master/src/utils/helpers.cpp:332:41: error:
use of undeclared identifier 'CV_BGR2GRAY'
return load_grayscale_image(pathname, CV_BGR2GRAY, original_image);
^
4 errors generated.
make[2]: *** [src/utils/CMakeFiles/utilities.dir/helpers.cpp.o] Error 1
make[1]: *** [src/utils/CMakeFiles/utilities.dir/all] Error 2
make: *** [all] Error 2
我该如何解决这个问题?