Ask Your Question

Revision history [back]

OpenCV 3.1.0 with cuda/gpu producing compile time error? how do i solve this?

include <opencv2 gpu="" gpu.hpp="">

/usr/local/include/opencv2/gpu/gpu.hpp:432:29: error: no template named 'vector'; did you mean 'std::vector'? CV_EXPORTS void merge(const vector<gpumat>& src, GpuMat& dst, Stream& stream = Stream::Null()); ^~~~~~ std::vector /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/vector:457:29: note: 'std::vector' declared here class _LIBCPP_TYPE_VIS_ONLY vector ^ In file included from src/face_detector.cpp:26: /usr/local/include/opencv2/gpu/gpu.hpp:438:42: error: no template named 'vector'; did you mean 'std::vector'? CV_EXPORTS void split(const GpuMat& src, vector<gpumat>& dst, Stream& stream = Stream::Null()); ^~~~~~ std::vector /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/vector:457:29: note: 'std::vector' declared here class _LIBCPP_TYPE_VIS_ONLY vector ^ In file included from src/face_detector.cpp:26: /usr/local/include/opencv2/gpu/gpu.hpp:1265:4: error: no template named 'vector'; did you mean 'std::vector'? vector<point> locations; ^~~~~~ std::vector /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/vector:457:29: note: 'std::vector' declared here class _LIBCPP_TYPE_VIS_ONLY vector ^ In file included from src/face_detector.cpp:26: /usr/local/include/opencv2/gpu/gpu.hpp:1266:4: error: no template named 'vector'; did you mean 'std::vector'? vector<double> confidences; ^~~~~~ std::vector /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/vector:457:29: note: 'std::vector' declared here class _LIBCPP_TYPE_VIS_ONLY vector ^ In file included from src/face_detector.cpp:26: /usr/local/include/opencv2/gpu/gpu.hpp:1267:4: error: no template named 'vector'; did you mean 'std::vector'? vector<double> part_scores[4]; ^~~~~~ std::vector /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/vector:457:29: note: 'std::vector' declared here class _LIBCPP_TYPE_VIS_ONLY vector ^ In file included from src/face_detector.cpp:26: /usr/local/include/opencv2/gpu/gpu.hpp:1285:31: error: no template named 'vector'; did you mean 'std::vector'? void setSVMDetector(const vector<float>& detector); ^~~~~~ std::vector /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/vector:457:29: note: 'std::vector' declared here class _LIBCPP_TYPE_VIS_ONLY vector ^ In file included from src/face_detector.cpp:26: /usr/local/include/opencv2/gpu/gpu.hpp:1287:12: error: no template named 'vector'; did you mean 'std::vector'? static vector<float> getDefaultPeopleDetector(); ^~~~~~ std::vector /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/vector:457:29: note: 'std::vector' declared here class _LIBCPP_TYPE_VIS_ONLY vector ^ In file included from src/face_detector.cpp:26: /usr/local/include/opencv2/gpu/gpu.hpp:1288:12: error: no template named 'vector'; did you mean 'std::vector'? static vector<float> getPeopleDetector48x96(); ^~~~~~ std::vector /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/vector:457:29: note: 'std::vector' declared here class _LIBCPP_TYPE_VIS_ONLY vector ^ In file included from src/face_detector.cpp:26: /usr/local/include/opencv2/gpu/gpu.hpp:1289:12: error: no template named 'vector'; did you mean 'std::vector'? static vector<float> getPeopleDetector64x128(); ^~~~~~ std::vector /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/vector:457:29: note: 'std::vector' declared here class _LIBCPP_TYPE_VIS_ONLY vector ^ In file included from src/face_detector.cpp:26: /usr/local/include/opencv2/gpu/gpu.hpp:1291:36: error: no template named 'vector'; did you mean 'std::vector'? void detect(const GpuMat& img, vector<point>& found_locations, ^~~~~~ std::vector /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/vector:457:29: note: 'std::vector' declared here class _LIBCPP_TYPE_VIS_ONLY vector ^ In file included from src/face_detector.cpp:26: /usr/local/include/opencv2/gpu/gpu.hpp:1295:46: error: no template named 'vector'; did you mean 'std::vector'? void detectMultiScale(const GpuMat& img, vector<rect>& found_locations, ^~~~~~ std::vector /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/vector:457:29: note: 'std::vector' declared here class _LIBCPP_TYPE_VIS_ONLY vector ^ In file included from src/face_detector.cpp:26: /usr/local/include/opencv2/gpu/gpu.hpp:1300:47: error: no template named 'vector'; did you mean 'std::vector'? void computeConfidence(const GpuMat& img, vector<point>& hits, double hit_threshold, ^~~~~~ std::vector /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/vector:457:29: note: 'std::vector' declared here class _LIBCPP_TYPE_VIS_ONLY vector ^ In file included from src/face_detector.cpp:26: /usr/local/include/opencv2/gpu/gpu.hpp:1301:80: error: no template named 'vector'; did you mean 'std::vector'? Size win_stride, Size padding, vector<point>& locations, vector<double>& con... ^~~~~~ std::vector /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/vector:457:29: note: 'std::vector' declared here class _LIBCPP_TYPE_VIS_ONLY vector ^ In file included from src/face_detector.cpp:26: /usr/local/include/opencv2/gpu/gpu.hpp:1301:106: error: no template named 'vector'; did you mean 'std::vector'? Size win_stride, Size padding, vector<point>& locations, vector<double>& con... ^~~~~~ std::vector /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/vector:457:29: note: 'std::vector' declared here class _LIBCPP_TYPE_VIS_ONLY vector ^ In file included from src/face_detector.cpp:26: /usr/local/include/opencv2/gpu/gpu.hpp:1303:57: error: no template named 'vector'; did you mean 'std::vector'? void computeConfidenceMultiScale(const GpuMat& img, vector<rect>& found_locations, ^~~~~~ std::vector /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/vector:457:29: note: 'std::vector' declared here class _LIBCPP_TYPE_VIS_ONLY vector ^ In file included from src/face_detector.cpp:26: /usr/local/include/opencv2/gpu/gpu.hpp:1305:69: error: no template named 'vector'; did you mean 'std::vector'? vector<hogconfidence> &conf_out, int group_threshold); ^~~~~~ std::vector /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/vector:457:29: note: 'std::vector' declared here class _LIBCPP_TYPE_VIS_ONLY vector ^ In file included from src/face_detector.cpp:26: /usr/local/include/opencv2/gpu/gpu.hpp:1835:5: error: no template named 'vector'; did you mean 'std::vector'? vector<gpumat> prevPyr_; ^~~~~~ std::vector /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/vector:457:29: note: 'std::vector' declared here class _LIBCPP_TYPE_VIS_ONLY vector ^ In file included from src/face_detector.cpp:26: /usr/local/include/opencv2/gpu/gpu.hpp:1836:5: error: no template named 'vector'; did you mean 'std::vector'? vector<gpumat> nextPyr_; ^~~~~~ std::vector /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/vector:457:29: note: 'std::vector' declared here class _LIBCPP_TYPE_VIS_ONLY vector ^ In file included from src/face_detector.cpp:26: /usr/local/include/opencv2/gpu/gpu.hpp:1838:5: error: no template named 'vector'; did you mean 'std::vector'? vector<gpumat> buf_; ^~~~~~ std::vector /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/vector:457:29: note: 'std::vector' declared here class _LIBCPP_TYPE_VIS_ONLY vector ^ fatal error: too many errors emitted, stopping now [-ferror-limit=] 20 errors generated. error: command 'clang' failed with exit status 1