Closed amattek closed 6 years ago
To help this issue, one need the 1)current os version 2)Xcode or xcode command line tool version 3)boost and other requirements versions 4)opencv version
On Jan 17, 2018, at 8:35 AM, amattek notifications@github.com wrote:
Hello,
The "make" command builds "target dlib" and "target LandmarkDetector", but there is an error when it builds the FaceAnalyzer. Any suggestions as to what might be wrong would be greatly appreciated!
Thanks :)
PSY-C02LD5DNF8J4:OpenFace-master admin$ make [ 1%] Building CXX object lib/3rdParty/dlib/CMakeFiles/dlib.dir/include/dlib/base64/base64_kernel_1.o [ 2%] Building CXX object lib/3rdParty/dlib/CMakeFiles/dlib.dir/include/dlib/bigint/bigint_kernel_1.o [ 4%] Building CXX object lib/3rdParty/dlib/CMakeFiles/dlib.dir/include/dlib/bigint/bigint_kernel_2.o [ 5%] Building CXX object lib/3rdParty/dlib/CMakeFiles/dlib.dir/include/dlib/bit_stream/bit_stream_kernel_1.o [ 6%] Building CXX object lib/3rdParty/dlib/CMakeFiles/dlib.dir/include/dlib/entropy_decoder/entropy_decoder_kernel_1.o [ 8%] Building CXX object lib/3rdParty/dlib/CMakeFiles/dlib.dir/include/dlib/entropy_decoder/entropy_decoder_kernel_2.o [ 9%] Building CXX object lib/3rdParty/dlib/CMakeFiles/dlib.dir/include/dlib/entropy_encoder/entropy_encoder_kernel_1.o [ 10%] Building CXX object lib/3rdParty/dlib/CMakeFiles/dlib.dir/include/dlib/entropy_encoder/entropy_encoder_kernel_2.o [ 12%] Building CXX object lib/3rdParty/dlib/CMakeFiles/dlib.dir/include/dlib/md5/md5_kernel_1.o [ 13%] Building CXX object lib/3rdParty/dlib/CMakeFiles/dlib.dir/include/dlib/tokenizer/tokenizer_kernel_1.o [ 14%] Building CXX object lib/3rdParty/dlib/CMakeFiles/dlib.dir/include/dlib/unicode/unicode.o [ 16%] Building CXX object lib/3rdParty/dlib/CMakeFiles/dlib.dir/include/dlib/data_io/image_dataset_metadata.o [ 17%] Building CXX object lib/3rdParty/dlib/CMakeFiles/dlib.dir/include/dlib/sockets/sockets_kernel_1.o [ 18%] Building CXX object lib/3rdParty/dlib/CMakeFiles/dlib.dir/include/dlib/bsp/bsp.o [ 20%] Building CXX object lib/3rdParty/dlib/CMakeFiles/dlib.dir/include/dlib/dir_nav/dir_nav_kernel_1.o [ 21%] Building CXX object lib/3rdParty/dlib/CMakeFiles/dlib.dir/include/dlib/dir_nav/dir_nav_kernel_2.o [ 22%] Building CXX object lib/3rdParty/dlib/CMakeFiles/dlib.dir/include/dlib/dir_nav/dir_nav_extensions.o [ 24%] Building CXX object lib/3rdParty/dlib/CMakeFiles/dlib.dir/include/dlib/linker/linker_kernel_1.o [ 25%] Building CXX object lib/3rdParty/dlib/CMakeFiles/dlib.dir/include/dlib/logger/extra_logger_headers.o [ 27%] Building CXX object lib/3rdParty/dlib/CMakeFiles/dlib.dir/include/dlib/logger/logger_kernel_1.o [ 28%] Building CXX object lib/3rdParty/dlib/CMakeFiles/dlib.dir/include/dlib/logger/logger_config_file.o [ 29%] Building CXX object lib/3rdParty/dlib/CMakeFiles/dlib.dir/include/dlib/misc_api/misc_api_kernel_1.o [ 31%] Building CXX object lib/3rdParty/dlib/CMakeFiles/dlib.dir/include/dlib/misc_api/misc_api_kernel_2.o [ 32%] Building CXX object lib/3rdParty/dlib/CMakeFiles/dlib.dir/include/dlib/sockets/sockets_extensions.o [ 33%] Building CXX object lib/3rdParty/dlib/CMakeFiles/dlib.dir/include/dlib/sockets/sockets_kernel_2.o [ 35%] Building CXX object lib/3rdParty/dlib/CMakeFiles/dlib.dir/include/dlib/sockstreambuf/sockstreambuf.o [ 36%] Building CXX object lib/3rdParty/dlib/CMakeFiles/dlib.dir/include/dlib/sockstreambuf/sockstreambuf_unbuffered.o [ 37%] Building CXX object lib/3rdParty/dlib/CMakeFiles/dlib.dir/include/dlib/server/server_kernel.o [ 39%] Building CXX object lib/3rdParty/dlib/CMakeFiles/dlib.dir/include/dlib/server/server_iostream.o [ 40%] Building CXX object lib/3rdParty/dlib/CMakeFiles/dlib.dir/include/dlib/server/server_http.o [ 41%] Building CXX object lib/3rdParty/dlib/CMakeFiles/dlib.dir/include/dlib/threads/multithreaded_object_extension.o [ 43%] Building CXX object lib/3rdParty/dlib/CMakeFiles/dlib.dir/include/dlib/threads/threaded_object_extension.o [ 44%] Building CXX object lib/3rdParty/dlib/CMakeFiles/dlib.dir/include/dlib/threads/threads_kernel_1.o [ 45%] Building CXX object lib/3rdParty/dlib/CMakeFiles/dlib.dir/include/dlib/threads/threads_kernel_2.o [ 47%] Building CXX object lib/3rdParty/dlib/CMakeFiles/dlib.dir/include/dlib/threads/threads_kernel_shared.o [ 48%] Building CXX object lib/3rdParty/dlib/CMakeFiles/dlib.dir/include/dlib/threads/thread_pool_extension.o [ 50%] Building CXX object lib/3rdParty/dlib/CMakeFiles/dlib.dir/include/dlib/timer/timer.o [ 51%] Building CXX object lib/3rdParty/dlib/CMakeFiles/dlib.dir/include/dlib/stack_trace.o [ 52%] Building CXX object lib/3rdParty/dlib/CMakeFiles/dlib.dir/include/dlib/image_loader/png_loader.o [ 54%] Building CXX object lib/3rdParty/dlib/CMakeFiles/dlib.dir/include/dlib/image_saver/save_png.o [ 55%] Building CXX object lib/3rdParty/dlib/CMakeFiles/dlib.dir/include/dlib/image_loader/jpeg_loader.o [ 56%] Linking CXX static library libdlib.a /Library/Developer/CommandLineTools/usr/bin/ranlib: file: libdlib.a(sockets_kernel_1.o) has no symbols /Library/Developer/CommandLineTools/usr/bin/ranlib: file: libdlib.a(dir_nav_kernel_1.o) has no symbols /Library/Developer/CommandLineTools/usr/bin/ranlib: file: libdlib.a(threads_kernel_1.o) has no symbols /Library/Developer/CommandLineTools/usr/bin/ranlib: file: libdlib.a(stack_trace.o) has no symbols /Library/Developer/CommandLineTools/usr/bin/ranlib: file: libdlib.a(sockets_kernel_1.o) has no symbols /Library/Developer/CommandLineTools/usr/bin/ranlib: file: libdlib.a(dir_nav_kernel_1.o) has no symbols /Library/Developer/CommandLineTools/usr/bin/ranlib: file: libdlib.a(threads_kernel_1.o) has no symbols /Library/Developer/CommandLineTools/usr/bin/ranlib: file: libdlib.a(stack_trace.o) has no symbols [ 56%] Built target dlib Scanning dependencies of target LandmarkDetector [ 58%] Building CXX object lib/local/LandmarkDetector/CMakeFiles/LandmarkDetector.dir/src/CCNF_patch_expert.cpp.o [ 59%] Building CXX object lib/local/LandmarkDetector/CMakeFiles/LandmarkDetector.dir/src/LandmarkDetectionValidator.cpp.o [ 60%] Building CXX object lib/local/LandmarkDetector/CMakeFiles/LandmarkDetector.dir/src/LandmarkDetectorFunc.cpp.o [ 62%] Building CXX object lib/local/LandmarkDetector/CMakeFiles/LandmarkDetector.dir/src/LandmarkDetectorModel.cpp.o [ 63%] Building CXX object lib/local/LandmarkDetector/CMakeFiles/LandmarkDetector.dir/src/LandmarkDetectorUtils.cpp.o [ 64%] Building CXX object lib/local/LandmarkDetector/CMakeFiles/LandmarkDetector.dir/src/LandmarkDetectorParameters.cpp.o [ 66%] Building CXX object lib/local/LandmarkDetector/CMakeFiles/LandmarkDetector.dir/src/Patch_experts.cpp.o [ 67%] Building CXX object lib/local/LandmarkDetector/CMakeFiles/LandmarkDetector.dir/src/PAW.cpp.o [ 68%] Building CXX object lib/local/LandmarkDetector/CMakeFiles/LandmarkDetector.dir/src/PDM.cpp.o [ 70%] Building CXX object lib/local/LandmarkDetector/CMakeFiles/LandmarkDetector.dir/src/SVR_patch_expert.cpp.o [ 71%] Building CXX object lib/local/LandmarkDetector/CMakeFiles/LandmarkDetector.dir/src/stdafx.cpp.o [ 72%] Linking CXX static library libLandmarkDetector.a [ 72%] Built target LandmarkDetector Scanning dependencies of target FaceAnalyser [ 74%] Building CXX object lib/local/FaceAnalyser/CMakeFiles/FaceAnalyser.dir/src/Face_utils.cpp.o [ 75%] Building CXX object lib/local/FaceAnalyser/CMakeFiles/FaceAnalyser.dir/src/FaceAnalyser.cpp.o In file included from /Users/admin/Documents/MATLAB/OpenFace-master/lib/local/FaceAnalyser/src/FaceAnalyser.cpp:35: In file included from /Users/admin/Documents/MATLAB/OpenFace-master/lib/local/FaceAnalyser/./include/FaceAnalyser.h:44: In file included from /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/core.hpp:48: In file included from /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core.hpp:59: /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat.hpp:2153:37: error: no type named 'channel_type' in 'cv::DataType' typedef typename DataType
::channel_type channeltype; ^ /Users/admin/Documents/MATLAB/OpenFace-master/lib/local/FaceAnalyser/./include/FaceAnalyser.h:169:25: note: in instantiation of template class 'cv::Mat' requested here cv::Mat geom_desc_hist; ^ In file included from /Users/admin/Documents/MATLAB/OpenFace-master/lib/local/FaceAnalyser/src/FaceAnalyser.cpp:35: In file included from /Users/admin/Documents/MATLAB/OpenFace-master/lib/local/FaceAnalyser/./include/FaceAnalyser.h:44: In file included from /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/core.hpp:48: In file included from /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core.hpp:59: /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat.hpp:2191:69: error: no type named 'channeltype' in 'cv::DataType' template explicit Mat(const Vec<typename DataType ::channel_type, n>& vec, bool copyData=true); ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat.hpp:2192:77: error: no type named 'channel_type' in 'cv::DataType' template<int m, int n> explicit Mat(const Matx<typename DataType ::channel_type, m, n>& mtx, bool copyData=true); ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat.hpp:2193:56: error: no type named 'channeltype' in 'cv::DataType' explicit Mat(const Point<typename DataType ::channel_type>& pt, bool copyData=true); ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat.hpp:2194:57: error: no type named 'channeltype' in 'cv::DataType' explicit Mat(const Point3<typename DataType<_Tp>::channel_type>& pt, bool copyData=true); ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat.hpp:2307:58: error: no type named 'channel_type' in 'cv::DataType' template operator Vec<typename DataType ::channel_type, n>() const; ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat.hpp:2309:66: error: no type named 'channel_type' in 'cv::DataType' template<int m, int n> operator Matx<typename DataType ::channel_type, m, n>() const; ^ /Users/admin/Documents/MATLAB/OpenFace-master/lib/local/FaceAnalyser/src/FaceAnalyser.cpp:767:5: error: cannot initialize object parameter of type 'const cv::Mat' with an expression of type 'cv::Mat' if(histogram.empty()) ^ ~~~~ /Users/admin/Documents/MATLAB/OpenFace-master/lib/local/FaceAnalyser/src/FaceAnalyser.cpp:785:14: error: no matching member function for call to 'at' histogram.at(i, index)++; ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat.inl.hpp:1090:11: note: candidate function not viable: no known conversion from 'cv::Mat' to 'cv::Mat' for object argument Tp& Mat::at(int i0, int i1) ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat.inl.hpp:1101:17: note: candidate function not viable: no known conversion from 'cv::Mat' to 'const cv::Mat' for object argument const _Tp& Mat::at(int i0, int i1) const ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat.inl.hpp:1134:11: note: candidate function template not viable: allows at most single argument 'i0', but 2 arguments were provided _Tp& Mat::at(int i0) ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat.inl.hpp:1149:17: note: candidate function template not viable: allows at most single argument 'i0', but 2 arguments were provided const _Tp& Mat::at(int i0) const ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat.inl.hpp:1164:11: note: candidate function template not viable: requires 3 arguments, but 2 were provided _Tp& Mat::at(int i0, int i1, int i2) ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat.inl.hpp:1171:17: note: candidate function template not viable: requires 3 arguments, but 2 were provided const _Tp& Mat::at(int i0, int i1, int i2) const ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat.inl.hpp:1112:11: note: candidate function template not viable: requires single argument 'pt', but 2 arguments were provided _Tp& Mat::at(Point pt) ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat.inl.hpp:1123:17: note: candidate function template not viable: requires single argument 'pt', but 2 arguments were provided const _Tp& Mat::at(Point pt) const ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat.inl.hpp:1178:11: note: candidate function template not viable: requires single argument 'idx', but 2 arguments were provided _Tp& Mat::at(const int idx) ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat.inl.hpp:1185:17: note: candidate function template not viable: requires single argument 'idx', but 2 arguments were provided const _Tp& Mat::at(const int idx) const ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat.inl.hpp:1192:11: note: candidate function template not viable: requires single argument 'idx', but 2 arguments were provided _Tp& Mat::at(const Vec<int, n>& idx) ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat.inl.hpp:1199:17: note: candidate function template not viable: requires single argument 'idx', but 2 arguments were provided const Tp& Mat::at(const Vec<int, n>& idx) const ^ /Users/admin/Documents/MATLAB/OpenFace-master/lib/local/FaceAnalyser/src/FaceAnalyser.cpp:807:34: error: no matching member function for call to 'at' cummulative_sum += histogram.at(i, j); ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat.inl.hpp:1090:11: note: candidate function not viable: no known conversion from 'cv::Mat' to 'cv::Mat' for object argument Tp& Mat::at(int i0, int i1) ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat.inl.hpp:1101:17: note: candidate function not viable: no known conversion from 'cv::Mat' to 'const cv::Mat' for object argument const _Tp& Mat::at(int i0, int i1) const ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat.inl.hpp:1134:11: note: candidate function template not viable: allows at most single argument 'i0', but 2 arguments were provided _Tp& Mat::at(int i0) ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat.inl.hpp:1149:17: note: candidate function template not viable: allows at most single argument 'i0', but 2 arguments were provided const _Tp& Mat::at(int i0) const ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat.inl.hpp:1164:11: note: candidate function template not viable: requires 3 arguments, but 2 were provided _Tp& Mat::at(int i0, int i1, int i2) ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat.inl.hpp:1171:17: note: candidate function template not viable: requires 3 arguments, but 2 were provided const _Tp& Mat::at(int i0, int i1, int i2) const ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat.inl.hpp:1112:11: note: candidate function template not viable: requires single argument 'pt', but 2 arguments were provided _Tp& Mat::at(Point pt) ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat.inl.hpp:1123:17: note: candidate function template not viable: requires single argument 'pt', but 2 arguments were provided const _Tp& Mat::at(Point pt) const ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat.inl.hpp:1178:11: note: candidate function template not viable: requires single argument 'idx', but 2 arguments were provided _Tp& Mat::at(const int idx) ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat.inl.hpp:1185:17: note: candidate function template not viable: requires single argument 'idx', but 2 arguments were provided const _Tp& Mat::at(const int idx) const ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat.inl.hpp:1192:11: note: candidate function template not viable: requires single argument 'idx', but 2 arguments were provided Tp& Mat::at(const Vec<int, n>& idx) ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat.inl.hpp:1199:17: note: candidate function template not viable: requires single argument 'idx', but 2 arguments were provided const Tp& Mat::at(const Vec<int, n>& idx) const ^ /Users/admin/Documents/MATLAB/OpenFace-master/lib/local/FaceAnalyser/src/FaceAnalyser.cpp:827:5: error: cannot initialize object parameter of type 'const cv::Mat' with an expression of type 'cv::Mat' if(histogram.empty()) ^~~~~ /Users/admin/Documents/MATLAB/OpenFace-master/lib/local/FaceAnalyser/src/FaceAnalyser.cpp:847:34: error: no matching member function for call to 'at' cummulative_sum += histogram.at(i, j); ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat.inl.hpp:1090:11: note: candidate function not viable: no known conversion from 'cv::Mat' to 'cv::Mat' for object argument Tp& Mat::at(int i0, int i1) ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat.inl.hpp:1101:17: note: candidate function not viable: no known conversion from 'cv::Mat' to 'const cv::Mat' for object argument const _Tp& Mat::at(int i0, int i1) const ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat.inl.hpp:1134:11: note: candidate function template not viable: allows at most single argument 'i0', but 2 arguments were provided _Tp& Mat::at(int i0) ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat.inl.hpp:1149:17: note: candidate function template not viable: allows at most single argument 'i0', but 2 arguments were provided const _Tp& Mat::at(int i0) const ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat.inl.hpp:1164:11: note: candidate function template not viable: requires 3 arguments, but 2 were provided _Tp& Mat::at(int i0, int i1, int i2) ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat.inl.hpp:1171:17: note: candidate function template not viable: requires 3 arguments, but 2 were provided const _Tp& Mat::at(int i0, int i1, int i2) const ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat.inl.hpp:1112:11: note: candidate function template not viable: requires single argument 'pt', but 2 arguments were provided _Tp& Mat::at(Point pt) ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat.inl.hpp:1123:17: note: candidate function template not viable: requires single argument 'pt', but 2 arguments were provided const _Tp& Mat::at(Point pt) const ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat.inl.hpp:1178:11: note: candidate function template not viable: requires single argument 'idx', but 2 arguments were provided _Tp& Mat::at(const int idx) ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat.inl.hpp:1185:17: note: candidate function template not viable: requires single argument 'idx', but 2 arguments were provided const _Tp& Mat::at(const int idx) const ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat.inl.hpp:1192:11: note: candidate function template not viable: requires single argument 'idx', but 2 arguments were provided Tp& Mat::at(const Vec<int, n>& idx) ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat.inl.hpp:1199:17: note: candidate function template not viable: requires single argument 'idx', but 2 arguments were provided const Tp& Mat::at(const Vec<int, n>& idx) const ^ /Users/admin/Documents/MATLAB/OpenFace-master/lib/local/FaceAnalyser/src/FaceAnalyser.cpp:1140:5: error: cannot initialize object parameter of type 'const cv::Mat' with an expression of type 'cv::Mat' if(prediction_corr_histogram.empty()) ^~~~~~~~~ /Users/admin/Documents/MATLAB/OpenFace-master/lib/local/FaceAnalyser/src/FaceAnalyser.cpp:1157:29: error: no matching member function for call to 'at' prediction_corr_histogram.at(i, index)++; ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat.inl.hpp:1090:11: note: candidate function not viable: no known conversion from 'cv::Mat' to 'cv::Mat' for object argument Tp& Mat::at(int i0, int i1) ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat.inl.hpp:1101:17: note: candidate function not viable: no known conversion from 'cv::Mat' to 'const cv::Mat' for object argument const _Tp& Mat::at(int i0, int i1) const ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat.inl.hpp:1134:11: note: candidate function template not viable: allows at most single argument 'i0', but 2 arguments were provided _Tp& Mat::at(int i0) ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat.inl.hpp:1149:17: note: candidate function template not viable: allows at most single argument 'i0', but 2 arguments were provided const _Tp& Mat::at(int i0) const ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat.inl.hpp:1164:11: note: candidate function template not viable: requires 3 arguments, but 2 were provided _Tp& Mat::at(int i0, int i1, int i2) ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat.inl.hpp:1171:17: note: candidate function template not viable: requires 3 arguments, but 2 were provided const _Tp& Mat::at(int i0, int i1, int i2) const ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat.inl.hpp:1112:11: note: candidate function template not viable: requires single argument 'pt', but 2 arguments were provided _Tp& Mat::at(Point pt) ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat.inl.hpp:1123:17: note: candidate function template not viable: requires single argument 'pt', but 2 arguments were provided const _Tp& Mat::at(Point pt) const ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat.inl.hpp:1178:11: note: candidate function template not viable: requires single argument 'idx', but 2 arguments were provided _Tp& Mat::at(const int idx) ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat.inl.hpp:1185:17: note: candidate function template not viable: requires single argument 'idx', but 2 arguments were provided const _Tp& Mat::at(const int idx) const ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat.inl.hpp:1192:11: note: candidate function template not viable: requires single argument 'idx', but 2 arguments were provided _Tp& Mat::at(const Vec<int, n>& idx) ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat.inl.hpp:1199:17: note: candidate function template not viable: requires single argument 'idx', but 2 arguments were provided const Tp& Mat::at(const Vec<int, n>& idx) const ^ /Users/admin/Documents/MATLAB/OpenFace-master/lib/local/FaceAnalyser/src/FaceAnalyser.cpp:1174:50: error: no matching member function for call to 'at' cummulative_sum += prediction_corr_histogram.at(i, j); ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat.inl.hpp:1090:11: note: candidate function not viable: no known conversion from 'cv::Mat' to 'cv::Mat' for object argument Tp& Mat::at(int i0, int i1) ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat.inl.hpp:1101:17: note: candidate function not viable: no known conversion from 'cv::Mat' to 'const cv::Mat' for object argument const _Tp& Mat::at(int i0, int i1) const ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat.inl.hpp:1134:11: note: candidate function template not viable: allows at most single argument 'i0', but 2 arguments were provided _Tp& Mat::at(int i0) ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat.inl.hpp:1149:17: note: candidate function template not viable: allows at most single argument 'i0', but 2 arguments were provided const _Tp& Mat::at(int i0) const ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat.inl.hpp:1164:11: note: candidate function template not viable: requires 3 arguments, but 2 were provided _Tp& Mat::at(int i0, int i1, int i2) ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat.inl.hpp:1171:17: note: candidate function template not viable: requires 3 arguments, but 2 were provided const _Tp& Mat::at(int i0, int i1, int i2) const ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat.inl.hpp:1112:11: note: candidate function template not viable: requires single argument 'pt', but 2 arguments were provided _Tp& Mat::at(Point pt) ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat.inl.hpp:1123:17: note: candidate function template not viable: requires single argument 'pt', but 2 arguments were provided const _Tp& Mat::at(Point pt) const ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat.inl.hpp:1178:11: note: candidate function template not viable: requires single argument 'idx', but 2 arguments were provided _Tp& Mat::at(const int idx) ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat.inl.hpp:1185:17: note: candidate function template not viable: requires single argument 'idx', but 2 arguments were provided const _Tp& Mat::at(const int idx) const ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat.inl.hpp:1192:11: note: candidate function template not viable: requires single argument 'idx', but 2 arguments were provided _Tp& Mat::at(const Vec<int, n>& idx) ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat.inl.hpp:1199:17: note: candidate function template not viable: requires single argument 'idx', but 2 arguments were provided const Tp& Mat::at(const Vec<int, n>& idx) const ^ /Users/admin/Documents/MATLAB/OpenFace-master/lib/local/FaceAnalyser/src/FaceAnalyser.cpp:1204:49: error: no matching member function for call to 'at' cummulative_sum += prediction_corr_histogram.at(i, j); ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat.inl.hpp:1090:11: note: candidate function not viable: no known conversion from 'cv::Mat' to 'cv::Mat' for object argument Tp& Mat::at(int i0, int i1) ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat.inl.hpp:1101:17: note: candidate function not viable: no known conversion from 'cv::Mat' to 'const cv::Mat' for object argument const _Tp& Mat::at(int i0, int i1) const ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat.inl.hpp:1134:11: note: candidate function template not viable: allows at most single argument 'i0', but 2 arguments were provided _Tp& Mat::at(int i0) ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat.inl.hpp:1149:17: note: candidate function template not viable: allows at most single argument 'i0', but 2 arguments were provided const _Tp& Mat::at(int i0) const ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat.inl.hpp:1164:11: note: candidate function template not viable: requires 3 arguments, but 2 were provided _Tp& Mat::at(int i0, int i1, int i2) ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat.inl.hpp:1171:17: note: candidate function template not viable: requires 3 arguments, but 2 were provided const _Tp& Mat::at(int i0, int i1, int i2) const ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat.inl.hpp:1112:11: note: candidate function template not viable: requires single argument 'pt', but 2 arguments were provided _Tp& Mat::at(Point pt) ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat.inl.hpp:1123:17: note: candidate function template not viable: requires single argument 'pt', but 2 arguments were provided const _Tp& Mat::at(Point pt) const ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat.inl.hpp:1178:11: note: candidate function template not viable: requires single argument 'idx', but 2 arguments were provided _Tp& Mat::at(const int idx) ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat.inl.hpp:1185:17: note: candidate function template not viable: requires single argument 'idx', but 2 arguments were provided const _Tp& Mat::at(const int idx) const ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat.inl.hpp:1192:11: note: candidate function template not viable: requires single argument 'idx', but 2 arguments were provided _Tp& Mat::at(const Vec<int, n>& idx) ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat.inl.hpp:1199:17: note: candidate function template not viable: requires single argument 'idx', but 2 arguments were provided const Tp& Mat::at(const Vec<int, n>& idx) const ^ In file included from /Users/admin/Documents/MATLAB/OpenFace-master/lib/local/FaceAnalyser/src/FaceAnalyser.cpp:35: In file included from /Users/admin/Documents/MATLAB/OpenFace-master/lib/local/FaceAnalyser/./include/FaceAnalyser.h:44: In file included from /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/core.hpp:48: In file included from /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core.hpp:56: /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/traits.hpp:366:31: error: no member named 'type' in 'cv::DataType' { enum { value = DataType::type }; };/usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat.inl.hpp:1500:51: note: in instantiation of template class 'cv::traits::Type' requested here flags = (flags & ~CV_MAT_TYPE_MASK) | traits::Type<Tp>::value; ^ /Library/Developer/CommandLineTools/usr/include/c++/v1/memory:1783:31: note: in instantiation of member function 'cv::Mat::Mat' requested here ::new((void*)__p) _Up(_VSTD::forward<_Args>(__args)...); ^ /Library/Developer/CommandLineTools/usr/include/c++/v1/memory:1694:18: note: in instantiation of function template specialization 'std::1::allocator<cv::Mat >::construct<cv::Mat>' requested here {__a.construct(__p, _VSTD::forward<_Args>(__args)...);} ^ /Library/Developer/CommandLineTools/usr/include/c++/v1/memory:1540:14: note: in instantiation of function template specialization 'std::__1::allocator_traits<std::_1::allocator<cv::Mat > >::_construct<cv::Mat>' requested here {__construct(__has_construct<allocator_type, _Tp*, _Args...>(), ^ /Library/Developer/CommandLineTools/usr/include/c++/v1/vector:978:25: note: in instantiation of function template specialization 'std::__1::allocator_traits<std::1::allocator<cv::Mat > >::construct<cv::Mat>' requested here __alloc_traits::construct(__a, _VSTD::__to_raw_pointer(this->_end)); ^ /Library/Developer/CommandLineTools/usr/include/c++/v1/vector:1031:15: note: in instantiation of member function 'std::_1::vector<cv::Mat, std::_1::allocator<cv::Mat > >::__construct_at_end' requested here this->__construct_at_end(__n); ^ /Library/Developer/CommandLineTools/usr/include/c++/v1/vector:2006:15: note: in instantiation of member function 'std::_1::vector<cv::Mat, std::_1::allocator<cv::Mat > >::__append' requested here this->__append(__sz - __cs); ^ /Users/admin/Documents/MATLAB/OpenFace-master/lib/local/FaceAnalyser/src/FaceAnalyser.cpp:103:16: note: in instantiation of member function 'std::_1::vector<cv::Mat, std::1::allocator<cv::Mat > >::resize' requested here hog_desc_hist.resize(head_orientations.size()); ^ In file included from /Users/admin/Documents/MATLAB/OpenFace-master/lib/local/FaceAnalyser/src/FaceAnalyser.cpp:35: In file included from /Users/admin/Documents/MATLAB/OpenFace-master/lib/local/FaceAnalyser/./include/FaceAnalyser.h:44: In file included from /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/core.hpp:48: In file included from /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core.hpp:59: In file included from /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat.hpp:3642: /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat.inl.hpp:1500:60: error: incomplete definition of type 'cv::traits::Type' flags = (flags & ~CV_MAT_TYPE_MASK) | traits::Type<Tp>::value; ^ /Library/Developer/CommandLineTools/usr/include/c++/v1/memory:1783:31: note: in instantiation of member function 'cv::Mat::Mat' requested here ::new((void*)__p) _Up(_VSTD::forward<_Args>(__args)...); ^ /Library/Developer/CommandLineTools/usr/include/c++/v1/memory:1694:18: note: in instantiation of function template specialization 'std::1::allocator<cv::Mat >::construct<cv::Mat>' requested here {__a.construct(__p, _VSTD::forward<_Args>(__args)...);} ^ /Library/Developer/CommandLineTools/usr/include/c++/v1/memory:1540:14: note: in instantiation of function template specialization 'std::__1::allocator_traits<std::_1::allocator<cv::Mat > >::_construct<cv::Mat>' requested here {__construct(__has_construct<allocator_type, _Tp*, _Args...>(), ^ /Library/Developer/CommandLineTools/usr/include/c++/v1/vector:978:25: note: in instantiation of function template specialization 'std::__1::allocator_traits<std::1::allocator<cv::Mat > >::construct<cv::Mat>' requested here __alloc_traits::construct(__a, _VSTD::__to_raw_pointer(this->_end)); ^ /Library/Developer/CommandLineTools/usr/include/c++/v1/vector:1031:15: note: in instantiation of member function 'std::_1::vector<cv::Mat, std::_1::allocator<cv::Mat > >::__construct_at_end' requested here this->__construct_at_end(__n); ^ /Library/Developer/CommandLineTools/usr/include/c++/v1/vector:2006:15: note: in instantiation of member function 'std::_1::vector<cv::Mat, std::_1::allocator<cv::Mat > >::__append' requested here this->__append(__sz - __cs); ^ /Users/admin/Documents/MATLAB/OpenFace-master/lib/local/FaceAnalyser/src/FaceAnalyser.cpp:103:16: note: in instantiation of member function 'std::1::vector<cv::Mat, std::1::allocator<cv::Mat > >::resize' requested here hog_desc_hist.resize(head_orientations.size()); ^ In file included from /Users/admin/Documents/MATLAB/OpenFace-master/lib/local/FaceAnalyser/src/FaceAnalyser.cpp:35: In file included from /Users/admin/Documents/MATLAB/OpenFace-master/lib/local/FaceAnalyser/./include/FaceAnalyser.h:44: In file included from /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/core.hpp:48: In file included from /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core.hpp:59: In file included from /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat.hpp:3642: /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat.inl.hpp:1563:7: error: no matching constructor for initialization of 'cv::Mat' : Mat(m) ^ ~ /Library/Developer/CommandLineTools/usr/include/c++/v1/memory:1783:31: note: in instantiation of member function 'cv::Mat::Mat' requested here ::new((void*)__p) _Up(_VSTD::forward<_Args>(_args)...); ^ /Library/Developer/CommandLineTools/usr/include/c++/v1/memory:1694:18: note: in instantiation of function template specialization 'std::1::allocator<cv::Mat >::construct<cv::Mat, const cv::Mat &>' requested here {__a.construct(__p, _VSTD::forward<_Args>(__args)...);} ^ /Library/Developer/CommandLineTools/usr/include/c++/v1/memory:1540:14: note: in instantiation of function template specialization 'std::__1::allocator_traits<std::_1::allocator<cv::Mat > >::construct<cv::Mat, const cv::Mat &>' requested here {__construct(__has_construct<allocator_type, _Tp*, _Args...>(), ^ /Library/Developer/CommandLineTools/usr/include/c++/v1/memory:1656:17: note: in instantiation of function template specialization 'std::_1::allocator_traits<std::1::allocator<cv::Mat > >::construct<cv::Mat, const cv::Mat &>' requested here construct(__a, _VSTD::__to_raw_pointer(__end2-1), _VSTD::move_if_noexcept(--__end1)); ^ /Library/Developer/CommandLineTools/usr/include/c++/v1/vector:886:21: note: in instantiation of function template specialization 'std::__1::allocator_traits<std::_1::allocator<cv::Mat > >::_construct_backward<cv::Mat >' requested here __alloc_traits::__construct_backward(this->__alloc(), this->_begin, this->_end, __v._begin); ^ /Library/Developer/CommandLineTools/usr/include/c++/v1/vector:1037:9: note: in instantiation of member function 'std::_1::vector<cv::Mat, std::_1::allocator<cv::Mat > >::__swap_out_circular_buffer' requested here __swap_out_circular_buffer(__v); ^ /Library/Developer/CommandLineTools/usr/include/c++/v1/vector:2006:15: note: in instantiation of member function 'std::_1::vector<cv::Mat, std::_1::allocator<cv::Mat > >::_append' requested here this->append(sz - cs); ^ /Users/admin/Documents/MATLAB/OpenFace-master/lib/local/FaceAnalyser/src/FaceAnalyser.cpp:103:16: note: in instantiation of member function 'std::1::vector<cv::Mat, std::1::allocator<cv::Mat > >::resize' requested here hog_desc_hist.resize(head_orientations.size()); ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat.hpp:1029:14: note: candidate constructor not viable: no known conversion from 'const cv::Mat' to 'const cuda::GpuMat' for 1st argument explicit Mat(const cuda::GpuMat& m); ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat.inl.hpp:476:6: note: candidate constructor not viable: no known conversion from 'const cv::Mat' to 'const cv::Mat' for 1st argument Mat::Mat(const Mat& m) ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat.inl.hpp:1335:6: note: candidate constructor not viable: no known conversion from 'const cv::Mat' to 'cv::Mat' for 1st argument Mat::Mat(Mat&& m) ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat.inl.hpp:561:6: note: candidate template ignored: could not match 'vector' against 'Mat' Mat::Mat(const std::vector<Tp>& vec, bool copyData) ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat.inl.hpp:579:6: note: candidate template ignored: could not match 'initializer_list' against 'Mat' Mat::Mat(const std::initializer_list<Tp> list) ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat.inl.hpp:591:6: note: candidate template ignored: could not match 'array' against 'Mat' Mat::Mat(const std::array<Tp, Nm>& arr, bool copyData) ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat.inl.hpp:609:6: note: candidate template ignored: could not match 'Vec' against 'Mat' Mat::Mat(const Vec<Tp, n>& vec, bool copyData) ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat.inl.hpp:625:6: note: candidate template ignored: could not match 'Matx' against 'Mat' Mat::Mat(const Matx<Tp,m,n>& M, bool copyData) ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat.inl.hpp:641:6: note: candidate template ignored: could not match 'Point' against 'Mat' Mat::Mat(const Point<Tp>& pt, bool copyData) ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat.inl.hpp:660:6: note: candidate template ignored: could not match 'Point3' against 'Mat' Mat::Mat(const Point3<Tp>& pt, bool copyData) ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat.inl.hpp:680:6: note: candidate template ignored: could not match 'MatCommaInitializer' against 'Mat' Mat::Mat(const MatCommaInitializer<_Tp>& commaInitializer) ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat.inl.hpp:402:6: note: candidate constructor not viable: requires 0 arguments, but 1 was provided Mat::Mat() ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat.inl.hpp:425:6: note: candidate constructor not viable: requires 2 arguments, but 1 was provided Mat::Mat(Size _sz, int _type) ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat.inl.hpp:459:6: note: candidate constructor not viable: requires 2 arguments, but 1 was provided Mat::Mat(const std::vector& _sz, int _type) ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat.hpp:955:5: note: candidate constructor not viable: requires 2 arguments, but 1 was provided Mat(const Mat& m, const Rect& roi); ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat.hpp:965:5: note: candidate constructor not viable: requires 2 arguments, but 1 was provided Mat(const Mat& m, const Range ranges); ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat.hpp:975:5: note: candidate constructor not viable: requires 2 arguments, but 1 was provided Mat(const Mat& m, const std::vector& ranges); ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat.inl.hpp:408:6: note: candidate constructor not viable: requires 3 arguments, but 1 was provided Mat::Mat(int _rows, int _cols, int _type) ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat.inl.hpp:433:6: note: candidate constructor not viable: requires 3 arguments, but 1 was provided Mat::Mat(Size _sz, int _type, const Scalar& _s) ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat.inl.hpp:442:6: note: candidate constructor not viable: requires 3 arguments, but 1 was provided Mat::Mat(int _dims, const int _sz, int _type) ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat.inl.hpp:467:6: note: candidate constructor not viable: requires 3 arguments, but 1 was provided Mat::Mat(const std::vector& _sz, int _type, const Scalar& _s) ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat.hpp:945:5: note: candidate constructor not viable: requires at least 2 arguments, but 1 was provided Mat(const Mat& m, const Range& rowRange, const Range& colRange=Range::all()); ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat.inl.hpp:416:6: note: candidate constructor not viable: requires 4 arguments, but 1 was provided Mat::Mat(int _rows, int _cols, int _type, const Scalar& _s) ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat.inl.hpp:450:6: note: candidate constructor not viable: requires 4 arguments, but 1 was provided Mat::Mat(int _dims, const int* _sz, int _type, const Scalar& _s) ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat.inl.hpp:528:6: note: candidate constructor not viable: requires at least 3 arguments, but 1 was provided Mat::Mat(Size _sz, int _type, void* _data, size_t _step) ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat.hpp:933:5: note: candidate constructor not viable: requires at least 3 arguments, but 1 was provided Mat(const std::vector& sizes, int type, void* data, const size_t* steps=0); ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat.inl.hpp:495:6: note: candidate constructor not viable: requires at least 4 arguments, but 1 was provided Mat::Mat(int _rows, int _cols, int _type, void* _data, size_t _step) ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat.hpp:919:5: note: candidate constructor not viable: requires at least 4 arguments, but 1 was provided Mat(int ndims, const int* sizes, int type, void* data, const size_t* steps=0); ^ fatal error: too many errors emitted, stopping now [-ferror-limit=] 20 errors generated. make[2]: *** [lib/local/FaceAnalyser/CMakeFiles/FaceAnalyser.dir/src/FaceAnalyser.cpp.o] Error 1 make[1]: *** [lib/local/FaceAnalyser/CMakeFiles/FaceAnalyser.dir/all] Error 2 make: *** [all] Error 2 — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub <https://github.com/TadasBaltrusaitis/OpenFace/issues/323>, or mute the thread <https://github.com/notifications/unsubscribe-auth/Aa93Ix9mwu3xQ-0lgtcPwewAaeuAZdnMks5tLTI9gaJpZM4Rglm9>.
Thank you!
macOS version: High Sierra 10.13.2
Xcode version: When I type "gcc --version" in Terminal, I get the following output:
Configured with: --prefix=/Library/Developer/CommandLineTools/usr --with-gxx-include-dir=/usr/include/c++/4.2.1
Apple LLVM version 9.0.0 (clang-900.0.39.2)
Target: x86_64-apple-darwin17.3.0
Thread model: posix
InstalledDir: /Library/Developer/CommandLineTools/usr/bin
If I open the Xcode application, and go to "About XCode", it says I have XCode 9.2
Boost version:
I installed the older version of Boost (1_150_0), as suggested by the wiki.
Open CV version:
Open CV was installed using: brew install tbb opencv3, as suggested by the wiki.
Here is the output from the "cmake" command, if that is helpful:
PSY-C02LD5DNF8J4:OpenFace-master admin$ cmake -D CMAKE_BUILD_TYPE=RELEASE .
-- A library with BLAS API found.
OpenCV information:
OpenCV_INCLUDE_DIRS: /usr/local/Cellar/opencv/3.4.0_1/include;/usr/local/Cellar/opencv/3.4.0_1/include/opencv
OpenCV_LIBRARIES: opencv_calib3d;opencv_core;opencv_dnn;opencv_features2d;opencv_flann;opencv_highgui;opencv_imgcodecs;opencv_imgproc;opencv_ml;opencv_objdetect;opencv_photo;opencv_shape;opencv_stitching;opencv_superres;opencv_video;opencv_videoio;opencv_videostab;opencv_aruco;opencv_bgsegm;opencv_bioinspired;opencv_ccalib;opencv_datasets;opencv_dpm;opencv_face;opencv_fuzzy;opencv_img_hash;opencv_line_descriptor;opencv_optflow;opencv_phase_unwrapping;opencv_plot;opencv_reg;opencv_rgbd;opencv_saliency;opencv_stereo;opencv_structured_light;opencv_surface_matching;opencv_text;opencv_tracking;opencv_xfeatures2d;opencv_ximgproc;opencv_xobjdetect;opencv_xphoto
OpenCV_LIBRARY_DIRS:
-- Boost version: 1.50.0
-- Found the following Boost libraries:
-- filesystem
-- system
Boost information:
Boost_INCLUDE_DIRS: /usr/local/include
Boost_LIBRARIES: /usr/local/lib/libboost_filesystem-mt.dylib;/usr/local/lib/libboost_system-mt.dylib
Boost_LIBRARY_DIRS: /usr/local/lib
X11 information:
X11_INCLUDE_DIR: /opt/X11/include
X11_LIBRARIES: /opt/X11/lib/libSM.dylib;/opt/X11/lib/libICE.dylib;/opt/X11/lib/libX11.dylib;/opt/X11/lib/libXext.dylib
X11_LIBRARY_DIRS:
-- Searching for BLAS and LAPACK
-- Found LAPACK library
-- Found CBLAS library
-- Configuring done
-- Generating done
-- Build files have been written to: /Users/admin/Documents/MATLAB/OpenFace-master
On Tue, Jan 16, 2018 at 3:38 PM, iPsych notifications@github.com wrote:
To help this issue, one need the 1)current os version 2)Xcode or xcode command line tool version 3)boost and other requirements versions 4)opencv version
On Jan 17, 2018, at 8:35 AM, amattek notifications@github.com wrote:
Hello,
The "make" command builds "target dlib" and "target LandmarkDetector", but there is an error when it builds the FaceAnalyzer. Any suggestions as to what might be wrong would be greatly appreciated!
Thanks :)
PSY-C02LD5DNF8J4:OpenFace-master admin$ make [ 1%] Building CXX object lib/3rdParty/dlib/CMakeFiles/ dlib.dir/include/dlib/base64/base64_kernel_1.o [ 2%] Building CXX object lib/3rdParty/dlib/CMakeFiles/ dlib.dir/include/dlib/bigint/bigint_kernel_1.o [ 4%] Building CXX object lib/3rdParty/dlib/CMakeFiles/ dlib.dir/include/dlib/bigint/bigint_kernel_2.o [ 5%] Building CXX object lib/3rdParty/dlib/CMakeFiles/ dlib.dir/include/dlib/bit_stream/bit_stream_kernel_1.o [ 6%] Building CXX object lib/3rdParty/dlib/CMakeFiles/ dlib.dir/include/dlib/entropy_decoder/entropy_decoder_kernel_1.o [ 8%] Building CXX object lib/3rdParty/dlib/CMakeFiles/ dlib.dir/include/dlib/entropy_decoder/entropy_decoder_kernel_2.o [ 9%] Building CXX object lib/3rdParty/dlib/CMakeFiles/ dlib.dir/include/dlib/entropy_encoder/entropy_encoder_kernel_1.o [ 10%] Building CXX object lib/3rdParty/dlib/CMakeFiles/ dlib.dir/include/dlib/entropy_encoder/entropy_encoder_kernel_2.o [ 12%] Building CXX object lib/3rdParty/dlib/CMakeFiles/ dlib.dir/include/dlib/md5/md5_kernel_1.o [ 13%] Building CXX object lib/3rdParty/dlib/CMakeFiles/ dlib.dir/include/dlib/tokenizer/tokenizer_kernel_1.o [ 14%] Building CXX object lib/3rdParty/dlib/CMakeFiles/ dlib.dir/include/dlib/unicode/unicode.o [ 16%] Building CXX object lib/3rdParty/dlib/CMakeFiles/ dlib.dir/include/dlib/data_io/image_dataset_metadata.o [ 17%] Building CXX object lib/3rdParty/dlib/CMakeFiles/ dlib.dir/include/dlib/sockets/sockets_kernel_1.o [ 18%] Building CXX object lib/3rdParty/dlib/CMakeFiles/ dlib.dir/include/dlib/bsp/bsp.o [ 20%] Building CXX object lib/3rdParty/dlib/CMakeFiles/ dlib.dir/include/dlib/dir_nav/dir_nav_kernel_1.o [ 21%] Building CXX object lib/3rdParty/dlib/CMakeFiles/ dlib.dir/include/dlib/dir_nav/dir_nav_kernel_2.o [ 22%] Building CXX object lib/3rdParty/dlib/CMakeFiles/ dlib.dir/include/dlib/dir_nav/dir_nav_extensions.o [ 24%] Building CXX object lib/3rdParty/dlib/CMakeFiles/ dlib.dir/include/dlib/linker/linker_kernel_1.o [ 25%] Building CXX object lib/3rdParty/dlib/CMakeFiles/ dlib.dir/include/dlib/logger/extra_logger_headers.o [ 27%] Building CXX object lib/3rdParty/dlib/CMakeFiles/ dlib.dir/include/dlib/logger/logger_kernel_1.o [ 28%] Building CXX object lib/3rdParty/dlib/CMakeFiles/ dlib.dir/include/dlib/logger/logger_config_file.o [ 29%] Building CXX object lib/3rdParty/dlib/CMakeFiles/ dlib.dir/include/dlib/misc_api/misc_api_kernel_1.o [ 31%] Building CXX object lib/3rdParty/dlib/CMakeFiles/ dlib.dir/include/dlib/misc_api/misc_api_kernel_2.o [ 32%] Building CXX object lib/3rdParty/dlib/CMakeFiles/ dlib.dir/include/dlib/sockets/sockets_extensions.o [ 33%] Building CXX object lib/3rdParty/dlib/CMakeFiles/ dlib.dir/include/dlib/sockets/sockets_kernel_2.o [ 35%] Building CXX object lib/3rdParty/dlib/CMakeFiles/ dlib.dir/include/dlib/sockstreambuf/sockstreambuf.o [ 36%] Building CXX object lib/3rdParty/dlib/CMakeFiles/ dlib.dir/include/dlib/sockstreambuf/sockstreambuf_unbuffered.o [ 37%] Building CXX object lib/3rdParty/dlib/CMakeFiles/ dlib.dir/include/dlib/server/server_kernel.o [ 39%] Building CXX object lib/3rdParty/dlib/CMakeFiles/ dlib.dir/include/dlib/server/server_iostream.o [ 40%] Building CXX object lib/3rdParty/dlib/CMakeFiles/ dlib.dir/include/dlib/server/server_http.o [ 41%] Building CXX object lib/3rdParty/dlib/CMakeFiles/ dlib.dir/include/dlib/threads/multithreaded_object_extension.o [ 43%] Building CXX object lib/3rdParty/dlib/CMakeFiles/ dlib.dir/include/dlib/threads/threaded_object_extension.o [ 44%] Building CXX object lib/3rdParty/dlib/CMakeFiles/ dlib.dir/include/dlib/threads/threads_kernel_1.o [ 45%] Building CXX object lib/3rdParty/dlib/CMakeFiles/ dlib.dir/include/dlib/threads/threads_kernel_2.o [ 47%] Building CXX object lib/3rdParty/dlib/CMakeFiles/ dlib.dir/include/dlib/threads/threads_kernel_shared.o [ 48%] Building CXX object lib/3rdParty/dlib/CMakeFiles/ dlib.dir/include/dlib/threads/thread_pool_extension.o [ 50%] Building CXX object lib/3rdParty/dlib/CMakeFiles/ dlib.dir/include/dlib/timer/timer.o [ 51%] Building CXX object lib/3rdParty/dlib/CMakeFiles/ dlib.dir/include/dlib/stack_trace.o [ 52%] Building CXX object lib/3rdParty/dlib/CMakeFiles/ dlib.dir/include/dlib/image_loader/png_loader.o [ 54%] Building CXX object lib/3rdParty/dlib/CMakeFiles/ dlib.dir/include/dlib/image_saver/save_png.o [ 55%] Building CXX object lib/3rdParty/dlib/CMakeFiles/ dlib.dir/include/dlib/image_loader/jpeg_loader.o [ 56%] Linking CXX static library libdlib.a /Library/Developer/CommandLineTools/usr/bin/ranlib: file: libdlib.a(sockets_kernel_1.o) has no symbols /Library/Developer/CommandLineTools/usr/bin/ranlib: file: libdlib.a(dir_nav_kernel_1.o) has no symbols /Library/Developer/CommandLineTools/usr/bin/ranlib: file: libdlib.a(threads_kernel_1.o) has no symbols /Library/Developer/CommandLineTools/usr/bin/ranlib: file: libdlib.a(stack_trace.o) has no symbols /Library/Developer/CommandLineTools/usr/bin/ranlib: file: libdlib.a(sockets_kernel_1.o) has no symbols /Library/Developer/CommandLineTools/usr/bin/ranlib: file: libdlib.a(dir_nav_kernel_1.o) has no symbols /Library/Developer/CommandLineTools/usr/bin/ranlib: file: libdlib.a(threads_kernel_1.o) has no symbols /Library/Developer/CommandLineTools/usr/bin/ranlib: file: libdlib.a(stack_trace.o) has no symbols [ 56%] Built target dlib Scanning dependencies of target LandmarkDetector [ 58%] Building CXX object lib/local/LandmarkDetector/ CMakeFiles/LandmarkDetector.dir/src/CCNF_patch_expert.cpp.o [ 59%] Building CXX object lib/local/LandmarkDetector/ CMakeFiles/LandmarkDetector.dir/src/LandmarkDetectionValidator.cpp.o [ 60%] Building CXX object lib/local/LandmarkDetector/ CMakeFiles/LandmarkDetector.dir/src/LandmarkDetectorFunc.cpp.o [ 62%] Building CXX object lib/local/LandmarkDetector/ CMakeFiles/LandmarkDetector.dir/src/LandmarkDetectorModel.cpp.o [ 63%] Building CXX object lib/local/LandmarkDetector/ CMakeFiles/LandmarkDetector.dir/src/LandmarkDetectorUtils.cpp.o [ 64%] Building CXX object lib/local/LandmarkDetector/ CMakeFiles/LandmarkDetector.dir/src/LandmarkDetectorParameters.cpp.o [ 66%] Building CXX object lib/local/LandmarkDetector/ CMakeFiles/LandmarkDetector.dir/src/Patch_experts.cpp.o [ 67%] Building CXX object lib/local/LandmarkDetector/ CMakeFiles/LandmarkDetector.dir/src/PAW.cpp.o [ 68%] Building CXX object lib/local/LandmarkDetector/ CMakeFiles/LandmarkDetector.dir/src/PDM.cpp.o [ 70%] Building CXX object lib/local/LandmarkDetector/ CMakeFiles/LandmarkDetector.dir/src/SVR_patch_expert.cpp.o [ 71%] Building CXX object lib/local/LandmarkDetector/ CMakeFiles/LandmarkDetector.dir/src/stdafx.cpp.o [ 72%] Linking CXX static library libLandmarkDetector.a [ 72%] Built target LandmarkDetector Scanning dependencies of target FaceAnalyser [ 74%] Building CXX object lib/local/FaceAnalyser/ CMakeFiles/FaceAnalyser.dir/src/Face_utils.cpp.o [ 75%] Building CXX object lib/local/FaceAnalyser/ CMakeFiles/FaceAnalyser.dir/src/FaceAnalyser.cpp.o In file included from /Users/admin/Documents/MATLAB/ OpenFace-master/lib/local/FaceAnalyser/src/FaceAnalyser.cpp:35: In file included from /Users/admin/Documents/MATLAB/ OpenFace-master/lib/local/FaceAnalyser/./include/FaceAnalyser.h:44: In file included from /usr/local/Cellar/opencv/3.4. 0_1/include/opencv2/core/core.hpp:48: In file included from /usr/local/Cellar/opencv/3.4. 0_1/include/opencv2/core.hpp:59: /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat.hpp:2153:37: error: no type named 'channel_type' in 'cv::DataType' typedef typename DataType
::channel_type channeltype; ^ /Users/admin/Documents/MATLAB/OpenFace-master/lib/local/ FaceAnalyser/./include/FaceAnalyser.h:169:25: note: in instantiation of template class 'cv::Mat' requested here cv::Mat geom_desc_hist; ^ In file included from /Users/admin/Documents/MATLAB/ OpenFace-master/lib/local/FaceAnalyser/src/FaceAnalyser.cpp:35: In file included from /Users/admin/Documents/MATLAB/ OpenFace-master/lib/local/FaceAnalyser/./include/FaceAnalyser.h:44: In file included from /usr/local/Cellar/opencv/3.4. 0_1/include/opencv2/core/core.hpp:48: In file included from /usr/local/Cellar/opencv/3.4. 0_1/include/opencv2/core.hpp:59: /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat.hpp:2191:69: error: no type named 'channeltype' in 'cv::DataType' template explicit Mat(const Vec<typename DataType ::channel_type, n>& vec, bool copyData=true); ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat.hpp:2192:77: error: no type named 'channel_type' in 'cv::DataType' template<int m, int n> explicit Mat(const Matx<typename DataType ::channel_type, m, n>& mtx, bool copyData=true); ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat.hpp:2193:56: error: no type named 'channeltype' in 'cv::DataType' explicit Mat(const Point<typename DataType ::channel_type>& pt, bool copyData=true); ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat.hpp:2194:57: error: no type named 'channeltype' in 'cv::DataType' explicit Mat(const Point3<typename DataType<_Tp>::channel_type>& pt, bool copyData=true); ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat.hpp:2307:58: error: no type named 'channel_type' in 'cv::DataType' template operator Vec<typename DataType ::channel_type, n>() const; ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat.hpp:2309:66: error: no type named 'channel_type' in 'cv::DataType' template<int m, int n> operator Matx<typename DataType ::channel_type, m, n>() const; ^ /Users/admin/Documents/MATLAB/OpenFace-master/lib/local/ FaceAnalyser/src/FaceAnalyser.cpp:767:5: error: cannot initialize object parameter of type 'const cv::Mat' with an expression of type 'cv::Mat' if(histogram.empty()) ^ ~~~~ /Users/admin/Documents/MATLAB/OpenFace-master/lib/local/ FaceAnalyser/src/FaceAnalyser.cpp:785:14: error: no matching member function for call to 'at' histogram.at(i, index)++; ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat.inl.hpp:1090:11: note: candidate function not viable: no known conversion from 'cv::Mat' to 'cv::Mat' for object argument Tp& Mat::at(int i0, int i1) ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat.inl.hpp:1101:17: note: candidate function not viable: no known conversion from 'cv::Mat' to 'const cv::Mat' for object argument const _Tp& Mat::at(int i0, int i1) const ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat.inl.hpp:1134:11: note: candidate function template not viable: allows at most single argument 'i0', but 2 arguments were provided _Tp& Mat::at(int i0) ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat.inl.hpp:1149:17: note: candidate function template not viable: allows at most single argument 'i0', but 2 arguments were provided const _Tp& Mat::at(int i0) const ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat.inl.hpp:1164:11: note: candidate function template not viable: requires 3 arguments, but 2 were provided _Tp& Mat::at(int i0, int i1, int i2) ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat.inl.hpp:1171:17: note: candidate function template not viable: requires 3 arguments, but 2 were provided const _Tp& Mat::at(int i0, int i1, int i2) const ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat.inl.hpp:1112:11: note: candidate function template not viable: requires single argument 'pt', but 2 arguments were provided _Tp& Mat::at(Point pt) ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat.inl.hpp:1123:17: note: candidate function template not viable: requires single argument 'pt', but 2 arguments were provided const _Tp& Mat::at(Point pt) const ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat.inl.hpp:1178:11: note: candidate function template not viable: requires single argument 'idx', but 2 arguments were provided _Tp& Mat::at(const int idx) ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat.inl.hpp:1185:17: note: candidate function template not viable: requires single argument 'idx', but 2 arguments were provided const _Tp& Mat::at(const int idx) const ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat.inl.hpp:1192:11: note: candidate function template not viable: requires single argument 'idx', but 2 arguments were provided _Tp& Mat::at(const Vec<int, n>& idx) ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat.inl.hpp:1199:17: note: candidate function template not viable: requires single argument 'idx', but 2 arguments were provided const Tp& Mat::at(const Vec<int, n>& idx) const ^ /Users/admin/Documents/MATLAB/OpenFace-master/lib/local/ FaceAnalyser/src/FaceAnalyser.cpp:807:34: error: no matching member function for call to 'at' cummulative_sum += histogram.at(i, j); ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat.inl.hpp:1090:11: note: candidate function not viable: no known conversion from 'cv::Mat' to 'cv::Mat' for object argument Tp& Mat::at(int i0, int i1) ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat.inl.hpp:1101:17: note: candidate function not viable: no known conversion from 'cv::Mat' to 'const cv::Mat' for object argument const _Tp& Mat::at(int i0, int i1) const ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat.inl.hpp:1134:11: note: candidate function template not viable: allows at most single argument 'i0', but 2 arguments were provided _Tp& Mat::at(int i0) ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat.inl.hpp:1149:17: note: candidate function template not viable: allows at most single argument 'i0', but 2 arguments were provided const _Tp& Mat::at(int i0) const ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat.inl.hpp:1164:11: note: candidate function template not viable: requires 3 arguments, but 2 were provided _Tp& Mat::at(int i0, int i1, int i2) ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat.inl.hpp:1171:17: note: candidate function template not viable: requires 3 arguments, but 2 were provided const _Tp& Mat::at(int i0, int i1, int i2) const ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat.inl.hpp:1112:11: note: candidate function template not viable: requires single argument 'pt', but 2 arguments were provided _Tp& Mat::at(Point pt) ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat.inl.hpp:1123:17: note: candidate function template not viable: requires single argument 'pt', but 2 arguments were provided const _Tp& Mat::at(Point pt) const ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat.inl.hpp:1178:11: note: candidate function template not viable: requires single argument 'idx', but 2 arguments were provided _Tp& Mat::at(const int idx) ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat.inl.hpp:1185:17: note: candidate function template not viable: requires single argument 'idx', but 2 arguments were provided const _Tp& Mat::at(const int idx) const ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat.inl.hpp:1192:11: note: candidate function template not viable: requires single argument 'idx', but 2 arguments were provided Tp& Mat::at(const Vec<int, n>& idx) ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat.inl.hpp:1199:17: note: candidate function template not viable: requires single argument 'idx', but 2 arguments were provided const Tp& Mat::at(const Vec<int, n>& idx) const ^ /Users/admin/Documents/MATLAB/OpenFace-master/lib/local/ FaceAnalyser/src/FaceAnalyser.cpp:827:5: error: cannot initialize object parameter of type 'const cv::Mat' with an expression of type 'cv::Mat' if(histogram.empty()) ^~~~~ /Users/admin/Documents/MATLAB/OpenFace-master/lib/local/ FaceAnalyser/src/FaceAnalyser.cpp:847:34: error: no matching member function for call to 'at' cummulative_sum += histogram.at(i, j); ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat.inl.hpp:1090:11: note: candidate function not viable: no known conversion from 'cv::Mat' to 'cv::Mat' for object argument Tp& Mat::at(int i0, int i1) ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat.inl.hpp:1101:17: note: candidate function not viable: no known conversion from 'cv::Mat' to 'const cv::Mat' for object argument const _Tp& Mat::at(int i0, int i1) const ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat.inl.hpp:1134:11: note: candidate function template not viable: allows at most single argument 'i0', but 2 arguments were provided _Tp& Mat::at(int i0) ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat.inl.hpp:1149:17: note: candidate function template not viable: allows at most single argument 'i0', but 2 arguments were provided const _Tp& Mat::at(int i0) const ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat.inl.hpp:1164:11: note: candidate function template not viable: requires 3 arguments, but 2 were provided _Tp& Mat::at(int i0, int i1, int i2) ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat.inl.hpp:1171:17: note: candidate function template not viable: requires 3 arguments, but 2 were provided const _Tp& Mat::at(int i0, int i1, int i2) const ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat.inl.hpp:1112:11: note: candidate function template not viable: requires single argument 'pt', but 2 arguments were provided _Tp& Mat::at(Point pt) ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat.inl.hpp:1123:17: note: candidate function template not viable: requires single argument 'pt', but 2 arguments were provided const _Tp& Mat::at(Point pt) const ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat.inl.hpp:1178:11: note: candidate function template not viable: requires single argument 'idx', but 2 arguments were provided _Tp& Mat::at(const int idx) ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat.inl.hpp:1185:17: note: candidate function template not viable: requires single argument 'idx', but 2 arguments were provided const _Tp& Mat::at(const int idx) const ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat.inl.hpp:1192:11: note: candidate function template not viable: requires single argument 'idx', but 2 arguments were provided Tp& Mat::at(const Vec<int, n>& idx) ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat.inl.hpp:1199:17: note: candidate function template not viable: requires single argument 'idx', but 2 arguments were provided const Tp& Mat::at(const Vec<int, n>& idx) const ^ /Users/admin/Documents/MATLAB/OpenFace-master/lib/local/ FaceAnalyser/src/FaceAnalyser.cpp:1140:5: error: cannot initialize object parameter of type 'const cv::Mat' with an expression of type 'cv::Mat' if(prediction_corr_histogram.empty()) ^~~~~~~~~ /Users/admin/Documents/MATLAB/OpenFace-master/lib/local/ FaceAnalyser/src/FaceAnalyser.cpp:1157:29: error: no matching member function for call to 'at' prediction_corr_histogram.at(i, index)++; ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat.inl.hpp:1090:11: note: candidate function not viable: no known conversion from 'cv::Mat' to 'cv::Mat' for object argument Tp& Mat::at(int i0, int i1) ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat.inl.hpp:1101:17: note: candidate function not viable: no known conversion from 'cv::Mat' to 'const cv::Mat' for object argument const _Tp& Mat::at(int i0, int i1) const ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat.inl.hpp:1134:11: note: candidate function template not viable: allows at most single argument 'i0', but 2 arguments were provided _Tp& Mat::at(int i0) ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat.inl.hpp:1149:17: note: candidate function template not viable: allows at most single argument 'i0', but 2 arguments were provided const _Tp& Mat::at(int i0) const ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat.inl.hpp:1164:11: note: candidate function template not viable: requires 3 arguments, but 2 were provided _Tp& Mat::at(int i0, int i1, int i2) ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat.inl.hpp:1171:17: note: candidate function template not viable: requires 3 arguments, but 2 were provided const _Tp& Mat::at(int i0, int i1, int i2) const ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat.inl.hpp:1112:11: note: candidate function template not viable: requires single argument 'pt', but 2 arguments were provided _Tp& Mat::at(Point pt) ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat.inl.hpp:1123:17: note: candidate function template not viable: requires single argument 'pt', but 2 arguments were provided const _Tp& Mat::at(Point pt) const ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat.inl.hpp:1178:11: note: candidate function template not viable: requires single argument 'idx', but 2 arguments were provided _Tp& Mat::at(const int idx) ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat.inl.hpp:1185:17: note: candidate function template not viable: requires single argument 'idx', but 2 arguments were provided const _Tp& Mat::at(const int idx) const ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat.inl.hpp:1192:11: note: candidate function template not viable: requires single argument 'idx', but 2 arguments were provided _Tp& Mat::at(const Vec<int, n>& idx) ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat.inl.hpp:1199:17: note: candidate function template not viable: requires single argument 'idx', but 2 arguments were provided const Tp& Mat::at(const Vec<int, n>& idx) const ^ /Users/admin/Documents/MATLAB/OpenFace-master/lib/local/ FaceAnalyser/src/FaceAnalyser.cpp:1174:50: error: no matching member function for call to 'at' cummulative_sum += prediction_corr_histogram.at(i, j); ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat.inl.hpp:1090:11: note: candidate function not viable: no known conversion from 'cv::Mat' to 'cv::Mat' for object argument Tp& Mat::at(int i0, int i1) ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat.inl.hpp:1101:17: note: candidate function not viable: no known conversion from 'cv::Mat' to 'const cv::Mat' for object argument const _Tp& Mat::at(int i0, int i1) const ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat.inl.hpp:1134:11: note: candidate function template not viable: allows at most single argument 'i0', but 2 arguments were provided _Tp& Mat::at(int i0) ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat.inl.hpp:1149:17: note: candidate function template not viable: allows at most single argument 'i0', but 2 arguments were provided const _Tp& Mat::at(int i0) const ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat.inl.hpp:1164:11: note: candidate function template not viable: requires 3 arguments, but 2 were provided _Tp& Mat::at(int i0, int i1, int i2) ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat.inl.hpp:1171:17: note: candidate function template not viable: requires 3 arguments, but 2 were provided const _Tp& Mat::at(int i0, int i1, int i2) const ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat.inl.hpp:1112:11: note: candidate function template not viable: requires single argument 'pt', but 2 arguments were provided _Tp& Mat::at(Point pt) ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat.inl.hpp:1123:17: note: candidate function template not viable: requires single argument 'pt', but 2 arguments were provided const _Tp& Mat::at(Point pt) const ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat.inl.hpp:1178:11: note: candidate function template not viable: requires single argument 'idx', but 2 arguments were provided _Tp& Mat::at(const int idx) ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat.inl.hpp:1185:17: note: candidate function template not viable: requires single argument 'idx', but 2 arguments were provided const _Tp& Mat::at(const int idx) const ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat.inl.hpp:1192:11: note: candidate function template not viable: requires single argument 'idx', but 2 arguments were provided _Tp& Mat::at(const Vec<int, n>& idx) ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat.inl.hpp:1199:17: note: candidate function template not viable: requires single argument 'idx', but 2 arguments were provided const Tp& Mat::at(const Vec<int, n>& idx) const ^ /Users/admin/Documents/MATLAB/OpenFace-master/lib/local/ FaceAnalyser/src/FaceAnalyser.cpp:1204:49: error: no matching member function for call to 'at' cummulative_sum += prediction_corr_histogram.at(i, j); ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat.inl.hpp:1090:11: note: candidate function not viable: no known conversion from 'cv::Mat' to 'cv::Mat' for object argument Tp& Mat::at(int i0, int i1) ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat.inl.hpp:1101:17: note: candidate function not viable: no known conversion from 'cv::Mat' to 'const cv::Mat' for object argument const _Tp& Mat::at(int i0, int i1) const ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat.inl.hpp:1134:11: note: candidate function template not viable: allows at most single argument 'i0', but 2 arguments were provided _Tp& Mat::at(int i0) ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat.inl.hpp:1149:17: note: candidate function template not viable: allows at most single argument 'i0', but 2 arguments were provided const _Tp& Mat::at(int i0) const ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat.inl.hpp:1164:11: note: candidate function template not viable: requires 3 arguments, but 2 were provided _Tp& Mat::at(int i0, int i1, int i2) ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat.inl.hpp:1171:17: note: candidate function template not viable: requires 3 arguments, but 2 were provided const _Tp& Mat::at(int i0, int i1, int i2) const ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat.inl.hpp:1112:11: note: candidate function template not viable: requires single argument 'pt', but 2 arguments were provided _Tp& Mat::at(Point pt) ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat.inl.hpp:1123:17: note: candidate function template not viable: requires single argument 'pt', but 2 arguments were provided const _Tp& Mat::at(Point pt) const ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat.inl.hpp:1178:11: note: candidate function template not viable: requires single argument 'idx', but 2 arguments were provided _Tp& Mat::at(const int idx) ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat.inl.hpp:1185:17: note: candidate function template not viable: requires single argument 'idx', but 2 arguments were provided const _Tp& Mat::at(const int idx) const ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat.inl.hpp:1192:11: note: candidate function template not viable: requires single argument 'idx', but 2 arguments were provided _Tp& Mat::at(const Vec<int, n>& idx) ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat.inl.hpp:1199:17: note: candidate function template not viable: requires single argument 'idx', but 2 arguments were provided const Tp& Mat::at(const Vec<int, n>& idx) const ^ In file included from /Users/admin/Documents/MATLAB/ OpenFace-master/lib/local/FaceAnalyser/src/FaceAnalyser.cpp:35: In file included from /Users/admin/Documents/MATLAB/ OpenFace-master/lib/local/FaceAnalyser/./include/FaceAnalyser.h:44: In file included from /usr/local/Cellar/opencv/3.4. 0_1/include/opencv2/core/core.hpp:48: In file included from /usr/local/Cellar/opencv/3.4. 0_1/include/opencv2/core.hpp:56: /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/traits.hpp:366:31: error: no member named 'type' in 'cv::DataType' { enum { value = DataType::type }; };/usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat.inl.hpp:1500:51: note: in instantiation of template class 'cv::traits::Type' requested here flags = (flags & ~CV_MAT_TYPE_MASK) | traits::Type<Tp>::value; ^ /Library/Developer/CommandLineTools/usr/include/c++/v1/memory:1783:31: note: in instantiation of member function 'cv::Mat::Mat' requested here ::new((void*)__p) _Up(_VSTD::forward<_Args>(__args)...); ^ /Library/Developer/CommandLineTools/usr/include/c++/v1/memory:1694:18: note: in instantiation of function template specialization 'std::1::allocator<cv::Mat >::construct<cv::Mat>' requested here {__a.construct(__p, _VSTD::forward<_Args>(__args)...);} ^ /Library/Developer/CommandLineTools/usr/include/c++/v1/memory:1540:14: note: in instantiation of function template specialization 'std::__1::allocator_traits<std::_1::allocator<cv::Mat > ::_construct<cv::Mat>' requested here {__construct(__has_construct<allocator_type, _Tp*, _Args...>(), ^ /Library/Developer/CommandLineTools/usr/include/c++/v1/vector:978:25: note: in instantiation of function template specialization 'std::__1::allocator_traits<std::1::allocator<cv::Mat > ::construct<cv::Mat>' requested here __alloc_traits::construct(__a, _VSTD::__to_raw_pointer(this->_end)); ^ /Library/Developer/CommandLineTools/usr/include/c++/v1/vector:1031:15: note: in instantiation of member function 'std::_1::vector<cv::Mat, std::_1::allocator<cv::Mat > >::__construct_at_end' requested here this->__construct_at_end(__n); ^ /Library/Developer/CommandLineTools/usr/include/c++/v1/vector:2006:15: note: in instantiation of member function 'std::_1::vector<cv::Mat, std::_1::allocator<cv::Mat > >::__append' requested here this->__append(__sz - __cs); ^ /Users/admin/Documents/MATLAB/OpenFace-master/lib/local/ FaceAnalyser/src/FaceAnalyser.cpp:103:16: note: in instantiation of member function 'std::_1::vector<cv::Mat, std::1::allocator<cv::Mat > >::resize' requested here hog_desc_hist.resize(head_orientations.size()); ^ In file included from /Users/admin/Documents/MATLAB/ OpenFace-master/lib/local/FaceAnalyser/src/FaceAnalyser.cpp:35: In file included from /Users/admin/Documents/MATLAB/ OpenFace-master/lib/local/FaceAnalyser/./include/FaceAnalyser.h:44: In file included from /usr/local/Cellar/opencv/3.4. 0_1/include/opencv2/core/core.hpp:48: In file included from /usr/local/Cellar/opencv/3.4. 0_1/include/opencv2/core.hpp:59: In file included from /usr/local/Cellar/opencv/3.4. 0_1/include/opencv2/core/mat.hpp:3642: /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat.inl.hpp:1500:60: error: incomplete definition of type 'cv::traits::Type' flags = (flags & ~CV_MAT_TYPE_MASK) | traits::Type<Tp>::value; ^ /Library/Developer/CommandLineTools/usr/include/c++/v1/memory:1783:31: note: in instantiation of member function 'cv::Mat::Mat' requested here ::new((void*)__p) _Up(_VSTD::forward<_Args>(__args)...); ^ /Library/Developer/CommandLineTools/usr/include/c++/v1/memory:1694:18: note: in instantiation of function template specialization 'std::1::allocator<cv::Mat >::construct<cv::Mat>' requested here {__a.construct(__p, _VSTD::forward<_Args>(__args)...);} ^ /Library/Developer/CommandLineTools/usr/include/c++/v1/memory:1540:14: note: in instantiation of function template specialization 'std::__1::allocator_traits<std::_1::allocator<cv::Mat > ::_construct<cv::Mat>' requested here {__construct(__has_construct<allocator_type, _Tp*, _Args...>(), ^ /Library/Developer/CommandLineTools/usr/include/c++/v1/vector:978:25: note: in instantiation of function template specialization 'std::__1::allocator_traits<std::1::allocator<cv::Mat > ::construct<cv::Mat>' requested here __alloc_traits::construct(__a, _VSTD::__to_raw_pointer(this->_end)); ^ /Library/Developer/CommandLineTools/usr/include/c++/v1/vector:1031:15: note: in instantiation of member function 'std::_1::vector<cv::Mat, std::_1::allocator<cv::Mat > >::__construct_at_end' requested here this->__construct_at_end(__n); ^ /Library/Developer/CommandLineTools/usr/include/c++/v1/vector:2006:15: note: in instantiation of member function 'std::_1::vector<cv::Mat, std::_1::allocator<cv::Mat > >::__append' requested here this->__append(__sz - __cs); ^ /Users/admin/Documents/MATLAB/OpenFace-master/lib/local/ FaceAnalyser/src/FaceAnalyser.cpp:103:16: note: in instantiation of member function 'std::1::vector<cv::Mat, std::1::allocator<cv::Mat > >::resize' requested here hog_desc_hist.resize(head_orientations.size()); ^ In file included from /Users/admin/Documents/MATLAB/ OpenFace-master/lib/local/FaceAnalyser/src/FaceAnalyser.cpp:35: In file included from /Users/admin/Documents/MATLAB/ OpenFace-master/lib/local/FaceAnalyser/./include/FaceAnalyser.h:44: In file included from /usr/local/Cellar/opencv/3.4. 0_1/include/opencv2/core/core.hpp:48: In file included from /usr/local/Cellar/opencv/3.4. 0_1/include/opencv2/core.hpp:59: In file included from /usr/local/Cellar/opencv/3.4. 0_1/include/opencv2/core/mat.hpp:3642: /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat.inl.hpp:1563:7: error: no matching constructor for initialization of 'cv::Mat' : Mat(m) ^ ~ /Library/Developer/CommandLineTools/usr/include/c++/v1/memory:1783:31: note: in instantiation of member function 'cv::Mat::Mat' requested here ::new((void*)__p) _Up(_VSTD::forward<_Args>(_args)...); ^ /Library/Developer/CommandLineTools/usr/include/c++/v1/memory:1694:18: note: in instantiation of function template specialization 'std::1::allocator<cv::Mat >::construct<cv::Mat, const cv::Mat &>' requested here {__a.construct(__p, _VSTD::forward<_Args>(__args)...);} ^ /Library/Developer/CommandLineTools/usr/include/c++/v1/memory:1540:14: note: in instantiation of function template specialization 'std::__1::allocator_traits<std::_1::allocator<cv::Mat > ::construct<cv::Mat, const cv::Mat &>' requested here {__construct(__has_construct<allocator_type, _Tp*, _Args...>(), ^ /Library/Developer/CommandLineTools/usr/include/c++/v1/memory:1656:17: note: in instantiation of function template specialization 'std::_1::allocator_traits<std::1::allocator<cv::Mat > ::construct<cv::Mat, const cv::Mat &>' requested here construct(__a, _VSTD::__to_raw_pointer(__end2-1), _VSTD::move_if_noexcept(--__end1)); ^ /Library/Developer/CommandLineTools/usr/include/c++/v1/vector:886:21: note: in instantiation of function template specialization 'std::__1::allocator_traits<std::_1::allocator<cv::Mat > ::_construct_backward<cv::Mat >' requested here __alloc_traits::__construct_backward(this->__alloc(), this->_begin, this->_end, __v._begin); ^ /Library/Developer/CommandLineTools/usr/include/c++/v1/vector:1037:9: note: in instantiation of member function 'std::_1::vector<cv::Mat, std::_1::allocator<cv::Mat > >::__swap_out_circular_buffer' requested here __swap_out_circular_buffer(__v); ^ /Library/Developer/CommandLineTools/usr/include/c++/v1/vector:2006:15: note: in instantiation of member function 'std::_1::vector<cv::Mat, std::_1::allocator<cv::Mat > >::_append' requested here this->append(sz - cs); ^ /Users/admin/Documents/MATLAB/OpenFace-master/lib/local/ FaceAnalyser/src/FaceAnalyser.cpp:103:16: note: in instantiation of member function 'std::1::vector<cv::Mat, std::1::allocator<cv::Mat > >::resize' requested here hog_desc_hist.resize(head_orientations.size()); ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat.hpp:1029:14: note: candidate constructor not viable: no known conversion from 'const cv::Mat' to 'const cuda::GpuMat' for 1st argument explicit Mat(const cuda::GpuMat& m); ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat.inl.hpp:476:6: note: candidate constructor not viable: no known conversion from 'const cv::Mat' to 'const cv::Mat' for 1st argument Mat::Mat(const Mat& m) ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat.inl.hpp:1335:6: note: candidate constructor not viable: no known conversion from 'const cv::Mat' to 'cv::Mat' for 1st argument Mat::Mat(Mat&& m) ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat.inl.hpp:561:6: note: candidate template ignored: could not match 'vector' against 'Mat' Mat::Mat(const std::vector<Tp>& vec, bool copyData) ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat.inl.hpp:579:6: note: candidate template ignored: could not match 'initializer_list' against 'Mat' Mat::Mat(const std::initializer_list<Tp> list) ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat.inl.hpp:591:6: note: candidate template ignored: could not match 'array' against 'Mat' Mat::Mat(const std::array<Tp, Nm>& arr, bool copyData) ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat.inl.hpp:609:6: note: candidate template ignored: could not match 'Vec' against 'Mat' Mat::Mat(const Vec<Tp, n>& vec, bool copyData) ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat.inl.hpp:625:6: note: candidate template ignored: could not match 'Matx' against 'Mat' Mat::Mat(const Matx<Tp,m,n>& M, bool copyData) ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat.inl.hpp:641:6: note: candidate template ignored: could not match 'Point' against 'Mat' Mat::Mat(const Point<Tp>& pt, bool copyData) ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat.inl.hpp:660:6: note: candidate template ignored: could not match 'Point3' against 'Mat' Mat::Mat(const Point3<Tp>& pt, bool copyData) ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat.inl.hpp:680:6: note: candidate template ignored: could not match 'MatCommaInitializer' against 'Mat' Mat::Mat(const MatCommaInitializer<_Tp>& commaInitializer) ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat.inl.hpp:402:6: note: candidate constructor not viable: requires 0 arguments, but 1 was provided Mat::Mat() ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat.inl.hpp:425:6: note: candidate constructor not viable: requires 2 arguments, but 1 was provided Mat::Mat(Size _sz, int _type) ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat.inl.hpp:459:6: note: candidate constructor not viable: requires 2 arguments, but 1 was provided Mat::Mat(const std::vector& _sz, int _type) ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat.hpp:955:5: note: candidate constructor not viable: requires 2 arguments, but 1 was provided Mat(const Mat& m, const Rect& roi); ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat.hpp:965:5: note: candidate constructor not viable: requires 2 arguments, but 1 was provided Mat(const Mat& m, const Range ranges); ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat.hpp:975:5: note: candidate constructor not viable: requires 2 arguments, but 1 was provided Mat(const Mat& m, const std::vector& ranges); ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat.inl.hpp:408:6: note: candidate constructor not viable: requires 3 arguments, but 1 was provided Mat::Mat(int _rows, int _cols, int _type) ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat.inl.hpp:433:6: note: candidate constructor not viable: requires 3 arguments, but 1 was provided Mat::Mat(Size _sz, int _type, const Scalar& _s) ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat.inl.hpp:442:6: note: candidate constructor not viable: requires 3 arguments, but 1 was provided Mat::Mat(int _dims, const int _sz, int _type) ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat.inl.hpp:467:6: note: candidate constructor not viable: requires 3 arguments, but 1 was provided Mat::Mat(const std::vector& _sz, int _type, const Scalar& _s) ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat.hpp:945:5: note: candidate constructor not viable: requires at least 2 arguments, but 1 was provided Mat(const Mat& m, const Range& rowRange, const Range& colRange=Range::all()); ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat.inl.hpp:416:6: note: candidate constructor not viable: requires 4 arguments, but 1 was provided Mat::Mat(int _rows, int _cols, int _type, const Scalar& _s) ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat.inl.hpp:450:6: note: candidate constructor not viable: requires 4 arguments, but 1 was provided Mat::Mat(int _dims, const int* _sz, int _type, const Scalar& _s) ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat.inl.hpp:528:6: note: candidate constructor not viable: requires at least 3 arguments, but 1 was provided Mat::Mat(Size _sz, int _type, void* _data, size_t _step) ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat.hpp:933:5: note: candidate constructor not viable: requires at least 3 arguments, but 1 was provided Mat(const std::vector& sizes, int type, void* data, const size_t* steps=0); ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat.inl.hpp:495:6: note: candidate constructor not viable: requires at least 4 arguments, but 1 was provided Mat::Mat(int _rows, int _cols, int _type, void* _data, size_t _step) ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat.hpp:919:5: note: candidate constructor not viable: requires at least 4 arguments, but 1 was provided Mat(int ndims, const int* sizes, int type, void* data, const size_t* steps=0); ^ fatal error: too many errors emitted, stopping now [-ferror-limit=] 20 errors generated. make[2]: *** [lib/local/FaceAnalyser/CMakeFiles/FaceAnalyser.dir/src/FaceAnalyser.cpp.o] Error 1 make[1]: *** [lib/local/FaceAnalyser/CMakeFiles/FaceAnalyser.dir/all] Error 2 make: *** [all] Error 2 — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub <https://github.com/ TadasBaltrusaitis/OpenFace/issues/323>, or mute the thread < https://github.com/notifications/unsubscribe-auth/Aa93Ix9mwu3xQ- 0lgtcPwewAaeuAZdnMks5tLTI9gaJpZM4Rglm9>.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/TadasBaltrusaitis/OpenFace/issues/323#issuecomment-358144491, or mute the thread https://github.com/notifications/unsubscribe-auth/AZNvsFP0dT5nP9CQtap3U8wXaK1_3bsIks5tLTLrgaJpZM4Rglm9 .
As you can search in the wiki, for os X version, newest version of OPENCV is currently not compatible, means you can’t use homebrew to install 3.x only 3.1 and 3.2 will work. (3.1 is tricky to install high sierra). Since there is no single working solution for install 3.2, try to down 3.2 and compile & install yourself.
Bests, J.
On Jan 17, 2018, at 8:51 AM, amattek notifications@github.com wrote:
Thank you!
macOS version: High Sierra 10.13.2
Xcode version: When I type "gcc --version" in Terminal, I get the following output:
Configured with: --prefix=/Library/Developer/CommandLineTools/usr --with-gxx-include-dir=/usr/include/c++/4.2.1
Apple LLVM version 9.0.0 (clang-900.0.39.2)
Target: x86_64-apple-darwin17.3.0
Thread model: posix
InstalledDir: /Library/Developer/CommandLineTools/usr/bin
If I open the Xcode application, and go to "About XCode", it says I have XCode 9.2
Boost version:
I installed the older version of Boost (1_150_0), as suggested by the wiki.
Open CV version:
Open CV was installed using: brew install tbb opencv3, as suggested by the wiki.
Here is the output from the "cmake" command, if that is helpful:
PSY-C02LD5DNF8J4:OpenFace-master admin$ cmake -D CMAKE_BUILD_TYPE=RELEASE .
-- A library with BLAS API found.
OpenCV information:
OpenCV_INCLUDE_DIRS: /usr/local/Cellar/opencv/3.4.0_1/include;/usr/local/Cellar/opencv/3.4.0_1/include/opencv
OpenCV_LIBRARIES: opencv_calib3d;opencv_core;opencv_dnn;opencv_features2d;opencv_flann;opencv_highgui;opencv_imgcodecs;opencv_imgproc;opencv_ml;opencv_objdetect;opencv_photo;opencv_shape;opencv_stitching;opencv_superres;opencv_video;opencv_videoio;opencv_videostab;opencv_aruco;opencv_bgsegm;opencv_bioinspired;opencv_ccalib;opencv_datasets;opencv_dpm;opencv_face;opencv_fuzzy;opencv_img_hash;opencv_line_descriptor;opencv_optflow;opencv_phase_unwrapping;opencv_plot;opencv_reg;opencv_rgbd;opencv_saliency;opencv_stereo;opencv_structured_light;opencv_surface_matching;opencv_text;opencv_tracking;opencv_xfeatures2d;opencv_ximgproc;opencv_xobjdetect;opencv_xphoto
OpenCV_LIBRARY_DIRS:
-- Boost version: 1.50.0
-- Found the following Boost libraries:
-- filesystem
-- system
Boost information:
Boost_INCLUDE_DIRS: /usr/local/include
Boost_LIBRARIES: /usr/local/lib/libboost_filesystem-mt.dylib;/usr/local/lib/libboost_system-mt.dylib
Boost_LIBRARY_DIRS: /usr/local/lib
X11 information:
X11_INCLUDE_DIR: /opt/X11/include
X11_LIBRARIES: /opt/X11/lib/libSM.dylib;/opt/X11/lib/libICE.dylib;/opt/X11/lib/libX11.dylib;/opt/X11/lib/libXext.dylib
X11_LIBRARY_DIRS:
-- Searching for BLAS and LAPACK
-- Found LAPACK library
-- Found CBLAS library
-- Configuring done
-- Generating done
-- Build files have been written to: /Users/admin/Documents/MATLAB/OpenFace-master
On Tue, Jan 16, 2018 at 3:38 PM, iPsych <notifications@github.com mailto:notifications@github.com> wrote:
To help this issue, one need the 1)current os version 2)Xcode or xcode command line tool version 3)boost and other requirements versions 4)opencv version
On Jan 17, 2018, at 8:35 AM, amattek <notifications@github.com mailto:notifications@github.com> wrote:
Hello,
The "make" command builds "target dlib" and "target LandmarkDetector", but there is an error when it builds the FaceAnalyzer. Any suggestions as to what might be wrong would be greatly appreciated!
Thanks :)
PSY-C02LD5DNF8J4:OpenFace-master admin$ make [ 1%] Building CXX object lib/3rdParty/dlib/CMakeFiles/ dlib.dir/include/dlib/base64/base64_kernel_1.o [ 2%] Building CXX object lib/3rdParty/dlib/CMakeFiles/ dlib.dir/include/dlib/bigint/bigint_kernel_1.o [ 4%] Building CXX object lib/3rdParty/dlib/CMakeFiles/ dlib.dir/include/dlib/bigint/bigint_kernel_2.o [ 5%] Building CXX object lib/3rdParty/dlib/CMakeFiles/ dlib.dir/include/dlib/bit_stream/bit_stream_kernel_1.o [ 6%] Building CXX object lib/3rdParty/dlib/CMakeFiles/ dlib.dir/include/dlib/entropy_decoder/entropy_decoder_kernel_1.o [ 8%] Building CXX object lib/3rdParty/dlib/CMakeFiles/ dlib.dir/include/dlib/entropy_decoder/entropy_decoder_kernel_2.o [ 9%] Building CXX object lib/3rdParty/dlib/CMakeFiles/ dlib.dir/include/dlib/entropy_encoder/entropy_encoder_kernel_1.o [ 10%] Building CXX object lib/3rdParty/dlib/CMakeFiles/ dlib.dir/include/dlib/entropy_encoder/entropy_encoder_kernel_2.o [ 12%] Building CXX object lib/3rdParty/dlib/CMakeFiles/ dlib.dir/include/dlib/md5/md5_kernel_1.o [ 13%] Building CXX object lib/3rdParty/dlib/CMakeFiles/ dlib.dir/include/dlib/tokenizer/tokenizer_kernel_1.o [ 14%] Building CXX object lib/3rdParty/dlib/CMakeFiles/ dlib.dir/include/dlib/unicode/unicode.o [ 16%] Building CXX object lib/3rdParty/dlib/CMakeFiles/ dlib.dir/include/dlib/data_io/image_dataset_metadata.o [ 17%] Building CXX object lib/3rdParty/dlib/CMakeFiles/ dlib.dir/include/dlib/sockets/sockets_kernel_1.o [ 18%] Building CXX object lib/3rdParty/dlib/CMakeFiles/ dlib.dir/include/dlib/bsp/bsp.o [ 20%] Building CXX object lib/3rdParty/dlib/CMakeFiles/ dlib.dir/include/dlib/dir_nav/dir_nav_kernel_1.o [ 21%] Building CXX object lib/3rdParty/dlib/CMakeFiles/ dlib.dir/include/dlib/dir_nav/dir_nav_kernel_2.o [ 22%] Building CXX object lib/3rdParty/dlib/CMakeFiles/ dlib.dir/include/dlib/dir_nav/dir_nav_extensions.o [ 24%] Building CXX object lib/3rdParty/dlib/CMakeFiles/ dlib.dir/include/dlib/linker/linker_kernel_1.o [ 25%] Building CXX object lib/3rdParty/dlib/CMakeFiles/ dlib.dir/include/dlib/logger/extra_logger_headers.o [ 27%] Building CXX object lib/3rdParty/dlib/CMakeFiles/ dlib.dir/include/dlib/logger/logger_kernel_1.o [ 28%] Building CXX object lib/3rdParty/dlib/CMakeFiles/ dlib.dir/include/dlib/logger/logger_config_file.o [ 29%] Building CXX object lib/3rdParty/dlib/CMakeFiles/ dlib.dir/include/dlib/misc_api/misc_api_kernel_1.o [ 31%] Building CXX object lib/3rdParty/dlib/CMakeFiles/ dlib.dir/include/dlib/misc_api/misc_api_kernel_2.o [ 32%] Building CXX object lib/3rdParty/dlib/CMakeFiles/ dlib.dir/include/dlib/sockets/sockets_extensions.o [ 33%] Building CXX object lib/3rdParty/dlib/CMakeFiles/ dlib.dir/include/dlib/sockets/sockets_kernel_2.o [ 35%] Building CXX object lib/3rdParty/dlib/CMakeFiles/ dlib.dir/include/dlib/sockstreambuf/sockstreambuf.o [ 36%] Building CXX object lib/3rdParty/dlib/CMakeFiles/ dlib.dir/include/dlib/sockstreambuf/sockstreambuf_unbuffered.o [ 37%] Building CXX object lib/3rdParty/dlib/CMakeFiles/ dlib.dir/include/dlib/server/server_kernel.o [ 39%] Building CXX object lib/3rdParty/dlib/CMakeFiles/ dlib.dir/include/dlib/server/server_iostream.o [ 40%] Building CXX object lib/3rdParty/dlib/CMakeFiles/ dlib.dir/include/dlib/server/server_http.o [ 41%] Building CXX object lib/3rdParty/dlib/CMakeFiles/ dlib.dir/include/dlib/threads/multithreaded_object_extension.o [ 43%] Building CXX object lib/3rdParty/dlib/CMakeFiles/ dlib.dir/include/dlib/threads/threaded_object_extension.o [ 44%] Building CXX object lib/3rdParty/dlib/CMakeFiles/ dlib.dir/include/dlib/threads/threads_kernel_1.o [ 45%] Building CXX object lib/3rdParty/dlib/CMakeFiles/ dlib.dir/include/dlib/threads/threads_kernel_2.o [ 47%] Building CXX object lib/3rdParty/dlib/CMakeFiles/ dlib.dir/include/dlib/threads/threads_kernel_shared.o [ 48%] Building CXX object lib/3rdParty/dlib/CMakeFiles/ dlib.dir/include/dlib/threads/thread_pool_extension.o [ 50%] Building CXX object lib/3rdParty/dlib/CMakeFiles/ dlib.dir/include/dlib/timer/timer.o [ 51%] Building CXX object lib/3rdParty/dlib/CMakeFiles/ dlib.dir/include/dlib/stack_trace.o [ 52%] Building CXX object lib/3rdParty/dlib/CMakeFiles/ dlib.dir/include/dlib/image_loader/png_loader.o [ 54%] Building CXX object lib/3rdParty/dlib/CMakeFiles/ dlib.dir/include/dlib/image_saver/save_png.o [ 55%] Building CXX object lib/3rdParty/dlib/CMakeFiles/ dlib.dir/include/dlib/image_loader/jpeg_loader.o [ 56%] Linking CXX static library libdlib.a /Library/Developer/CommandLineTools/usr/bin/ranlib: file: libdlib.a(sockets_kernel_1.o) has no symbols /Library/Developer/CommandLineTools/usr/bin/ranlib: file: libdlib.a(dir_nav_kernel_1.o) has no symbols /Library/Developer/CommandLineTools/usr/bin/ranlib: file: libdlib.a(threads_kernel_1.o) has no symbols /Library/Developer/CommandLineTools/usr/bin/ranlib: file: libdlib.a(stack_trace.o) has no symbols /Library/Developer/CommandLineTools/usr/bin/ranlib: file: libdlib.a(sockets_kernel_1.o) has no symbols /Library/Developer/CommandLineTools/usr/bin/ranlib: file: libdlib.a(dir_nav_kernel_1.o) has no symbols /Library/Developer/CommandLineTools/usr/bin/ranlib: file: libdlib.a(threads_kernel_1.o) has no symbols /Library/Developer/CommandLineTools/usr/bin/ranlib: file: libdlib.a(stack_trace.o) has no symbols [ 56%] Built target dlib Scanning dependencies of target LandmarkDetector [ 58%] Building CXX object lib/local/LandmarkDetector/ CMakeFiles/LandmarkDetector.dir/src/CCNF_patch_expert.cpp.o [ 59%] Building CXX object lib/local/LandmarkDetector/ CMakeFiles/LandmarkDetector.dir/src/LandmarkDetectionValidator.cpp.o [ 60%] Building CXX object lib/local/LandmarkDetector/ CMakeFiles/LandmarkDetector.dir/src/LandmarkDetectorFunc.cpp.o [ 62%] Building CXX object lib/local/LandmarkDetector/ CMakeFiles/LandmarkDetector.dir/src/LandmarkDetectorModel.cpp.o [ 63%] Building CXX object lib/local/LandmarkDetector/ CMakeFiles/LandmarkDetector.dir/src/LandmarkDetectorUtils.cpp.o [ 64%] Building CXX object lib/local/LandmarkDetector/ CMakeFiles/LandmarkDetector.dir/src/LandmarkDetectorParameters.cpp.o [ 66%] Building CXX object lib/local/LandmarkDetector/ CMakeFiles/LandmarkDetector.dir/src/Patch_experts.cpp.o [ 67%] Building CXX object lib/local/LandmarkDetector/ CMakeFiles/LandmarkDetector.dir/src/PAW.cpp.o [ 68%] Building CXX object lib/local/LandmarkDetector/ CMakeFiles/LandmarkDetector.dir/src/PDM.cpp.o [ 70%] Building CXX object lib/local/LandmarkDetector/ CMakeFiles/LandmarkDetector.dir/src/SVR_patch_expert.cpp.o [ 71%] Building CXX object lib/local/LandmarkDetector/ CMakeFiles/LandmarkDetector.dir/src/stdafx.cpp.o [ 72%] Linking CXX static library libLandmarkDetector.a [ 72%] Built target LandmarkDetector Scanning dependencies of target FaceAnalyser [ 74%] Building CXX object lib/local/FaceAnalyser/ CMakeFiles/FaceAnalyser.dir/src/Face_utils.cpp.o [ 75%] Building CXX object lib/local/FaceAnalyser/ CMakeFiles/FaceAnalyser.dir/src/FaceAnalyser.cpp.o In file included from /Users/admin/Documents/MATLAB/ OpenFace-master/lib/local/FaceAnalyser/src/FaceAnalyser.cpp:35: In file included from /Users/admin/Documents/MATLAB/ OpenFace-master/lib/local/FaceAnalyser/./include/FaceAnalyser.h:44: In file included from /usr/local/Cellar/opencv/3.4. 0_1/include/opencv2/core/core.hpp:48: In file included from /usr/local/Cellar/opencv/3.4. 0_1/include/opencv2/core.hpp:59: /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat.hpp:2153:37: error: no type named 'channel_type' in 'cv::DataType' typedef typename DataType
::channel_type channeltype; ^ /Users/admin/Documents/MATLAB/OpenFace-master/lib/local/ FaceAnalyser/./include/FaceAnalyser.h:169:25: note: in instantiation of template class 'cv::Mat' requested here cv::Mat geom_desc_hist; ^ In file included from /Users/admin/Documents/MATLAB/ OpenFace-master/lib/local/FaceAnalyser/src/FaceAnalyser.cpp:35: In file included from /Users/admin/Documents/MATLAB/ OpenFace-master/lib/local/FaceAnalyser/./include/FaceAnalyser.h:44: In file included from /usr/local/Cellar/opencv/3.4. 0_1/include/opencv2/core/core.hpp:48: In file included from /usr/local/Cellar/opencv/3.4. 0_1/include/opencv2/core.hpp:59: /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat.hpp:2191:69: error: no type named 'channeltype' in 'cv::DataType' template explicit Mat(const Vec<typename DataType ::channel_type, n>& vec, bool copyData=true); ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat.hpp:2192:77: error: no type named 'channel_type' in 'cv::DataType' template<int m, int n> explicit Mat(const Matx<typename DataType ::channel_type, m, n>& mtx, bool copyData=true); ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat.hpp:2193:56: error: no type named 'channeltype' in 'cv::DataType' explicit Mat(const Point<typename DataType ::channel_type>& pt, bool copyData=true); ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat.hpp:2194:57: error: no type named 'channeltype' in 'cv::DataType' explicit Mat(const Point3<typename DataType<_Tp>::channel_type>& pt, bool copyData=true); ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat.hpp:2307:58: error: no type named 'channel_type' in 'cv::DataType' template operator Vec<typename DataType ::channel_type, n>() const; ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat.hpp:2309:66: error: no type named 'channel_type' in 'cv::DataType' template<int m, int n> operator Matx<typename DataType ::channel_type, m, n>() const; ^ /Users/admin/Documents/MATLAB/OpenFace-master/lib/local/ FaceAnalyser/src/FaceAnalyser.cpp:767:5: error: cannot initialize object parameter of type 'const cv::Mat' with an expression of type 'cv::Mat' if(histogram.empty()) ^ ~~~~ /Users/admin/Documents/MATLAB/OpenFace-master/lib/local/ FaceAnalyser/src/FaceAnalyser.cpp:785:14: error: no matching member function for call to 'at' histogram.at(i, index)++; ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat.inl.hpp:1090:11: note: candidate function not viable: no known conversion from 'cv::Mat' to 'cv::Mat' for object argument Tp& Mat::at(int i0, int i1) ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat.inl.hpp:1101:17: note: candidate function not viable: no known conversion from 'cv::Mat' to 'const cv::Mat' for object argument const _Tp& Mat::at(int i0, int i1) const ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat.inl.hpp:1134:11: note: candidate function template not viable: allows at most single argument 'i0', but 2 arguments were provided _Tp& Mat::at(int i0) ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat.inl.hpp:1149:17: note: candidate function template not viable: allows at most single argument 'i0', but 2 arguments were provided const _Tp& Mat::at(int i0) const ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat.inl.hpp:1164:11: note: candidate function template not viable: requires 3 arguments, but 2 were provided _Tp& Mat::at(int i0, int i1, int i2) ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat.inl.hpp:1171:17: note: candidate function template not viable: requires 3 arguments, but 2 were provided const _Tp& Mat::at(int i0, int i1, int i2) const ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat.inl.hpp:1112:11: note: candidate function template not viable: requires single argument 'pt', but 2 arguments were provided _Tp& Mat::at(Point pt) ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat.inl.hpp:1123:17: note: candidate function template not viable: requires single argument 'pt', but 2 arguments were provided const _Tp& Mat::at(Point pt) const ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat.inl.hpp:1178:11: note: candidate function template not viable: requires single argument 'idx', but 2 arguments were provided _Tp& Mat::at(const int idx) ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat.inl.hpp:1185:17: note: candidate function template not viable: requires single argument 'idx', but 2 arguments were provided const _Tp& Mat::at(const int idx) const ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat.inl.hpp:1192:11: note: candidate function template not viable: requires single argument 'idx', but 2 arguments were provided _Tp& Mat::at(const Vec<int, n>& idx) ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat.inl.hpp:1199:17: note: candidate function template not viable: requires single argument 'idx', but 2 arguments were provided const Tp& Mat::at(const Vec<int, n>& idx) const ^ /Users/admin/Documents/MATLAB/OpenFace-master/lib/local/ FaceAnalyser/src/FaceAnalyser.cpp:807:34: error: no matching member function for call to 'at' cummulative_sum += histogram.at(i, j); ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat.inl.hpp:1090:11: note: candidate function not viable: no known conversion from 'cv::Mat' to 'cv::Mat' for object argument Tp& Mat::at(int i0, int i1) ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat.inl.hpp:1101:17: note: candidate function not viable: no known conversion from 'cv::Mat' to 'const cv::Mat' for object argument const _Tp& Mat::at(int i0, int i1) const ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat.inl.hpp:1134:11: note: candidate function template not viable: allows at most single argument 'i0', but 2 arguments were provided _Tp& Mat::at(int i0) ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat.inl.hpp:1149:17: note: candidate function template not viable: allows at most single argument 'i0', but 2 arguments were provided const _Tp& Mat::at(int i0) const ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat.inl.hpp:1164:11: note: candidate function template not viable: requires 3 arguments, but 2 were provided _Tp& Mat::at(int i0, int i1, int i2) ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat.inl.hpp:1171:17: note: candidate function template not viable: requires 3 arguments, but 2 were provided const _Tp& Mat::at(int i0, int i1, int i2) const ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat.inl.hpp:1112:11: note: candidate function template not viable: requires single argument 'pt', but 2 arguments were provided _Tp& Mat::at(Point pt) ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat.inl.hpp:1123:17: note: candidate function template not viable: requires single argument 'pt', but 2 arguments were provided const _Tp& Mat::at(Point pt) const ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat.inl.hpp:1178:11: note: candidate function template not viable: requires single argument 'idx', but 2 arguments were provided _Tp& Mat::at(const int idx) ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat.inl.hpp:1185:17: note: candidate function template not viable: requires single argument 'idx', but 2 arguments were provided const _Tp& Mat::at(const int idx) const ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat.inl.hpp:1192:11: note: candidate function template not viable: requires single argument 'idx', but 2 arguments were provided Tp& Mat::at(const Vec<int, n>& idx) ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat.inl.hpp:1199:17: note: candidate function template not viable: requires single argument 'idx', but 2 arguments were provided const Tp& Mat::at(const Vec<int, n>& idx) const ^ /Users/admin/Documents/MATLAB/OpenFace-master/lib/local/ FaceAnalyser/src/FaceAnalyser.cpp:827:5: error: cannot initialize object parameter of type 'const cv::Mat' with an expression of type 'cv::Mat' if(histogram.empty()) ^~~~~ /Users/admin/Documents/MATLAB/OpenFace-master/lib/local/ FaceAnalyser/src/FaceAnalyser.cpp:847:34: error: no matching member function for call to 'at' cummulative_sum += histogram.at(i, j); ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat.inl.hpp:1090:11: note: candidate function not viable: no known conversion from 'cv::Mat' to 'cv::Mat' for object argument Tp& Mat::at(int i0, int i1) ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat.inl.hpp:1101:17: note: candidate function not viable: no known conversion from 'cv::Mat' to 'const cv::Mat' for object argument const _Tp& Mat::at(int i0, int i1) const ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat.inl.hpp:1134:11: note: candidate function template not viable: allows at most single argument 'i0', but 2 arguments were provided _Tp& Mat::at(int i0) ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat.inl.hpp:1149:17: note: candidate function template not viable: allows at most single argument 'i0', but 2 arguments were provided const _Tp& Mat::at(int i0) const ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat.inl.hpp:1164:11: note: candidate function template not viable: requires 3 arguments, but 2 were provided _Tp& Mat::at(int i0, int i1, int i2) ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat.inl.hpp:1171:17: note: candidate function template not viable: requires 3 arguments, but 2 were provided const _Tp& Mat::at(int i0, int i1, int i2) const ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat.inl.hpp:1112:11: note: candidate function template not viable: requires single argument 'pt', but 2 arguments were provided _Tp& Mat::at(Point pt) ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat.inl.hpp:1123:17: note: candidate function template not viable: requires single argument 'pt', but 2 arguments were provided const _Tp& Mat::at(Point pt) const ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat.inl.hpp:1178:11: note: candidate function template not viable: requires single argument 'idx', but 2 arguments were provided _Tp& Mat::at(const int idx) ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat.inl.hpp:1185:17: note: candidate function template not viable: requires single argument 'idx', but 2 arguments were provided const _Tp& Mat::at(const int idx) const ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat.inl.hpp:1192:11: note: candidate function template not viable: requires single argument 'idx', but 2 arguments were provided Tp& Mat::at(const Vec<int, n>& idx) ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat.inl.hpp:1199:17: note: candidate function template not viable: requires single argument 'idx', but 2 arguments were provided const Tp& Mat::at(const Vec<int, n>& idx) const ^ /Users/admin/Documents/MATLAB/OpenFace-master/lib/local/ FaceAnalyser/src/FaceAnalyser.cpp:1140:5: error: cannot initialize object parameter of type 'const cv::Mat' with an expression of type 'cv::Mat' if(prediction_corr_histogram.empty()) ^~~~~~~~~ /Users/admin/Documents/MATLAB/OpenFace-master/lib/local/ FaceAnalyser/src/FaceAnalyser.cpp:1157:29: error: no matching member function for call to 'at' prediction_corr_histogram.at(i, index)++; ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat.inl.hpp:1090:11: note: candidate function not viable: no known conversion from 'cv::Mat' to 'cv::Mat' for object argument Tp& Mat::at(int i0, int i1) ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat.inl.hpp:1101:17: note: candidate function not viable: no known conversion from 'cv::Mat' to 'const cv::Mat' for object argument const _Tp& Mat::at(int i0, int i1) const ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat.inl.hpp:1134:11: note: candidate function template not viable: allows at most single argument 'i0', but 2 arguments were provided _Tp& Mat::at(int i0) ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat.inl.hpp:1149:17: note: candidate function template not viable: allows at most single argument 'i0', but 2 arguments were provided const _Tp& Mat::at(int i0) const ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat.inl.hpp:1164:11: note: candidate function template not viable: requires 3 arguments, but 2 were provided _Tp& Mat::at(int i0, int i1, int i2) ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat.inl.hpp:1171:17: note: candidate function template not viable: requires 3 arguments, but 2 were provided const _Tp& Mat::at(int i0, int i1, int i2) const ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat.inl.hpp:1112:11: note: candidate function template not viable: requires single argument 'pt', but 2 arguments were provided _Tp& Mat::at(Point pt) ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat.inl.hpp:1123:17: note: candidate function template not viable: requires single argument 'pt', but 2 arguments were provided const _Tp& Mat::at(Point pt) const ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat.inl.hpp:1178:11: note: candidate function template not viable: requires single argument 'idx', but 2 arguments were provided _Tp& Mat::at(const int idx) ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat.inl.hpp:1185:17: note: candidate function template not viable: requires single argument 'idx', but 2 arguments were provided const _Tp& Mat::at(const int idx) const ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat.inl.hpp:1192:11: note: candidate function template not viable: requires single argument 'idx', but 2 arguments were provided _Tp& Mat::at(const Vec<int, n>& idx) ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat.inl.hpp:1199:17: note: candidate function template not viable: requires single argument 'idx', but 2 arguments were provided const Tp& Mat::at(const Vec<int, n>& idx) const ^ /Users/admin/Documents/MATLAB/OpenFace-master/lib/local/ FaceAnalyser/src/FaceAnalyser.cpp:1174:50: error: no matching member function for call to 'at' cummulative_sum += prediction_corr_histogram.at(i, j); ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat.inl.hpp:1090:11: note: candidate function not viable: no known conversion from 'cv::Mat' to 'cv::Mat' for object argument Tp& Mat::at(int i0, int i1) ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat.inl.hpp:1101:17: note: candidate function not viable: no known conversion from 'cv::Mat' to 'const cv::Mat' for object argument const _Tp& Mat::at(int i0, int i1) const ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat.inl.hpp:1134:11: note: candidate function template not viable: allows at most single argument 'i0', but 2 arguments were provided _Tp& Mat::at(int i0) ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat.inl.hpp:1149:17: note: candidate function template not viable: allows at most single argument 'i0', but 2 arguments were provided const _Tp& Mat::at(int i0) const ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat.inl.hpp:1164:11: note: candidate function template not viable: requires 3 arguments, but 2 were provided _Tp& Mat::at(int i0, int i1, int i2) ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat.inl.hpp:1171:17: note: candidate function template not viable: requires 3 arguments, but 2 were provided const _Tp& Mat::at(int i0, int i1, int i2) const ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat.inl.hpp:1112:11: note: candidate function template not viable: requires single argument 'pt', but 2 arguments were provided _Tp& Mat::at(Point pt) ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat.inl.hpp:1123:17: note: candidate function template not viable: requires single argument 'pt', but 2 arguments were provided const _Tp& Mat::at(Point pt) const ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat.inl.hpp:1178:11: note: candidate function template not viable: requires single argument 'idx', but 2 arguments were provided _Tp& Mat::at(const int idx) ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat.inl.hpp:1185:17: note: candidate function template not viable: requires single argument 'idx', but 2 arguments were provided const _Tp& Mat::at(const int idx) const ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat.inl.hpp:1192:11: note: candidate function template not viable: requires single argument 'idx', but 2 arguments were provided _Tp& Mat::at(const Vec<int, n>& idx) ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat.inl.hpp:1199:17: note: candidate function template not viable: requires single argument 'idx', but 2 arguments were provided const Tp& Mat::at(const Vec<int, n>& idx) const ^ /Users/admin/Documents/MATLAB/OpenFace-master/lib/local/ FaceAnalyser/src/FaceAnalyser.cpp:1204:49: error: no matching member function for call to 'at' cummulative_sum += prediction_corr_histogram.at(i, j); ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat.inl.hpp:1090:11: note: candidate function not viable: no known conversion from 'cv::Mat' to 'cv::Mat' for object argument Tp& Mat::at(int i0, int i1) ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat.inl.hpp:1101:17: note: candidate function not viable: no known conversion from 'cv::Mat' to 'const cv::Mat' for object argument const _Tp& Mat::at(int i0, int i1) const ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat.inl.hpp:1134:11: note: candidate function template not viable: allows at most single argument 'i0', but 2 arguments were provided _Tp& Mat::at(int i0) ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat.inl.hpp:1149:17: note: candidate function template not viable: allows at most single argument 'i0', but 2 arguments were provided const _Tp& Mat::at(int i0) const ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat.inl.hpp:1164:11: note: candidate function template not viable: requires 3 arguments, but 2 were provided _Tp& Mat::at(int i0, int i1, int i2) ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat.inl.hpp:1171:17: note: candidate function template not viable: requires 3 arguments, but 2 were provided const _Tp& Mat::at(int i0, int i1, int i2) const ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat.inl.hpp:1112:11: note: candidate function template not viable: requires single argument 'pt', but 2 arguments were provided _Tp& Mat::at(Point pt) ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat.inl.hpp:1123:17: note: candidate function template not viable: requires single argument 'pt', but 2 arguments were provided const _Tp& Mat::at(Point pt) const ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat.inl.hpp:1178:11: note: candidate function template not viable: requires single argument 'idx', but 2 arguments were provided _Tp& Mat::at(const int idx) ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat.inl.hpp:1185:17: note: candidate function template not viable: requires single argument 'idx', but 2 arguments were provided const _Tp& Mat::at(const int idx) const ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat.inl.hpp:1192:11: note: candidate function template not viable: requires single argument 'idx', but 2 arguments were provided _Tp& Mat::at(const Vec<int, n>& idx) ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat.inl.hpp:1199:17: note: candidate function template not viable: requires single argument 'idx', but 2 arguments were provided const Tp& Mat::at(const Vec<int, n>& idx) const ^ In file included from /Users/admin/Documents/MATLAB/ OpenFace-master/lib/local/FaceAnalyser/src/FaceAnalyser.cpp:35: In file included from /Users/admin/Documents/MATLAB/ OpenFace-master/lib/local/FaceAnalyser/./include/FaceAnalyser.h:44: In file included from /usr/local/Cellar/opencv/3.4. 0_1/include/opencv2/core/core.hpp:48: In file included from /usr/local/Cellar/opencv/3.4. 0_1/include/opencv2/core.hpp:56: /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/traits.hpp:366:31: error: no member named 'type' in 'cv::DataType' { enum { value = DataType::type }; };/usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat.inl.hpp:1500:51: note: in instantiation of template class 'cv::traits::Type' requested here flags = (flags & ~CV_MAT_TYPE_MASK) | traits::Type<Tp>::value; ^ /Library/Developer/CommandLineTools/usr/include/c++/v1/memory:1783:31: note: in instantiation of member function 'cv::Mat::Mat' requested here ::new((void*)__p) _Up(_VSTD::forward<_Args>(__args)...); ^ /Library/Developer/CommandLineTools/usr/include/c++/v1/memory:1694:18: note: in instantiation of function template specialization 'std::1::allocator<cv::Mat >::construct<cv::Mat>' requested here {__a.construct(__p, _VSTD::forward<_Args>(__args)...);} ^ /Library/Developer/CommandLineTools/usr/include/c++/v1/memory:1540:14: note: in instantiation of function template specialization 'std::__1::allocator_traits<std::_1::allocator<cv::Mat > ::_construct<cv::Mat>' requested here {__construct(__has_construct<allocator_type, _Tp*, _Args...>(), ^ /Library/Developer/CommandLineTools/usr/include/c++/v1/vector:978:25: note: in instantiation of function template specialization 'std::__1::allocator_traits<std::1::allocator<cv::Mat > ::construct<cv::Mat>' requested here __alloc_traits::construct(__a, _VSTD::__to_raw_pointer(this->_end)); ^ /Library/Developer/CommandLineTools/usr/include/c++/v1/vector:1031:15: note: in instantiation of member function 'std::_1::vector<cv::Mat, std::_1::allocator<cv::Mat > >::__construct_at_end' requested here this->__construct_at_end(__n); ^ /Library/Developer/CommandLineTools/usr/include/c++/v1/vector:2006:15: note: in instantiation of member function 'std::_1::vector<cv::Mat, std::_1::allocator<cv::Mat > >::__append' requested here this->__append(__sz - __cs); ^ /Users/admin/Documents/MATLAB/OpenFace-master/lib/local/ FaceAnalyser/src/FaceAnalyser.cpp:103:16: note: in instantiation of member function 'std::_1::vector<cv::Mat, std::1::allocator<cv::Mat > >::resize' requested here hog_desc_hist.resize(head_orientations.size()); ^ In file included from /Users/admin/Documents/MATLAB/ OpenFace-master/lib/local/FaceAnalyser/src/FaceAnalyser.cpp:35: In file included from /Users/admin/Documents/MATLAB/ OpenFace-master/lib/local/FaceAnalyser/./include/FaceAnalyser.h:44: In file included from /usr/local/Cellar/opencv/3.4. 0_1/include/opencv2/core/core.hpp:48: In file included from /usr/local/Cellar/opencv/3.4. 0_1/include/opencv2/core.hpp:59: In file included from /usr/local/Cellar/opencv/3.4. 0_1/include/opencv2/core/mat.hpp:3642: /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat.inl.hpp:1500:60: error: incomplete definition of type 'cv::traits::Type' flags = (flags & ~CV_MAT_TYPE_MASK) | traits::Type<Tp>::value; ^ /Library/Developer/CommandLineTools/usr/include/c++/v1/memory:1783:31: note: in instantiation of member function 'cv::Mat::Mat' requested here ::new((void*)__p) _Up(_VSTD::forward<_Args>(__args)...); ^ /Library/Developer/CommandLineTools/usr/include/c++/v1/memory:1694:18: note: in instantiation of function template specialization 'std::1::allocator<cv::Mat >::construct<cv::Mat>' requested here {__a.construct(__p, _VSTD::forward<_Args>(__args)...);} ^ /Library/Developer/CommandLineTools/usr/include/c++/v1/memory:1540:14: note: in instantiation of function template specialization 'std::__1::allocator_traits<std::_1::allocator<cv::Mat > ::_construct<cv::Mat>' requested here {__construct(__has_construct<allocator_type, _Tp*, _Args...>(), ^ /Library/Developer/CommandLineTools/usr/include/c++/v1/vector:978:25: note: in instantiation of function template specialization 'std::__1::allocator_traits<std::1::allocator<cv::Mat > ::construct<cv::Mat>' requested here __alloc_traits::construct(__a, _VSTD::__to_raw_pointer(this->_end)); ^ /Library/Developer/CommandLineTools/usr/include/c++/v1/vector:1031:15: note: in instantiation of member function 'std::_1::vector<cv::Mat, std::_1::allocator<cv::Mat > >::__construct_at_end' requested here this->__construct_at_end(__n); ^ /Library/Developer/CommandLineTools/usr/include/c++/v1/vector:2006:15: note: in instantiation of member function 'std::_1::vector<cv::Mat, std::_1::allocator<cv::Mat > >::__append' requested here this->__append(__sz - __cs); ^ /Users/admin/Documents/MATLAB/OpenFace-master/lib/local/ FaceAnalyser/src/FaceAnalyser.cpp:103:16: note: in instantiation of member function 'std::1::vector<cv::Mat, std::1::allocator<cv::Mat > >::resize' requested here hog_desc_hist.resize(head_orientations.size()); ^ In file included from /Users/admin/Documents/MATLAB/ OpenFace-master/lib/local/FaceAnalyser/src/FaceAnalyser.cpp:35: In file included from /Users/admin/Documents/MATLAB/ OpenFace-master/lib/local/FaceAnalyser/./include/FaceAnalyser.h:44: In file included from /usr/local/Cellar/opencv/3.4. 0_1/include/opencv2/core/core.hpp:48: In file included from /usr/local/Cellar/opencv/3.4. 0_1/include/opencv2/core.hpp:59: In file included from /usr/local/Cellar/opencv/3.4. 0_1/include/opencv2/core/mat.hpp:3642: /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat.inl.hpp:1563:7: error: no matching constructor for initialization of 'cv::Mat' : Mat(m) ^ ~ /Library/Developer/CommandLineTools/usr/include/c++/v1/memory:1783:31: note: in instantiation of member function 'cv::Mat::Mat' requested here ::new((void*)__p) _Up(_VSTD::forward<_Args>(_args)...); ^ /Library/Developer/CommandLineTools/usr/include/c++/v1/memory:1694:18: note: in instantiation of function template specialization 'std::1::allocator<cv::Mat >::construct<cv::Mat, const cv::Mat &>' requested here {__a.construct(__p, _VSTD::forward<_Args>(__args)...);} ^ /Library/Developer/CommandLineTools/usr/include/c++/v1/memory:1540:14: note: in instantiation of function template specialization 'std::__1::allocator_traits<std::_1::allocator<cv::Mat > ::construct<cv::Mat, const cv::Mat &>' requested here {__construct(__has_construct<allocator_type, _Tp*, _Args...>(), ^ /Library/Developer/CommandLineTools/usr/include/c++/v1/memory:1656:17: note: in instantiation of function template specialization 'std::_1::allocator_traits<std::1::allocator<cv::Mat > ::construct<cv::Mat, const cv::Mat &>' requested here construct(__a, _VSTD::__to_raw_pointer(__end2-1), _VSTD::move_if_noexcept(--__end1)); ^ /Library/Developer/CommandLineTools/usr/include/c++/v1/vector:886:21: note: in instantiation of function template specialization 'std::__1::allocator_traits<std::_1::allocator<cv::Mat > ::_construct_backward<cv::Mat >' requested here __alloc_traits::__construct_backward(this->__alloc(), this->_begin, this->_end, __v._begin); ^ /Library/Developer/CommandLineTools/usr/include/c++/v1/vector:1037:9: note: in instantiation of member function 'std::_1::vector<cv::Mat, std::_1::allocator<cv::Mat > >::__swap_out_circular_buffer' requested here __swap_out_circular_buffer(__v); ^ /Library/Developer/CommandLineTools/usr/include/c++/v1/vector:2006:15: note: in instantiation of member function 'std::_1::vector<cv::Mat, std::_1::allocator<cv::Mat > >::_append' requested here this->append(sz - cs); ^ /Users/admin/Documents/MATLAB/OpenFace-master/lib/local/ FaceAnalyser/src/FaceAnalyser.cpp:103:16: note: in instantiation of member function 'std::1::vector<cv::Mat, std::1::allocator<cv::Mat > >::resize' requested here hog_desc_hist.resize(head_orientations.size()); ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat.hpp:1029:14: note: candidate constructor not viable: no known conversion from 'const cv::Mat' to 'const cuda::GpuMat' for 1st argument explicit Mat(const cuda::GpuMat& m); ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat.inl.hpp:476:6: note: candidate constructor not viable: no known conversion from 'const cv::Mat' to 'const cv::Mat' for 1st argument Mat::Mat(const Mat& m) ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat.inl.hpp:1335:6: note: candidate constructor not viable: no known conversion from 'const cv::Mat' to 'cv::Mat' for 1st argument Mat::Mat(Mat&& m) ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat.inl.hpp:561:6: note: candidate template ignored: could not match 'vector' against 'Mat' Mat::Mat(const std::vector<Tp>& vec, bool copyData) ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat.inl.hpp:579:6: note: candidate template ignored: could not match 'initializer_list' against 'Mat' Mat::Mat(const std::initializer_list<Tp> list) ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat.inl.hpp:591:6: note: candidate template ignored: could not match 'array' against 'Mat' Mat::Mat(const std::array<Tp, Nm>& arr, bool copyData) ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat.inl.hpp:609:6: note: candidate template ignored: could not match 'Vec' against 'Mat' Mat::Mat(const Vec<Tp, n>& vec, bool copyData) ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat.inl.hpp:625:6: note: candidate template ignored: could not match 'Matx' against 'Mat' Mat::Mat(const Matx<Tp,m,n>& M, bool copyData) ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat.inl.hpp:641:6: note: candidate template ignored: could not match 'Point' against 'Mat' Mat::Mat(const Point<Tp>& pt, bool copyData) ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat.inl.hpp:660:6: note: candidate template ignored: could not match 'Point3' against 'Mat' Mat::Mat(const Point3<Tp>& pt, bool copyData) ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat.inl.hpp:680:6: note: candidate template ignored: could not match 'MatCommaInitializer' against 'Mat' Mat::Mat(const MatCommaInitializer<_Tp>& commaInitializer) ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat.inl.hpp:402:6: note: candidate constructor not viable: requires 0 arguments, but 1 was provided Mat::Mat() ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat.inl.hpp:425:6: note: candidate constructor not viable: requires 2 arguments, but 1 was provided Mat::Mat(Size _sz, int _type) ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat.inl.hpp:459:6: note: candidate constructor not viable: requires 2 arguments, but 1 was provided Mat::Mat(const std::vector& _sz, int _type) ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat.hpp:955:5: note: candidate constructor not viable: requires 2 arguments, but 1 was provided Mat(const Mat& m, const Rect& roi); ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat.hpp:965:5: note: candidate constructor not viable: requires 2 arguments, but 1 was provided Mat(const Mat& m, const Range ranges); ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat.hpp:975:5: note: candidate constructor not viable: requires 2 arguments, but 1 was provided Mat(const Mat& m, const std::vector& ranges); ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat.inl.hpp:408:6: note: candidate constructor not viable: requires 3 arguments, but 1 was provided Mat::Mat(int _rows, int _cols, int _type) ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat.inl.hpp:433:6: note: candidate constructor not viable: requires 3 arguments, but 1 was provided Mat::Mat(Size _sz, int _type, const Scalar& _s) ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat.inl.hpp:442:6: note: candidate constructor not viable: requires 3 arguments, but 1 was provided Mat::Mat(int _dims, const int _sz, int _type) ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat.inl.hpp:467:6: note: candidate constructor not viable: requires 3 arguments, but 1 was provided Mat::Mat(const std::vector& _sz, int _type, const Scalar& _s) ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat.hpp:945:5: note: candidate constructor not viable: requires at least 2 arguments, but 1 was provided Mat(const Mat& m, const Range& rowRange, const Range& colRange=Range::all()); ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat.inl.hpp:416:6: note: candidate constructor not viable: requires 4 arguments, but 1 was provided Mat::Mat(int _rows, int _cols, int _type, const Scalar& _s) ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat.inl.hpp:450:6: note: candidate constructor not viable: requires 4 arguments, but 1 was provided Mat::Mat(int _dims, const int* _sz, int _type, const Scalar& _s) ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat.inl.hpp:528:6: note: candidate constructor not viable: requires at least 3 arguments, but 1 was provided Mat::Mat(Size _sz, int _type, void* _data, size_t _step) ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat.hpp:933:5: note: candidate constructor not viable: requires at least 3 arguments, but 1 was provided Mat(const std::vector& sizes, int type, void* data, const size_t* steps=0); ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat.inl.hpp:495:6: note: candidate constructor not viable: requires at least 4 arguments, but 1 was provided Mat::Mat(int _rows, int _cols, int _type, void* _data, size_t _step) ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat.hpp:919:5: note: candidate constructor not viable: requires at least 4 arguments, but 1 was provided Mat(int ndims, const int* sizes, int type, void* data, const size_t* steps=0); ^ fatal error: too many errors emitted, stopping now [-ferror-limit=] 20 errors generated. make[2]: *** [lib/local/FaceAnalyser/CMakeFiles/FaceAnalyser.dir/src/FaceAnalyser.cpp.o] Error 1 make[1]: *** [lib/local/FaceAnalyser/CMakeFiles/FaceAnalyser.dir/all] Error 2 make: *** [all] Error 2 — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub <https://github.com/ <https://github.com/> TadasBaltrusaitis/OpenFace/issues/323>, or mute the thread < https://github.com/notifications/unsubscribe-auth/Aa93Ix9mwu3xQ- <https://github.com/notifications/unsubscribe-auth/Aa93Ix9mwu3xQ-> 0lgtcPwewAaeuAZdnMks5tLTI9gaJpZM4Rglm9>.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub <https://github.com/TadasBaltrusaitis/OpenFace/issues/323#issuecomment-358144491 https://github.com/TadasBaltrusaitis/OpenFace/issues/323#issuecomment-358144491>, or mute the thread <https://github.com/notifications/unsubscribe-auth/AZNvsFP0dT5nP9CQtap3U8wXaK1_3bsIks5tLTLrgaJpZM4Rglm9 https://github.com/notifications/unsubscribe-auth/AZNvsFP0dT5nP9CQtap3U8wXaK1_3bsIks5tLTLrgaJpZM4Rglm9> .
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/TadasBaltrusaitis/OpenFace/issues/323#issuecomment-358146902, or mute the thread https://github.com/notifications/unsubscribe-auth/Aa93I8bN-pZrhItByilFcXpLFBXCCJFTks5tLTX8gaJpZM4Rglm9.
Thank you! The error is fixed. I also had to uninstall anaconda.
On Tue, Jan 16, 2018 at 3:54 PM, iPsych notifications@github.com wrote:
As you can search in the wiki, for os X version, newest version of OPENCV is currently not compatible, means you can’t use homebrew to install 3.x only 3.1 and 3.2 will work. (3.1 is tricky to install high sierra). Since there is no single working solution for install 3.2, try to down 3.2 and compile & install yourself.
Bests, J.
On Jan 17, 2018, at 8:51 AM, amattek notifications@github.com wrote:
Thank you!
macOS version: High Sierra 10.13.2
Xcode version: When I type "gcc --version" in Terminal, I get the following output:
Configured with: --prefix=/Library/Developer/CommandLineTools/usr --with-gxx-include-dir=/usr/include/c++/4.2.1
Apple LLVM version 9.0.0 (clang-900.0.39.2)
Target: x86_64-apple-darwin17.3.0
Thread model: posix
InstalledDir: /Library/Developer/CommandLineTools/usr/bin
If I open the Xcode application, and go to "About XCode", it says I have XCode 9.2
Boost version:
I installed the older version of Boost (1_150_0), as suggested by the wiki.
Open CV version:
Open CV was installed using: brew install tbb opencv3, as suggested by the wiki.
Here is the output from the "cmake" command, if that is helpful:
PSY-C02LD5DNF8J4:OpenFace-master admin$ cmake -D CMAKE_BUILD_TYPE=RELEASE .
-- A library with BLAS API found.
OpenCV information:
OpenCV_INCLUDE_DIRS: /usr/local/Cellar/opencv/3.4.0_1/include;/usr/local/Cellar/ opencv/3.4.0_1/include/opencv
OpenCV_LIBRARIES: opencv_calib3d;opencv_core;opencv_dnn;opencv_features2d; opencv_flann;opencv_highgui;opencvimgcodecs;opencv imgproc;opencv_ml;opencv_objdetect;opencvphoto;opencv shape;opencv_stitching;opencv_superres;opencvvideo;opencv videoio;opencv_videostab;opencv_aruco;opencv_bgsegm; opencv_bioinspired;opencv_ccalib;opencvdatasets;opencv dpm;opencv_face;opencv_fuzzy;opencv_img_hash;opencvline descriptor;opencv_optflow;opencv_phase_unwrapping; opencv_plot;opencv_reg;opencv_rgbd;opencvsaliency;opencv stereo;opencv_structured_light;opencv_surface_matching; opencv_text;opencv_tracking;opencvxfeatures2d;opencv ximgproc;opencv_xobjdetect;opencv_xphoto
OpenCV_LIBRARY_DIRS:
-- Boost version: 1.50.0
-- Found the following Boost libraries:
-- filesystem
-- system
Boost information:
Boost_INCLUDE_DIRS: /usr/local/include
Boost_LIBRARIES: /usr/local/lib/libboost_filesystem-mt.dylib;/usr/ local/lib/libboost_system-mt.dylib
Boost_LIBRARY_DIRS: /usr/local/lib
X11 information:
X11_INCLUDE_DIR: /opt/X11/include
X11_LIBRARIES: /opt/X11/lib/libSM.dylib;/opt/X11/lib/libICE.dylib;/opt/X11/ lib/libX11.dylib;/opt/X11/lib/libXext.dylib
X11_LIBRARY_DIRS:
-- Searching for BLAS and LAPACK
-- Found LAPACK library
-- Found CBLAS library
-- Configuring done
-- Generating done
-- Build files have been written to: /Users/admin/Documents/MATLAB/OpenFace-master
On Tue, Jan 16, 2018 at 3:38 PM, iPsych <notifications@github.com mailto:notifications@github.com> wrote:
To help this issue, one need the 1)current os version 2)Xcode or xcode command line tool version 3)boost and other requirements versions 4)opencv version
On Jan 17, 2018, at 8:35 AM, amattek <notifications@github.com mailto:notifications@github.com> wrote:
Hello,
The "make" command builds "target dlib" and "target LandmarkDetector", but there is an error when it builds the FaceAnalyzer. Any suggestions as to what might be wrong would be greatly appreciated!
Thanks :)
PSY-C02LD5DNF8J4:OpenFace-master admin$ make [ 1%] Building CXX object lib/3rdParty/dlib/CMakeFiles/ dlib.dir/include/dlib/base64/base64_kernel_1.o [ 2%] Building CXX object lib/3rdParty/dlib/CMakeFiles/ dlib.dir/include/dlib/bigint/bigint_kernel_1.o [ 4%] Building CXX object lib/3rdParty/dlib/CMakeFiles/ dlib.dir/include/dlib/bigint/bigint_kernel_2.o [ 5%] Building CXX object lib/3rdParty/dlib/CMakeFiles/ dlib.dir/include/dlib/bit_stream/bit_stream_kernel_1.o [ 6%] Building CXX object lib/3rdParty/dlib/CMakeFiles/ dlib.dir/include/dlib/entropy_decoder/entropy_decoder_kernel_1.o [ 8%] Building CXX object lib/3rdParty/dlib/CMakeFiles/ dlib.dir/include/dlib/entropy_decoder/entropy_decoder_kernel_2.o [ 9%] Building CXX object lib/3rdParty/dlib/CMakeFiles/ dlib.dir/include/dlib/entropy_encoder/entropy_encoder_kernel_1.o [ 10%] Building CXX object lib/3rdParty/dlib/CMakeFiles/ dlib.dir/include/dlib/entropy_encoder/entropy_encoder_kernel_2.o [ 12%] Building CXX object lib/3rdParty/dlib/CMakeFiles/ dlib.dir/include/dlib/md5/md5_kernel_1.o [ 13%] Building CXX object lib/3rdParty/dlib/CMakeFiles/ dlib.dir/include/dlib/tokenizer/tokenizer_kernel_1.o [ 14%] Building CXX object lib/3rdParty/dlib/CMakeFiles/ dlib.dir/include/dlib/unicode/unicode.o [ 16%] Building CXX object lib/3rdParty/dlib/CMakeFiles/ dlib.dir/include/dlib/data_io/image_dataset_metadata.o [ 17%] Building CXX object lib/3rdParty/dlib/CMakeFiles/ dlib.dir/include/dlib/sockets/sockets_kernel_1.o [ 18%] Building CXX object lib/3rdParty/dlib/CMakeFiles/ dlib.dir/include/dlib/bsp/bsp.o [ 20%] Building CXX object lib/3rdParty/dlib/CMakeFiles/ dlib.dir/include/dlib/dir_nav/dir_nav_kernel_1.o [ 21%] Building CXX object lib/3rdParty/dlib/CMakeFiles/ dlib.dir/include/dlib/dir_nav/dir_nav_kernel_2.o [ 22%] Building CXX object lib/3rdParty/dlib/CMakeFiles/ dlib.dir/include/dlib/dir_nav/dir_nav_extensions.o [ 24%] Building CXX object lib/3rdParty/dlib/CMakeFiles/ dlib.dir/include/dlib/linker/linker_kernel_1.o [ 25%] Building CXX object lib/3rdParty/dlib/CMakeFiles/ dlib.dir/include/dlib/logger/extra_logger_headers.o [ 27%] Building CXX object lib/3rdParty/dlib/CMakeFiles/ dlib.dir/include/dlib/logger/logger_kernel_1.o [ 28%] Building CXX object lib/3rdParty/dlib/CMakeFiles/ dlib.dir/include/dlib/logger/logger_config_file.o [ 29%] Building CXX object lib/3rdParty/dlib/CMakeFiles/ dlib.dir/include/dlib/misc_api/misc_api_kernel_1.o [ 31%] Building CXX object lib/3rdParty/dlib/CMakeFiles/ dlib.dir/include/dlib/misc_api/misc_api_kernel_2.o [ 32%] Building CXX object lib/3rdParty/dlib/CMakeFiles/ dlib.dir/include/dlib/sockets/sockets_extensions.o [ 33%] Building CXX object lib/3rdParty/dlib/CMakeFiles/ dlib.dir/include/dlib/sockets/sockets_kernel_2.o [ 35%] Building CXX object lib/3rdParty/dlib/CMakeFiles/ dlib.dir/include/dlib/sockstreambuf/sockstreambuf.o [ 36%] Building CXX object lib/3rdParty/dlib/CMakeFiles/ dlib.dir/include/dlib/sockstreambuf/sockstreambuf_unbuffered.o [ 37%] Building CXX object lib/3rdParty/dlib/CMakeFiles/ dlib.dir/include/dlib/server/server_kernel.o [ 39%] Building CXX object lib/3rdParty/dlib/CMakeFiles/ dlib.dir/include/dlib/server/server_iostream.o [ 40%] Building CXX object lib/3rdParty/dlib/CMakeFiles/ dlib.dir/include/dlib/server/server_http.o [ 41%] Building CXX object lib/3rdParty/dlib/CMakeFiles/ dlib.dir/include/dlib/threads/multithreaded_object_extension.o [ 43%] Building CXX object lib/3rdParty/dlib/CMakeFiles/ dlib.dir/include/dlib/threads/threaded_object_extension.o [ 44%] Building CXX object lib/3rdParty/dlib/CMakeFiles/ dlib.dir/include/dlib/threads/threads_kernel_1.o [ 45%] Building CXX object lib/3rdParty/dlib/CMakeFiles/ dlib.dir/include/dlib/threads/threads_kernel_2.o [ 47%] Building CXX object lib/3rdParty/dlib/CMakeFiles/ dlib.dir/include/dlib/threads/threads_kernel_shared.o [ 48%] Building CXX object lib/3rdParty/dlib/CMakeFiles/ dlib.dir/include/dlib/threads/thread_pool_extension.o [ 50%] Building CXX object lib/3rdParty/dlib/CMakeFiles/ dlib.dir/include/dlib/timer/timer.o [ 51%] Building CXX object lib/3rdParty/dlib/CMakeFiles/ dlib.dir/include/dlib/stack_trace.o [ 52%] Building CXX object lib/3rdParty/dlib/CMakeFiles/ dlib.dir/include/dlib/image_loader/png_loader.o [ 54%] Building CXX object lib/3rdParty/dlib/CMakeFiles/ dlib.dir/include/dlib/image_saver/save_png.o [ 55%] Building CXX object lib/3rdParty/dlib/CMakeFiles/ dlib.dir/include/dlib/image_loader/jpeg_loader.o [ 56%] Linking CXX static library libdlib.a /Library/Developer/CommandLineTools/usr/bin/ranlib: file: libdlib.a(sockets_kernel_1.o) has no symbols /Library/Developer/CommandLineTools/usr/bin/ranlib: file: libdlib.a(dir_nav_kernel_1.o) has no symbols /Library/Developer/CommandLineTools/usr/bin/ranlib: file: libdlib.a(threads_kernel_1.o) has no symbols /Library/Developer/CommandLineTools/usr/bin/ranlib: file: libdlib.a(stack_trace.o) has no symbols /Library/Developer/CommandLineTools/usr/bin/ranlib: file: libdlib.a(sockets_kernel_1.o) has no symbols /Library/Developer/CommandLineTools/usr/bin/ranlib: file: libdlib.a(dir_nav_kernel_1.o) has no symbols /Library/Developer/CommandLineTools/usr/bin/ranlib: file: libdlib.a(threads_kernel_1.o) has no symbols /Library/Developer/CommandLineTools/usr/bin/ranlib: file: libdlib.a(stack_trace.o) has no symbols [ 56%] Built target dlib Scanning dependencies of target LandmarkDetector [ 58%] Building CXX object lib/local/LandmarkDetector/ CMakeFiles/LandmarkDetector.dir/src/CCNF_patch_expert.cpp.o [ 59%] Building CXX object lib/local/LandmarkDetector/ CMakeFiles/LandmarkDetector.dir/src/LandmarkDetectionValidator.cpp.o [ 60%] Building CXX object lib/local/LandmarkDetector/ CMakeFiles/LandmarkDetector.dir/src/LandmarkDetectorFunc.cpp.o [ 62%] Building CXX object lib/local/LandmarkDetector/ CMakeFiles/LandmarkDetector.dir/src/LandmarkDetectorModel.cpp.o [ 63%] Building CXX object lib/local/LandmarkDetector/ CMakeFiles/LandmarkDetector.dir/src/LandmarkDetectorUtils.cpp.o [ 64%] Building CXX object lib/local/LandmarkDetector/ CMakeFiles/LandmarkDetector.dir/src/LandmarkDetectorParameters.cpp.o [ 66%] Building CXX object lib/local/LandmarkDetector/ CMakeFiles/LandmarkDetector.dir/src/Patch_experts.cpp.o [ 67%] Building CXX object lib/local/LandmarkDetector/ CMakeFiles/LandmarkDetector.dir/src/PAW.cpp.o [ 68%] Building CXX object lib/local/LandmarkDetector/ CMakeFiles/LandmarkDetector.dir/src/PDM.cpp.o [ 70%] Building CXX object lib/local/LandmarkDetector/ CMakeFiles/LandmarkDetector.dir/src/SVR_patch_expert.cpp.o [ 71%] Building CXX object lib/local/LandmarkDetector/ CMakeFiles/LandmarkDetector.dir/src/stdafx.cpp.o [ 72%] Linking CXX static library libLandmarkDetector.a [ 72%] Built target LandmarkDetector Scanning dependencies of target FaceAnalyser [ 74%] Building CXX object lib/local/FaceAnalyser/ CMakeFiles/FaceAnalyser.dir/src/Face_utils.cpp.o [ 75%] Building CXX object lib/local/FaceAnalyser/ CMakeFiles/FaceAnalyser.dir/src/FaceAnalyser.cpp.o In file included from /Users/admin/Documents/MATLAB/ OpenFace-master/lib/local/FaceAnalyser/src/FaceAnalyser.cpp:35: In file included from /Users/admin/Documents/MATLAB/ OpenFace-master/lib/local/FaceAnalyser/./include/FaceAnalyser.h:44: In file included from /usr/local/Cellar/opencv/3.4. 0_1/include/opencv2/core/core.hpp:48: In file included from /usr/local/Cellar/opencv/3.4. 0_1/include/opencv2/core.hpp:59: /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat. hpp:2153:37: error: no type named 'channel_type' in 'cv::DataType' typedef typename DataType
::channel_type channeltype; ^ /Users/admin/Documents/MATLAB/OpenFace-master/lib/local/ FaceAnalyser/./include/FaceAnalyser.h:169:25: note: in instantiation of template class 'cv::Mat' requested here cv::Mat geom_desc_hist; ^ In file included from /Users/admin/Documents/MATLAB/ OpenFace-master/lib/local/FaceAnalyser/src/FaceAnalyser.cpp:35: In file included from /Users/admin/Documents/MATLAB/ OpenFace-master/lib/local/FaceAnalyser/./include/FaceAnalyser.h:44: In file included from /usr/local/Cellar/opencv/3.4. 0_1/include/opencv2/core/core.hpp:48: In file included from /usr/local/Cellar/opencv/3.4. 0_1/include/opencv2/core.hpp:59: /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat. hpp:2191:69: error: no type named 'channeltype' in 'cv::DataType' template explicit Mat(const Vec<typename DataType ::channel_type, n>& vec, bool copyData=true); ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat. hpp:2192:77: error: no type named 'channel_type' in 'cv::DataType' template<int m, int n> explicit Mat(const Matx<typename DataType ::channel_type, m, n>& mtx, bool copyData=true); ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat. hpp:2193:56: error: no type named 'channeltype' in 'cv::DataType' explicit Mat(const Point<typename DataType ::channel_type>& pt, bool copyData=true); ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat. hpp:2194:57: error: no type named 'channeltype' in 'cv::DataType' explicit Mat(const Point3<typename DataType<_Tp>::channel_type>& pt, bool copyData=true); ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat. hpp:2307:58: error: no type named 'channel_type' in 'cv::DataType' template operator Vec<typename DataType ::channel_type, n>() const; ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat. hpp:2309:66: error: no type named 'channel_type' in 'cv::DataType' template<int m, int n> operator Matx<typename DataType ::channel_type, m, n>() const; ^ /Users/admin/Documents/MATLAB/OpenFace-master/lib/local/ FaceAnalyser/src/FaceAnalyser.cpp:767:5: error: cannot initialize object parameter of type 'const cv::Mat' with an expression of type 'cv::Mat' if(histogram.empty()) ^ ~~~~ /Users/admin/Documents/MATLAB/OpenFace-master/lib/local/ FaceAnalyser/src/FaceAnalyser.cpp:785:14: error: no matching member function for call to 'at' histogram.at(i, index)++; ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat. inl.hpp:1090:11: note: candidate function not viable: no known conversion from 'cv::Mat' to 'cv::Mat' for object argument Tp& Mat::at(int i0, int i1) ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat. inl.hpp:1101:17: note: candidate function not viable: no known conversion from 'cv::Mat' to 'const cv::Mat' for object argument const _Tp& Mat::at(int i0, int i1) const ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat. inl.hpp:1134:11: note: candidate function template not viable: allows at most single argument 'i0', but 2 arguments were provided _Tp& Mat::at(int i0) ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat. inl.hpp:1149:17: note: candidate function template not viable: allows at most single argument 'i0', but 2 arguments were provided const _Tp& Mat::at(int i0) const ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat. inl.hpp:1164:11: note: candidate function template not viable: requires 3 arguments, but 2 were provided _Tp& Mat::at(int i0, int i1, int i2) ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat. inl.hpp:1171:17: note: candidate function template not viable: requires 3 arguments, but 2 were provided const _Tp& Mat::at(int i0, int i1, int i2) const ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat. inl.hpp:1112:11: note: candidate function template not viable: requires single argument 'pt', but 2 arguments were provided _Tp& Mat::at(Point pt) ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat. inl.hpp:1123:17: note: candidate function template not viable: requires single argument 'pt', but 2 arguments were provided const _Tp& Mat::at(Point pt) const ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat. inl.hpp:1178:11: note: candidate function template not viable: requires single argument 'idx', but 2 arguments were provided _Tp& Mat::at(const int idx) ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat. inl.hpp:1185:17: note: candidate function template not viable: requires single argument 'idx', but 2 arguments were provided const _Tp& Mat::at(const int idx) const ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat. inl.hpp:1192:11: note: candidate function template not viable: requires single argument 'idx', but 2 arguments were provided _Tp& Mat::at(const Vec<int, n>& idx) ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat. inl.hpp:1199:17: note: candidate function template not viable: requires single argument 'idx', but 2 arguments were provided const Tp& Mat::at(const Vec<int, n>& idx) const ^ /Users/admin/Documents/MATLAB/OpenFace-master/lib/local/ FaceAnalyser/src/FaceAnalyser.cpp:807:34: error: no matching member function for call to 'at' cummulative_sum += histogram.at(i, j); ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat. inl.hpp:1090:11: note: candidate function not viable: no known conversion from 'cv::Mat' to 'cv::Mat' for object argument Tp& Mat::at(int i0, int i1) ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat. inl.hpp:1101:17: note: candidate function not viable: no known conversion from 'cv::Mat' to 'const cv::Mat' for object argument const _Tp& Mat::at(int i0, int i1) const ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat. inl.hpp:1134:11: note: candidate function template not viable: allows at most single argument 'i0', but 2 arguments were provided _Tp& Mat::at(int i0) ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat. inl.hpp:1149:17: note: candidate function template not viable: allows at most single argument 'i0', but 2 arguments were provided const _Tp& Mat::at(int i0) const ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat. inl.hpp:1164:11: note: candidate function template not viable: requires 3 arguments, but 2 were provided _Tp& Mat::at(int i0, int i1, int i2) ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat. inl.hpp:1171:17: note: candidate function template not viable: requires 3 arguments, but 2 were provided const _Tp& Mat::at(int i0, int i1, int i2) const ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat. inl.hpp:1112:11: note: candidate function template not viable: requires single argument 'pt', but 2 arguments were provided _Tp& Mat::at(Point pt) ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat. inl.hpp:1123:17: note: candidate function template not viable: requires single argument 'pt', but 2 arguments were provided const _Tp& Mat::at(Point pt) const ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat. inl.hpp:1178:11: note: candidate function template not viable: requires single argument 'idx', but 2 arguments were provided _Tp& Mat::at(const int idx) ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat. inl.hpp:1185:17: note: candidate function template not viable: requires single argument 'idx', but 2 arguments were provided const _Tp& Mat::at(const int idx) const ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat. inl.hpp:1192:11: note: candidate function template not viable: requires single argument 'idx', but 2 arguments were provided Tp& Mat::at(const Vec<int, n>& idx) ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat. inl.hpp:1199:17: note: candidate function template not viable: requires single argument 'idx', but 2 arguments were provided const Tp& Mat::at(const Vec<int, n>& idx) const ^ /Users/admin/Documents/MATLAB/OpenFace-master/lib/local/ FaceAnalyser/src/FaceAnalyser.cpp:827:5: error: cannot initialize object parameter of type 'const cv::Mat' with an expression of type 'cv::Mat' if(histogram.empty()) ^~~~~ /Users/admin/Documents/MATLAB/OpenFace-master/lib/local/ FaceAnalyser/src/FaceAnalyser.cpp:847:34: error: no matching member function for call to 'at' cummulative_sum += histogram.at(i, j); ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat. inl.hpp:1090:11: note: candidate function not viable: no known conversion from 'cv::Mat' to 'cv::Mat' for object argument Tp& Mat::at(int i0, int i1) ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat. inl.hpp:1101:17: note: candidate function not viable: no known conversion from 'cv::Mat' to 'const cv::Mat' for object argument const _Tp& Mat::at(int i0, int i1) const ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat. inl.hpp:1134:11: note: candidate function template not viable: allows at most single argument 'i0', but 2 arguments were provided _Tp& Mat::at(int i0) ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat. inl.hpp:1149:17: note: candidate function template not viable: allows at most single argument 'i0', but 2 arguments were provided const _Tp& Mat::at(int i0) const ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat. inl.hpp:1164:11: note: candidate function template not viable: requires 3 arguments, but 2 were provided _Tp& Mat::at(int i0, int i1, int i2) ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat. inl.hpp:1171:17: note: candidate function template not viable: requires 3 arguments, but 2 were provided const _Tp& Mat::at(int i0, int i1, int i2) const ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat. inl.hpp:1112:11: note: candidate function template not viable: requires single argument 'pt', but 2 arguments were provided _Tp& Mat::at(Point pt) ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat. inl.hpp:1123:17: note: candidate function template not viable: requires single argument 'pt', but 2 arguments were provided const _Tp& Mat::at(Point pt) const ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat. inl.hpp:1178:11: note: candidate function template not viable: requires single argument 'idx', but 2 arguments were provided _Tp& Mat::at(const int idx) ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat. inl.hpp:1185:17: note: candidate function template not viable: requires single argument 'idx', but 2 arguments were provided const _Tp& Mat::at(const int idx) const ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat. inl.hpp:1192:11: note: candidate function template not viable: requires single argument 'idx', but 2 arguments were provided Tp& Mat::at(const Vec<int, n>& idx) ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat. inl.hpp:1199:17: note: candidate function template not viable: requires single argument 'idx', but 2 arguments were provided const Tp& Mat::at(const Vec<int, n>& idx) const ^ /Users/admin/Documents/MATLAB/OpenFace-master/lib/local/ FaceAnalyser/src/FaceAnalyser.cpp:1140:5: error: cannot initialize object parameter of type 'const cv::Mat' with an expression of type 'cv::Mat' if(prediction_corr_histogram.empty()) ^~~~~~~~~ /Users/admin/Documents/MATLAB/OpenFace-master/lib/local/ FaceAnalyser/src/FaceAnalyser.cpp:1157:29: error: no matching member function for call to 'at' prediction_corr_histogram.at(i, index)++; ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat. inl.hpp:1090:11: note: candidate function not viable: no known conversion from 'cv::Mat' to 'cv::Mat' for object argument Tp& Mat::at(int i0, int i1) ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat. inl.hpp:1101:17: note: candidate function not viable: no known conversion from 'cv::Mat' to 'const cv::Mat' for object argument const _Tp& Mat::at(int i0, int i1) const ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat. inl.hpp:1134:11: note: candidate function template not viable: allows at most single argument 'i0', but 2 arguments were provided _Tp& Mat::at(int i0) ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat. inl.hpp:1149:17: note: candidate function template not viable: allows at most single argument 'i0', but 2 arguments were provided const _Tp& Mat::at(int i0) const ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat. inl.hpp:1164:11: note: candidate function template not viable: requires 3 arguments, but 2 were provided _Tp& Mat::at(int i0, int i1, int i2) ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat. inl.hpp:1171:17: note: candidate function template not viable: requires 3 arguments, but 2 were provided const _Tp& Mat::at(int i0, int i1, int i2) const ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat. inl.hpp:1112:11: note: candidate function template not viable: requires single argument 'pt', but 2 arguments were provided _Tp& Mat::at(Point pt) ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat. inl.hpp:1123:17: note: candidate function template not viable: requires single argument 'pt', but 2 arguments were provided const _Tp& Mat::at(Point pt) const ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat. inl.hpp:1178:11: note: candidate function template not viable: requires single argument 'idx', but 2 arguments were provided _Tp& Mat::at(const int idx) ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat. inl.hpp:1185:17: note: candidate function template not viable: requires single argument 'idx', but 2 arguments were provided const _Tp& Mat::at(const int idx) const ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat. inl.hpp:1192:11: note: candidate function template not viable: requires single argument 'idx', but 2 arguments were provided _Tp& Mat::at(const Vec<int, n>& idx) ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat. inl.hpp:1199:17: note: candidate function template not viable: requires single argument 'idx', but 2 arguments were provided const Tp& Mat::at(const Vec<int, n>& idx) const ^ /Users/admin/Documents/MATLAB/OpenFace-master/lib/local/ FaceAnalyser/src/FaceAnalyser.cpp:1174:50: error: no matching member function for call to 'at' cummulative_sum += prediction_corr_histogram.at(i, j); ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat. inl.hpp:1090:11: note: candidate function not viable: no known conversion from 'cv::Mat' to 'cv::Mat' for object argument Tp& Mat::at(int i0, int i1) ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat. inl.hpp:1101:17: note: candidate function not viable: no known conversion from 'cv::Mat' to 'const cv::Mat' for object argument const _Tp& Mat::at(int i0, int i1) const ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat. inl.hpp:1134:11: note: candidate function template not viable: allows at most single argument 'i0', but 2 arguments were provided _Tp& Mat::at(int i0) ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat. inl.hpp:1149:17: note: candidate function template not viable: allows at most single argument 'i0', but 2 arguments were provided const _Tp& Mat::at(int i0) const ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat. inl.hpp:1164:11: note: candidate function template not viable: requires 3 arguments, but 2 were provided _Tp& Mat::at(int i0, int i1, int i2) ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat. inl.hpp:1171:17: note: candidate function template not viable: requires 3 arguments, but 2 were provided const _Tp& Mat::at(int i0, int i1, int i2) const ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat. inl.hpp:1112:11: note: candidate function template not viable: requires single argument 'pt', but 2 arguments were provided _Tp& Mat::at(Point pt) ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat. inl.hpp:1123:17: note: candidate function template not viable: requires single argument 'pt', but 2 arguments were provided const _Tp& Mat::at(Point pt) const ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat. inl.hpp:1178:11: note: candidate function template not viable: requires single argument 'idx', but 2 arguments were provided _Tp& Mat::at(const int idx) ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat. inl.hpp:1185:17: note: candidate function template not viable: requires single argument 'idx', but 2 arguments were provided const _Tp& Mat::at(const int idx) const ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat. inl.hpp:1192:11: note: candidate function template not viable: requires single argument 'idx', but 2 arguments were provided _Tp& Mat::at(const Vec<int, n>& idx) ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat. inl.hpp:1199:17: note: candidate function template not viable: requires single argument 'idx', but 2 arguments were provided const Tp& Mat::at(const Vec<int, n>& idx) const ^ /Users/admin/Documents/MATLAB/OpenFace-master/lib/local/ FaceAnalyser/src/FaceAnalyser.cpp:1204:49: error: no matching member function for call to 'at' cummulative_sum += prediction_corr_histogram.at(i, j); ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat. inl.hpp:1090:11: note: candidate function not viable: no known conversion from 'cv::Mat' to 'cv::Mat' for object argument Tp& Mat::at(int i0, int i1) ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat. inl.hpp:1101:17: note: candidate function not viable: no known conversion from 'cv::Mat' to 'const cv::Mat' for object argument const _Tp& Mat::at(int i0, int i1) const ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat. inl.hpp:1134:11: note: candidate function template not viable: allows at most single argument 'i0', but 2 arguments were provided _Tp& Mat::at(int i0) ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat. inl.hpp:1149:17: note: candidate function template not viable: allows at most single argument 'i0', but 2 arguments were provided const _Tp& Mat::at(int i0) const ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat. inl.hpp:1164:11: note: candidate function template not viable: requires 3 arguments, but 2 were provided _Tp& Mat::at(int i0, int i1, int i2) ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat. inl.hpp:1171:17: note: candidate function template not viable: requires 3 arguments, but 2 were provided const _Tp& Mat::at(int i0, int i1, int i2) const ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat. inl.hpp:1112:11: note: candidate function template not viable: requires single argument 'pt', but 2 arguments were provided _Tp& Mat::at(Point pt) ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat. inl.hpp:1123:17: note: candidate function template not viable: requires single argument 'pt', but 2 arguments were provided const _Tp& Mat::at(Point pt) const ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat. inl.hpp:1178:11: note: candidate function template not viable: requires single argument 'idx', but 2 arguments were provided _Tp& Mat::at(const int idx) ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat. inl.hpp:1185:17: note: candidate function template not viable: requires single argument 'idx', but 2 arguments were provided const _Tp& Mat::at(const int idx) const ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat. inl.hpp:1192:11: note: candidate function template not viable: requires single argument 'idx', but 2 arguments were provided _Tp& Mat::at(const Vec<int, n>& idx) ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat. inl.hpp:1199:17: note: candidate function template not viable: requires single argument 'idx', but 2 arguments were provided const Tp& Mat::at(const Vec<int, n>& idx) const ^ In file included from /Users/admin/Documents/MATLAB/ OpenFace-master/lib/local/FaceAnalyser/src/FaceAnalyser.cpp:35: In file included from /Users/admin/Documents/MATLAB/ OpenFace-master/lib/local/FaceAnalyser/./include/FaceAnalyser.h:44: In file included from /usr/local/Cellar/opencv/3.4. 0_1/include/opencv2/core/core.hpp:48: In file included from /usr/local/Cellar/opencv/3.4. 0_1/include/opencv2/core.hpp:56: /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/ traits.hpp:366:31: error: no member named 'type' in 'cv::DataType' { enum { value = DataType::type }; };/usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat. inl.hpp:1500:51: note: in instantiation of template class 'cv::traits::Type' requested here flags = (flags & ~CV_MAT_TYPE_MASK) | traits::Type<Tp>::value; ^ /Library/Developer/CommandLineTools/usr/include/ c++/v1/memory:1783:31: note: in instantiation of member function 'cv::Mat::Mat' requested here ::new((void*)__p) _Up(_VSTD::forward<_Args>(__args)...); ^ /Library/Developer/CommandLineTools/usr/include/ c++/v1/memory:1694:18: note: in instantiation of function template specialization 'std::1::allocator<cv::Mat >::construct<cv::Mat>' requested here {__a.construct(__p, _VSTD::forward<_Args>(__args)...);} ^ /Library/Developer/CommandLineTools/usr/include/ c++/v1/memory:1540:14: note: in instantiation of function template specialization 'std::__1::allocator_traits<std::_1::allocator<cv::Mat > ::_construct<cv::Mat>' requested here {__construct(__has_construct<allocator_type, _Tp*, _Args...>(), ^ /Library/Developer/CommandLineTools/usr/include/ c++/v1/vector:978:25: note: in instantiation of function template specialization 'std::__1::allocator_traits<std::1::allocator<cv::Mat > ::construct<cv::Mat>' requested here __alloc_traits::construct(__a, _VSTD::__to_raw_pointer(this->_end)); ^ /Library/Developer/CommandLineTools/usr/include/ c++/v1/vector:1031:15: note: in instantiation of member function 'std::_1::vector<cv::Mat, std::_1::allocator<cv::Mat > >::__construct_at_end' requested here this->__construct_at_end(__n); ^ /Library/Developer/CommandLineTools/usr/include/ c++/v1/vector:2006:15: note: in instantiation of member function 'std::_1::vector<cv::Mat, std::_1::allocator<cv::Mat > >::__append' requested here this->__append(__sz - __cs); ^ /Users/admin/Documents/MATLAB/OpenFace-master/lib/local/ FaceAnalyser/src/FaceAnalyser.cpp:103:16: note: in instantiation of member function 'std::_1::vector<cv::Mat, std::1::allocator<cv::Mat > >::resize' requested here hog_desc_hist.resize(head_orientations.size()); ^ In file included from /Users/admin/Documents/MATLAB/ OpenFace-master/lib/local/FaceAnalyser/src/FaceAnalyser.cpp:35: In file included from /Users/admin/Documents/MATLAB/ OpenFace-master/lib/local/FaceAnalyser/./include/FaceAnalyser.h:44: In file included from /usr/local/Cellar/opencv/3.4. 0_1/include/opencv2/core/core.hpp:48: In file included from /usr/local/Cellar/opencv/3.4. 0_1/include/opencv2/core.hpp:59: In file included from /usr/local/Cellar/opencv/3.4. 0_1/include/opencv2/core/mat.hpp:3642: /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat. inl.hpp:1500:60: error: incomplete definition of type 'cv::traits::Type' flags = (flags & ~CV_MAT_TYPE_MASK) | traits::Type<Tp>::value; ^ /Library/Developer/CommandLineTools/usr/include/ c++/v1/memory:1783:31: note: in instantiation of member function 'cv::Mat::Mat' requested here ::new((void*)__p) _Up(_VSTD::forward<_Args>(__args)...); ^ /Library/Developer/CommandLineTools/usr/include/ c++/v1/memory:1694:18: note: in instantiation of function template specialization 'std::1::allocator<cv::Mat >::construct<cv::Mat>' requested here {__a.construct(__p, _VSTD::forward<_Args>(__args)...);} ^ /Library/Developer/CommandLineTools/usr/include/ c++/v1/memory:1540:14: note: in instantiation of function template specialization 'std::__1::allocator_traits<std::_1::allocator<cv::Mat > ::_construct<cv::Mat>' requested here {__construct(__has_construct<allocator_type, _Tp*, _Args...>(), ^ /Library/Developer/CommandLineTools/usr/include/ c++/v1/vector:978:25: note: in instantiation of function template specialization 'std::__1::allocator_traits<std::1::allocator<cv::Mat > ::construct<cv::Mat>' requested here __alloc_traits::construct(__a, _VSTD::__to_raw_pointer(this->_end)); ^ /Library/Developer/CommandLineTools/usr/include/ c++/v1/vector:1031:15: note: in instantiation of member function 'std::_1::vector<cv::Mat, std::_1::allocator<cv::Mat > >::__construct_at_end' requested here this->__construct_at_end(__n); ^ /Library/Developer/CommandLineTools/usr/include/ c++/v1/vector:2006:15: note: in instantiation of member function 'std::_1::vector<cv::Mat, std::_1::allocator<cv::Mat > >::__append' requested here this->__append(__sz - __cs); ^ /Users/admin/Documents/MATLAB/OpenFace-master/lib/local/ FaceAnalyser/src/FaceAnalyser.cpp:103:16: note: in instantiation of member function 'std::1::vector<cv::Mat, std::1::allocator<cv::Mat > >::resize' requested here hog_desc_hist.resize(head_orientations.size()); ^ In file included from /Users/admin/Documents/MATLAB/ OpenFace-master/lib/local/FaceAnalyser/src/FaceAnalyser.cpp:35: In file included from /Users/admin/Documents/MATLAB/ OpenFace-master/lib/local/FaceAnalyser/./include/FaceAnalyser.h:44: In file included from /usr/local/Cellar/opencv/3.4. 0_1/include/opencv2/core/core.hpp:48: In file included from /usr/local/Cellar/opencv/3.4. 0_1/include/opencv2/core.hpp:59: In file included from /usr/local/Cellar/opencv/3.4. 0_1/include/opencv2/core/mat.hpp:3642: /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat. inl.hpp:1563:7: error: no matching constructor for initialization of 'cv::Mat' : Mat(m) ^ ~ /Library/Developer/CommandLineTools/usr/include/ c++/v1/memory:1783:31: note: in instantiation of member function 'cv::Mat::Mat' requested here ::new((void*)__p) _Up(_VSTD::forward<_Args>(_args)...); ^ /Library/Developer/CommandLineTools/usr/include/ c++/v1/memory:1694:18: note: in instantiation of function template specialization 'std::1::allocator<cv::Mat >::construct<cv::Mat, const cv::Mat &>' requested here {__a.construct(__p, _VSTD::forward<_Args>(__args)...);} ^ /Library/Developer/CommandLineTools/usr/include/ c++/v1/memory:1540:14: note: in instantiation of function template specialization 'std::__1::allocator_traits<std::_1::allocator<cv::Mat > ::construct<cv::Mat, const cv::Mat &>' requested here {__construct(__has_construct<allocator_type, _Tp*, _Args...>(), ^ /Library/Developer/CommandLineTools/usr/include/ c++/v1/memory:1656:17: note: in instantiation of function template specialization 'std::_1::allocator_traits<std::1::allocator<cv::Mat > ::construct<cv::Mat, const cv::Mat &>' requested here construct(__a, _VSTD::__to_raw_pointer(__end2-1), _VSTD::move_if_noexcept(--__end1)); ^ /Library/Developer/CommandLineTools/usr/include/ c++/v1/vector:886:21: note: in instantiation of function template specialization 'std::__1::allocator_traits<std::_1::allocator<cv::Mat > ::_construct_backward<cv::Mat >' requested here __alloc_traits::__construct_backward(this->__alloc(), this->_begin, this->_end, __v._begin); ^ /Library/Developer/CommandLineTools/usr/include/ c++/v1/vector:1037:9: note: in instantiation of member function 'std::_1::vector<cv::Mat, std::_1::allocator<cv::Mat > >::__swap_out_circular_buffer' requested here __swap_out_circular_buffer(__v); ^ /Library/Developer/CommandLineTools/usr/include/ c++/v1/vector:2006:15: note: in instantiation of member function 'std::_1::vector<cv::Mat, std::_1::allocator<cv::Mat > >::_append' requested here this->append(sz - cs); ^ /Users/admin/Documents/MATLAB/OpenFace-master/lib/local/ FaceAnalyser/src/FaceAnalyser.cpp:103:16: note: in instantiation of member function 'std::1::vector<cv::Mat, std::1::allocator<cv::Mat > >::resize' requested here hog_desc_hist.resize(head_orientations.size()); ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat. hpp:1029:14: note: candidate constructor not viable: no known conversion from 'const cv::Mat' to 'const cuda::GpuMat' for 1st argument explicit Mat(const cuda::GpuMat& m); ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat. inl.hpp:476:6: note: candidate constructor not viable: no known conversion from 'const cv::Mat' to 'const cv::Mat' for 1st argument Mat::Mat(const Mat& m) ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat. inl.hpp:1335:6: note: candidate constructor not viable: no known conversion from 'const cv::Mat' to 'cv::Mat' for 1st argument Mat::Mat(Mat&& m) ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat. inl.hpp:561:6: note: candidate template ignored: could not match 'vector' against 'Mat' Mat::Mat(const std::vector<Tp>& vec, bool copyData) ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat. inl.hpp:579:6: note: candidate template ignored: could not match 'initializer_list' against 'Mat' Mat::Mat(const std::initializer_list<Tp> list) ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat. inl.hpp:591:6: note: candidate template ignored: could not match 'array' against 'Mat' Mat::Mat(const std::array<Tp, Nm>& arr, bool copyData) ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat. inl.hpp:609:6: note: candidate template ignored: could not match 'Vec' against 'Mat' Mat::Mat(const Vec<Tp, n>& vec, bool copyData) ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat. inl.hpp:625:6: note: candidate template ignored: could not match 'Matx' against 'Mat' Mat::Mat(const Matx<Tp,m,n>& M, bool copyData) ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat. inl.hpp:641:6: note: candidate template ignored: could not match 'Point' against 'Mat' Mat::Mat(const Point<Tp>& pt, bool copyData) ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat. inl.hpp:660:6: note: candidate template ignored: could not match 'Point3' against 'Mat' Mat::Mat(const Point3<Tp>& pt, bool copyData) ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat. inl.hpp:680:6: note: candidate template ignored: could not match 'MatCommaInitializer' against 'Mat' Mat::Mat(const MatCommaInitializer<_Tp>& commaInitializer) ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat. inl.hpp:402:6: note: candidate constructor not viable: requires 0 arguments, but 1 was provided Mat::Mat() ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat. inl.hpp:425:6: note: candidate constructor not viable: requires 2 arguments, but 1 was provided Mat::Mat(Size _sz, int _type) ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat. inl.hpp:459:6: note: candidate constructor not viable: requires 2 arguments, but 1 was provided Mat::Mat(const std::vector& _sz, int _type) ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat.hpp:955:5: note: candidate constructor not viable: requires 2 arguments, but 1 was provided Mat(const Mat& m, const Rect& roi); ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat.hpp:965:5: note: candidate constructor not viable: requires 2 arguments, but 1 was provided Mat(const Mat& m, const Range ranges); ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat.hpp:975:5: note: candidate constructor not viable: requires 2 arguments, but 1 was provided Mat(const Mat& m, const std::vector& ranges); ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat. inl.hpp:408:6: note: candidate constructor not viable: requires 3 arguments, but 1 was provided Mat::Mat(int _rows, int _cols, int _type) ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat. inl.hpp:433:6: note: candidate constructor not viable: requires 3 arguments, but 1 was provided Mat::Mat(Size _sz, int _type, const Scalar& _s) ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat. inl.hpp:442:6: note: candidate constructor not viable: requires 3 arguments, but 1 was provided Mat::Mat(int _dims, const int _sz, int _type) ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat. inl.hpp:467:6: note: candidate constructor not viable: requires 3 arguments, but 1 was provided Mat::Mat(const std::vector& _sz, int _type, const Scalar& _s) ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat.hpp:945:5: note: candidate constructor not viable: requires at least 2 arguments, but 1 was provided Mat(const Mat& m, const Range& rowRange, const Range& colRange=Range::all()); ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat. inl.hpp:416:6: note: candidate constructor not viable: requires 4 arguments, but 1 was provided Mat::Mat(int _rows, int _cols, int _type, const Scalar& _s) ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat. inl.hpp:450:6: note: candidate constructor not viable: requires 4 arguments, but 1 was provided Mat::Mat(int _dims, const int* _sz, int _type, const Scalar& _s) ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat. inl.hpp:528:6: note: candidate constructor not viable: requires at least 3 arguments, but 1 was provided Mat::Mat(Size _sz, int _type, void* _data, size_t _step) ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat.hpp:933:5: note: candidate constructor not viable: requires at least 3 arguments, but 1 was provided Mat(const std::vector& sizes, int type, void* data, const size_t* steps=0); ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat. inl.hpp:495:6: note: candidate constructor not viable: requires at least 4 arguments, but 1 was provided Mat::Mat(int _rows, int _cols, int _type, void* _data, size_t _step) ^ /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat.hpp:919:5: note: candidate constructor not viable: requires at least 4 arguments, but 1 was provided Mat(int ndims, const int* sizes, int type, void* data, const size_t* steps=0); ^ fatal error: too many errors emitted, stopping now [-ferror-limit=] 20 errors generated. make[2]: *** [lib/local/FaceAnalyser/CMakeFiles/FaceAnalyser.dir/ src/FaceAnalyser.cpp.o] Error 1 make[1]: *** [lib/local/FaceAnalyser/CMakeFiles/FaceAnalyser.dir/ all] Error 2 make: *** [all] Error 2 — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub <https://github.com/ <https://github.com/> TadasBaltrusaitis/OpenFace/issues/323>, or mute the thread < https://github.com/notifications/unsubscribe-auth/Aa93Ix9mwu3xQ- < https://github.com/notifications/unsubscribe-auth/Aa93Ix9mwu3xQ-> 0lgtcPwewAaeuAZdnMks5tLTI9gaJpZM4Rglm9>.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub <https://github.com/TadasBaltrusaitis/OpenFace/ issues/323#issuecomment-358144491 https://github.com/ TadasBaltrusaitis/OpenFace/issues/323#issuecomment-358144491>, or mute the thread <https://github.com/notifications/unsubscribe-auth/ AZNvsFP0dT5nP9CQtap3U8wXaK13bsIks5tLTLrgaJpZM4Rglm9 <https://github.com/ notifications/unsubscribe-auth/AZNvsFP0dT5nP9CQtap3U8wXaK1 3bsIks5tLTLrgaJpZM4Rglm9>> .
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/ TadasBaltrusaitis/OpenFace/issues/323#issuecomment-358146902, or mute the thread https://github.com/notifications/unsubscribe-auth/Aa93I8bN- pZrhItByilFcXpLFBXCCJFTks5tLTX8gaJpZM4Rglm9.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/TadasBaltrusaitis/OpenFace/issues/323#issuecomment-358147470, or mute the thread https://github.com/notifications/unsubscribe-auth/AZNvsOP2017TJi5S-MgtiSFtnOUxBHWeks5tLTa6gaJpZM4Rglm9 .
Hello,
The "make" command builds "target dlib" and "target LandmarkDetector", but there is an error when it builds the FaceAnalyzer. Any suggestions as to what might be wrong would be greatly appreciated!
Thanks :)
PSY-C02LD5DNF8J4:OpenFace-master admin$ make [ 1%] Building CXX object lib/3rdParty/dlib/CMakeFiles/dlib.dir/include/dlib/base64/base64_kernel_1.o [ 2%] Building CXX object lib/3rdParty/dlib/CMakeFiles/dlib.dir/include/dlib/bigint/bigint_kernel_1.o [ 4%] Building CXX object lib/3rdParty/dlib/CMakeFiles/dlib.dir/include/dlib/bigint/bigint_kernel_2.o [ 5%] Building CXX object lib/3rdParty/dlib/CMakeFiles/dlib.dir/include/dlib/bit_stream/bit_stream_kernel_1.o [ 6%] Building CXX object lib/3rdParty/dlib/CMakeFiles/dlib.dir/include/dlib/entropy_decoder/entropy_decoder_kernel_1.o [ 8%] Building CXX object lib/3rdParty/dlib/CMakeFiles/dlib.dir/include/dlib/entropy_decoder/entropy_decoder_kernel_2.o [ 9%] Building CXX object lib/3rdParty/dlib/CMakeFiles/dlib.dir/include/dlib/entropy_encoder/entropy_encoder_kernel_1.o [ 10%] Building CXX object lib/3rdParty/dlib/CMakeFiles/dlib.dir/include/dlib/entropy_encoder/entropy_encoder_kernel_2.o [ 12%] Building CXX object lib/3rdParty/dlib/CMakeFiles/dlib.dir/include/dlib/md5/md5_kernel_1.o [ 13%] Building CXX object lib/3rdParty/dlib/CMakeFiles/dlib.dir/include/dlib/tokenizer/tokenizer_kernel_1.o [ 14%] Building CXX object lib/3rdParty/dlib/CMakeFiles/dlib.dir/include/dlib/unicode/unicode.o [ 16%] Building CXX object lib/3rdParty/dlib/CMakeFiles/dlib.dir/include/dlib/data_io/image_dataset_metadata.o [ 17%] Building CXX object lib/3rdParty/dlib/CMakeFiles/dlib.dir/include/dlib/sockets/sockets_kernel_1.o [ 18%] Building CXX object lib/3rdParty/dlib/CMakeFiles/dlib.dir/include/dlib/bsp/bsp.o [ 20%] Building CXX object lib/3rdParty/dlib/CMakeFiles/dlib.dir/include/dlib/dir_nav/dir_nav_kernel_1.o [ 21%] Building CXX object lib/3rdParty/dlib/CMakeFiles/dlib.dir/include/dlib/dir_nav/dir_nav_kernel_2.o [ 22%] Building CXX object lib/3rdParty/dlib/CMakeFiles/dlib.dir/include/dlib/dir_nav/dir_nav_extensions.o [ 24%] Building CXX object lib/3rdParty/dlib/CMakeFiles/dlib.dir/include/dlib/linker/linker_kernel_1.o [ 25%] Building CXX object lib/3rdParty/dlib/CMakeFiles/dlib.dir/include/dlib/logger/extra_logger_headers.o [ 27%] Building CXX object lib/3rdParty/dlib/CMakeFiles/dlib.dir/include/dlib/logger/logger_kernel_1.o [ 28%] Building CXX object lib/3rdParty/dlib/CMakeFiles/dlib.dir/include/dlib/logger/logger_config_file.o [ 29%] Building CXX object lib/3rdParty/dlib/CMakeFiles/dlib.dir/include/dlib/misc_api/misc_api_kernel_1.o [ 31%] Building CXX object lib/3rdParty/dlib/CMakeFiles/dlib.dir/include/dlib/misc_api/misc_api_kernel_2.o [ 32%] Building CXX object lib/3rdParty/dlib/CMakeFiles/dlib.dir/include/dlib/sockets/sockets_extensions.o [ 33%] Building CXX object lib/3rdParty/dlib/CMakeFiles/dlib.dir/include/dlib/sockets/sockets_kernel_2.o [ 35%] Building CXX object lib/3rdParty/dlib/CMakeFiles/dlib.dir/include/dlib/sockstreambuf/sockstreambuf.o [ 36%] Building CXX object lib/3rdParty/dlib/CMakeFiles/dlib.dir/include/dlib/sockstreambuf/sockstreambuf_unbuffered.o [ 37%] Building CXX object lib/3rdParty/dlib/CMakeFiles/dlib.dir/include/dlib/server/server_kernel.o [ 39%] Building CXX object lib/3rdParty/dlib/CMakeFiles/dlib.dir/include/dlib/server/server_iostream.o [ 40%] Building CXX object lib/3rdParty/dlib/CMakeFiles/dlib.dir/include/dlib/server/server_http.o [ 41%] Building CXX object lib/3rdParty/dlib/CMakeFiles/dlib.dir/include/dlib/threads/multithreaded_object_extension.o [ 43%] Building CXX object lib/3rdParty/dlib/CMakeFiles/dlib.dir/include/dlib/threads/threaded_object_extension.o [ 44%] Building CXX object lib/3rdParty/dlib/CMakeFiles/dlib.dir/include/dlib/threads/threads_kernel_1.o [ 45%] Building CXX object lib/3rdParty/dlib/CMakeFiles/dlib.dir/include/dlib/threads/threads_kernel_2.o [ 47%] Building CXX object lib/3rdParty/dlib/CMakeFiles/dlib.dir/include/dlib/threads/threads_kernel_shared.o [ 48%] Building CXX object lib/3rdParty/dlib/CMakeFiles/dlib.dir/include/dlib/threads/thread_pool_extension.o [ 50%] Building CXX object lib/3rdParty/dlib/CMakeFiles/dlib.dir/include/dlib/timer/timer.o [ 51%] Building CXX object lib/3rdParty/dlib/CMakeFiles/dlib.dir/include/dlib/stack_trace.o [ 52%] Building CXX object lib/3rdParty/dlib/CMakeFiles/dlib.dir/include/dlib/image_loader/png_loader.o [ 54%] Building CXX object lib/3rdParty/dlib/CMakeFiles/dlib.dir/include/dlib/image_saver/save_png.o [ 55%] Building CXX object lib/3rdParty/dlib/CMakeFiles/dlib.dir/include/dlib/image_loader/jpeg_loader.o [ 56%] Linking CXX static library libdlib.a /Library/Developer/CommandLineTools/usr/bin/ranlib: file: libdlib.a(sockets_kernel_1.o) has no symbols /Library/Developer/CommandLineTools/usr/bin/ranlib: file: libdlib.a(dir_nav_kernel_1.o) has no symbols /Library/Developer/CommandLineTools/usr/bin/ranlib: file: libdlib.a(threads_kernel_1.o) has no symbols /Library/Developer/CommandLineTools/usr/bin/ranlib: file: libdlib.a(stack_trace.o) has no symbols /Library/Developer/CommandLineTools/usr/bin/ranlib: file: libdlib.a(sockets_kernel_1.o) has no symbols /Library/Developer/CommandLineTools/usr/bin/ranlib: file: libdlib.a(dir_nav_kernel_1.o) has no symbols /Library/Developer/CommandLineTools/usr/bin/ranlib: file: libdlib.a(threads_kernel_1.o) has no symbols /Library/Developer/CommandLineTools/usr/bin/ranlib: file: libdlib.a(stack_trace.o) has no symbols [ 56%] Built target dlib Scanning dependencies of target LandmarkDetector [ 58%] Building CXX object lib/local/LandmarkDetector/CMakeFiles/LandmarkDetector.dir/src/CCNF_patch_expert.cpp.o [ 59%] Building CXX object lib/local/LandmarkDetector/CMakeFiles/LandmarkDetector.dir/src/LandmarkDetectionValidator.cpp.o [ 60%] Building CXX object lib/local/LandmarkDetector/CMakeFiles/LandmarkDetector.dir/src/LandmarkDetectorFunc.cpp.o [ 62%] Building CXX object lib/local/LandmarkDetector/CMakeFiles/LandmarkDetector.dir/src/LandmarkDetectorModel.cpp.o [ 63%] Building CXX object lib/local/LandmarkDetector/CMakeFiles/LandmarkDetector.dir/src/LandmarkDetectorUtils.cpp.o [ 64%] Building CXX object lib/local/LandmarkDetector/CMakeFiles/LandmarkDetector.dir/src/LandmarkDetectorParameters.cpp.o [ 66%] Building CXX object lib/local/LandmarkDetector/CMakeFiles/LandmarkDetector.dir/src/Patch_experts.cpp.o [ 67%] Building CXX object lib/local/LandmarkDetector/CMakeFiles/LandmarkDetector.dir/src/PAW.cpp.o [ 68%] Building CXX object lib/local/LandmarkDetector/CMakeFiles/LandmarkDetector.dir/src/PDM.cpp.o [ 70%] Building CXX object lib/local/LandmarkDetector/CMakeFiles/LandmarkDetector.dir/src/SVR_patch_expert.cpp.o [ 71%] Building CXX object lib/local/LandmarkDetector/CMakeFiles/LandmarkDetector.dir/src/stdafx.cpp.o [ 72%] Linking CXX static library libLandmarkDetector.a [ 72%] Built target LandmarkDetector Scanning dependencies of target FaceAnalyser [ 74%] Building CXX object lib/local/FaceAnalyser/CMakeFiles/FaceAnalyser.dir/src/Face_utils.cpp.o [ 75%] Building CXX object lib/local/FaceAnalyser/CMakeFiles/FaceAnalyser.dir/src/FaceAnalyser.cpp.o In file included from /Users/admin/Documents/MATLAB/OpenFace-master/lib/local/FaceAnalyser/src/FaceAnalyser.cpp:35: In file included from /Users/admin/Documents/MATLAB/OpenFace-master/lib/local/FaceAnalyser/./include/FaceAnalyser.h:44: In file included from /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/core.hpp:48: In file included from /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core.hpp:59: /usr/local/Cellar/opencv/3.4.0_1/include/opencv2/core/mat.hpp:2153:37: error: no type named 'channel_type' in 'cv::DataType'
typedef typename DataType<_Tp>::channel_type channel_type;