문제

I am using OpenCV 2.3.1 to develop Delaunay triangulation code on NetBeans 6.9 on Ubuntu 11.04. I have included all of the libraries that I could find in the link list but get the following error messages when I try to link.

build/Debug/GNU-Linux-x86/_ext/1942517469/TwoDTriangulation.o: In function `cvCreateSubdivDelaunay2D': 
/usr/local/include/opencv2/imgproc/imgproc_c.h:376: undefined reference to `cvCreateSubdiv2D' 
/usr/local/include/opencv2/imgproc/imgproc_c.h:378: undefined reference to `cvInitSubdivDelaunay2D'
도움이 되었습니까?

해결책

Those symbols are defined in libopencv_imgproc.so, which means that if you were compiling the app through cmd-line with g++ you would have to add the -lopencv_imgproc flag.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top