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

Work around bug in opencv3 headers. #160

Merged
merged 1 commit into from Sep 25, 2016
Merged

Work around bug in opencv3 headers. #160

merged 1 commit into from Sep 25, 2016

Conversation

iphydf
Copy link
Member

@iphydf iphydf commented Sep 22, 2016

OpenCV 3.1 doesn't define cvRound in C, only in C++. Thus, we now need
to compile av_test as C++ code.

@Diadlo
Copy link

Diadlo commented Sep 22, 2016

LGTM

@iphydf iphydf force-pushed the opencv3 branch 2 times, most recently from da9ded2 to 462a128 Compare September 23, 2016 10:39
@nurupo
Copy link
Member

nurupo commented Sep 24, 2016

I assume we want to support OpenCV 3 then.

@@ -288,6 +288,11 @@ if(NOT WIN32 AND BUILD_TOXAV AND SNDFILE_FOUND AND PORTAUDIO_FOUND AND OPENCV_FO
${OPENCV_LIBRARIES}
${PORTAUDIO_LIBRARIES}
${SNDFILE_LIBRARIES})
# Due to https://github.com/opencv/opencv/issues/6585, we need to compile
# av_test as C++ for newer OpenCV versions.
if(OPENCV_VERSION VERSION_GREATER 3)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't that be "greater or equal to" instead?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think 3.1 is greater than 3. I don't know whether 3 works, but we got the bug report for 3.1. I'll make it "not less than", which is greater equal.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done by the way.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

approved

OpenCV 3.1 doesn't define cvRound in C, only in C++. Thus, we now need
to compile av_test as C++ code.
@iphydf iphydf merged commit d369448 into TokTok:master Sep 25, 2016
@iphydf iphydf deleted the opencv3 branch October 18, 2016 11:13
@iphydf iphydf modified the milestone: v0.0.1 Nov 5, 2016
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

Successfully merging this pull request may close these issues.

None yet

4 participants