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

Error while build with OpenCV 3.1 #158

Closed
Diadlo opened this issue Sep 21, 2016 · 4 comments
Closed

Error while build with OpenCV 3.1 #158

Diadlo opened this issue Sep 21, 2016 · 4 comments
Labels
P3 Low priority
Milestone

Comments

@Diadlo
Copy link

Diadlo commented Sep 21, 2016

Can build toxcore with tests. Have an error:

CMakeFiles/av_test.dir/testing/av_test.c.o: In function `cvPointFrom32f':
av_test.c:(.text+0x549): undefined reference to `cvRound'
av_test.c:(.text+0x55f): undefined reference to `cvRound'
CMakeFiles/av_test.dir/testing/av_test.c.o: In function `cvReadInt':
av_test.c:(.text+0xda5): undefined reference to `cvRound'
CMakeFiles/av_test.dir/testing/av_test.c.o: In function `cvEllipseBox':
av_test.c:(.text+0x1011): undefined reference to `cvRound'
av_test.c:(.text+0x1033): undefined reference to `cvRound'

Seems, OpenCV 3.1 hasn't cvRound function

@iphydf
Copy link
Member

iphydf commented Sep 21, 2016

It does, but only in C++, but it still defines some inline C functions that use cvRound. Try the iphydf/opencv3 branch.

@Diadlo
Copy link
Author

Diadlo commented Sep 22, 2016

@iphydf Yes, it fixed. Thanks

@iphydf
Copy link
Member

iphydf commented Sep 22, 2016

opencv/opencv#6585 - either we use C++ (#160 does this) or require opencv<3.

@iphydf
Copy link
Member

iphydf commented Sep 26, 2016

Fixed in #160.

@iphydf iphydf closed this as completed Sep 26, 2016
@iphydf iphydf modified the milestone: v0.0.1 Nov 5, 2016
@iphydf iphydf added the P3 Low priority label Feb 4, 2022
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
P3 Low priority
Projects
None yet
Development

No branches or pull requests

2 participants