Question

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'
Was it helpful?

Solution

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.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top