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

undefined reference to `cvRound' in examples & tests with -DPSMOVE_USE_DEBUG=1 #251

Closed
ChristophHaag opened this issue Aug 15, 2016 · 5 comments

Comments

@ChristophHaag
Copy link
Contributor

[ 83%] Linking C executable test_tracker
CMakeFiles/test_record_video.dir/examples/c/test_record_video.c.o: In function `cvPointFrom32f':
/usr/include/opencv2/core/types_c.h:929: undefined reference to `cvRound'
/usr/include/opencv2/core/types_c.h:930: undefined reference to `cvRound'
CMakeFiles/test_record_video.dir/examples/c/test_record_video.c.o: In function `cvReadInt':
/usr/include/opencv2/core/core_c.h:2318: undefined reference to `cvRound'
CMakeFiles/test_record_video.dir/examples/c/test_record_video.c.o: In function `cvEllipseBox':
/usr/include/opencv2/imgproc/imgproc_c.h:1041: undefined reference to `cvRound'
/usr/include/opencv2/imgproc/imgproc_c.h:1042: undefined reference to `cvRound'

Apparently it has something to do with opencv 2 vs opencv 3. I have opencv 3.1.0 here on Archlinux.

It still builds with

cmake -DPSMOVE_USE_DEBUG=1 -DPSMOVE_BUILD_EXAMPLES=0 -D PSMOVE_BUILD_OPENGL_EXAMPLES=0 -DPSMOVE_BUILD_TESTS=0

so it's not critical for debugging, but still annoying

@thp
Copy link
Owner

thp commented Aug 31, 2016

Has OpenCV 3 removed those functions? Or put into another header?

@nitsch
Copy link
Collaborator

nitsch commented Dec 27, 2016

@suryafyi
Copy link

Is the only way to get around this issue either using OpenCV2 with C or use OpenCV3 with C++?

@nitsch
Copy link
Collaborator

nitsch commented Feb 13, 2017 via email

@thp
Copy link
Owner

thp commented Sep 17, 2022

I just tried building in ubuntu 22.04 using:

scripts/build_package.sh

This builds OpenCV 3.4 from source, and PS Move API successfully links against it.

The affected test application has been removed in 2016 already: #277

@thp thp closed this as completed Sep 17, 2022
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

4 participants