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

asked 2016-04-21 06:14:50 -0600

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 ... (more)

edit retag flag offensive close merge delete