Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- user@admin: $ g++ -std=c++11 CameraStreamer.hpp CameraStreamer.cpp MultiCamera.cpp `pkg-config opencv --cflags --libs`
- CameraStreamer.hpp:1:9: warning: #pragma once in main file [enabled by default]
- #pragma once
- ^
- In file included from CameraStreamer.hpp:7:0:
- videoio.hpp:389:20: error: redefinition of ‘class cv::VideoCapture’
- class CV_EXPORTS_W VideoCapture
- ^
- In file included from /usr/local/include/opencv2/opencv.hpp:58:0,
- from videoio.hpp:46,
- from CameraStreamer.hpp:7:
- /usr/local/include/opencv2/highgui/highgui.hpp:204:20: error: previous definition of ‘class cv::VideoCapture’
- class CV_EXPORTS_W VideoCapture
- ^
- In file included from CameraStreamer.hpp:7:0:
- videoio.hpp:580:20: error: redefinition of ‘class cv::VideoWriter’
- class CV_EXPORTS_W VideoWriter
- ^
- In file included from /usr/local/include/opencv2/opencv.hpp:58:0,
- from videoio.hpp:46,
- from CameraStreamer.hpp:7:
- /usr/local/include/opencv2/highgui/highgui.hpp:230:20: error: previous definition of ‘class cv::VideoWriter’
- class CV_EXPORTS_W VideoWriter
- ^
- In file included from CameraStreamer.hpp:7:0:
- videoio.hpp:673:42: error: expected initializer before ‘<’ token
- template<> CV_EXPORTS void DefaultDeleter<CvCapture>::operator ()(CvCapture* obj) const;
- ^
- videoio.hpp:674:42: error: expected initializer before ‘<’ token
- template<> CV_EXPORTS void DefaultDeleter<CvVideoWriter>::operator ()(CvVideoWriter* obj) const;
- ^
- CameraStreamer.hpp:11:17: error: ‘concurrency’ is not a namespace-name
- using namespace concurrency;
- ^
- CameraStreamer.hpp:11:28: error: expected namespace-name before ‘;’ token
- using namespace concurrency;
- ^
- CameraStreamer.hpp:22:12: error: ‘concurrent_queue’ was not declared in this scope
- vector<concurrent_queue<Mat>*> frame_queue;
- ^
- CameraStreamer.hpp:22:12: note: suggested alternatives:
- In file included from /usr/include/tbb/concurrent_queue.h:32:0,
- from CameraStreamer.hpp:6:
- /usr/include/tbb/internal/_concurrent_queue_impl.h:63:40: note: ‘tbb::strict_ppl::concurrent_queue’
- template<typename T, typename A> class concurrent_queue;
- ^
- /usr/include/tbb/internal/_concurrent_queue_impl.h:63:40: note: ‘tbb::strict_ppl::concurrent_queue’
- /usr/include/tbb/internal/_concurrent_queue_impl.h:69:40: note: ‘tbb::deprecated::concurrent_queue’
- template<typename T, typename A> class concurrent_queue;
- ^
- CameraStreamer.hpp:22:32: error: template argument 1 is invalid
- vector<concurrent_queue<Mat>*> frame_queue;
- ^
- CameraStreamer.hpp:22:32: error: template argument 2 is invalid
- CameraStreamer.hpp:22:34: error: expected unqualified-id before ‘>’ token
- vector<concurrent_queue<Mat>*> frame_queue;
- ^
- CameraStreamer.hpp:22:33: error: expected ‘;’ at end of member declaration
- vector<concurrent_queue<Mat>*> frame_queue;
- ^
- CameraStreamer.hpp:22:34: error: expected unqualified-id before ‘>’ token
- vector<concurrent_queue<Mat>*> frame_queue;
- ^
- CameraStreamer.cpp:3:17: error: ‘concurrent’ is not a namespace-name
- using namespace concurrent;
- ^
- CameraStreamer.cpp:3:27: error: expected namespace-name before ‘;’ token
- using namespace concurrent;
- ^
- CameraStreamer.cpp: In member function ‘void CameraStreamer::captureFrame(int)’:
- CameraStreamer.cpp:36:9: error: ‘frame_queue’ was not declared in this scope
- frame_queue[index]->push(frame);
- ^
- CameraStreamer.cpp: In member function ‘void CameraStreamer::startMultiCapture()’:
- CameraStreamer.cpp:46:5: error: ‘concurrent_queue’ was not declared in this scope
- concurrent_queue<Mat> *q;
- ^
- CameraStreamer.cpp:46:5: note: suggested alternatives:
- In file included from /usr/include/tbb/concurrent_queue.h:32:0,
- from CameraStreamer.hpp:6:
- /usr/include/tbb/internal/_concurrent_queue_impl.h:63:40: note: ‘tbb::strict_ppl::concurrent_queue’
- template<typename T, typename A> class concurrent_queue;
- ^
- /usr/include/tbb/internal/_concurrent_queue_impl.h:63:40: note: ‘tbb::strict_ppl::concurrent_queue’
- /usr/include/tbb/internal/_concurrent_queue_impl.h:69:40: note: ‘tbb::deprecated::concurrent_queue’
- template<typename T, typename A> class concurrent_queue;
- ^
- CameraStreamer.cpp:46:25: error: expected primary-expression before ‘>’ token
- concurrent_queue<Mat> *q;
- ^
- CameraStreamer.cpp:46:28: error: ‘q’ was not declared in this scope
- concurrent_queue<Mat> *q;
- ^
- CameraStreamer.cpp:71:17: error: expected type-specifier before ‘concurrent_queue’
- q = new concurrent_queue<Mat>;
- ^
- CameraStreamer.cpp:71:17: error: expected ‘;’ before ‘concurrent_queue’
- CameraStreamer.cpp:74:9: error: ‘frame_queue’ was not declared in this scope
- frame_queue.push_back(q);
- ^
- MultiCamera.cpp:4:11: error: ‘::main’ must return ‘int’
- void main()
- ^
- MultiCamera.cpp: In function ‘int main()’:
- MultiCamera.cpp:34:21: error: ‘class CameraStreamer’ has no member named ‘frame_queue’
- if (cam.frame_queue[i]->try_pop(frame)){
Add Comment
Please, Sign In to add comment