Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

stabilizer.cpp fails to compile with opencv < 3.2 #475

Closed
uartie opened this issue Sep 11, 2017 · 0 comments
Closed

stabilizer.cpp fails to compile with opencv < 3.2 #475

uartie opened this issue Sep 11, 2017 · 0 comments

Comments

@uartie
Copy link
Contributor

uartie commented Sep 11, 2017

In file included from stabilizer.cpp:21:0:
stabilizer.h:31:21: error: ‘videostab’ is not a namespace-name
 using namespace cv::videostab;
                     ^~~~~~~~~

cv::videostab namespace is defined in <opencv2/videostab.hpp>. In opencv version 3.2+, this header is automatically included from <opencv2/opencv.hpp>. However, prior to version 3.2, files must explicitly include <opencv2/videostab.hpp>

uartie added a commit to uartie/libxcam that referenced this issue Sep 11, 2017
The opencv2/videostab.hpp header is not indirectly included
via the opencv2/opencv.hpp header until OpenCV version 3.2+.

Thus, explicitly include opencv2/videostab.hpp so libdvs can
compile with OpenCV version 3.1.

Fixes intel#475

Signed-off-by: U. Artie Eoff <ullysses.a.eoff@intel.com>
windyuan pushed a commit that referenced this issue Sep 12, 2017
The opencv2/videostab.hpp header is not indirectly included
via the opencv2/opencv.hpp header until OpenCV version 3.2+.

Thus, explicitly include opencv2/videostab.hpp so libdvs can
compile with OpenCV version 3.1.

Fixes #475

Signed-off-by: U. Artie Eoff <ullysses.a.eoff@intel.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant