Ask Your Question

Revision history [back]

Error in making graphs in OpenCV

Hi!

I want to generate plots in OpenCV, using the following link:

http://answers.opencv.org/question/73233/how-do-you-plot-graphs-in-opencv-projects/

For this purpose, I added the following files (from https://github.com/opencv/opencv_contrib/tree/master/modules/plot in OpenCV folder as mentioned below.

plot.hpp >> opencv\build\include\opencv2

precomp.hpp >> opencv\build\include\opencv2

plot.cpp >> opencv\sources\modules\plot\src

but after building the code, I receive the following error

Error 2 error LNK1120: 1 unresolved externals

Error 1 error LNK2019: unresolved external symbol "struct cv::Ptr<class cv::plot::plot2d=""> __cdecl cv::plot::createPlot2d(class cv::_InputArray const &)" (?createPlot2d@plot@cv@@YA?AU?$Ptr@VPlot2d@plot@cv@@@2@ABV_InputArray@2@@Z) referenced in function _main

Please help me in resolving this issue.

Error in making graphs in OpenCV

Hi!

I want to generate plots in OpenCV, using the following link:

http://answers.opencv.org/question/73233/how-do-you-plot-graphs-in-opencv-projects/

For this purpose, I added the following files (from https://github.com/opencv/opencv_contrib/tree/master/modules/plot in OpenCV folder as mentioned below.

plot.hpp >> opencv\build\include\opencv2

precomp.hpp >> opencv\build\include\opencv2

plot.cpp >> opencv\sources\modules\plot\src

but after building the code, I receive the following error

Error 2 error LNK1120: 1 unresolved externals

Error 1 error LNK2019: unresolved external symbol "struct cv::Ptr<class cv::plot::plot2d=""> __cdecl cv::plot::createPlot2d(class cv::_InputArray const &)" (?createPlot2d@plot@cv@@YA?AU?$Ptr@VPlot2d@plot@cv@@@2@ABV_InputArray@2@@Z) referenced in function _main

Please help me in resolving this issue.