Note that there are some explanatory texts on larger screens.

plurals
  1. POOpenCV 2.3 - undefined reference to cvCreateButton - Eclipse
    primarykey
    data
    text
    <p>I am trying to use the Qt new functions described here: <a href="http://opencv.willowgarage.com/documentation/cpp/qt_new_functions.html#cv-createbutton" rel="nofollow noreferrer">http://opencv.willowgarage.com/documentation/cpp/qt_new_functions.html#cv-createbutton</a></p> <p>And I also found this topic on SO: <a href="https://stackoverflow.com/questions/4458668/opencv-2-2-createbutton-lnk-2019-error-in-visual-studio-2010">openCV 2.2 createButton LNK 2019 error in Visual Studio 2010</a> but compiling with QT didn't work.</p> <p>Anyway, according to my searches it seems to be a linking problem. My doubt is that I already compiled OpenCV (without QT) but I can use the createTrackbar normally.</p> <p>I tried using the createButton as this:</p> <pre><code>cv::createButton("buttonCanny", buttonCallBackCanny,NULL,CV_RADIOBOX,true); </code></pre> <p>But I get this error:</p> <blockquote> <p>undefined reference to `cv::createButton(std::string const&amp;, void (<em>)(int, void</em>), void*, int, bool)'</p> </blockquote> <p>I tried the cvCreateButton but I get the same error.</p> <p>I have this setup C/C++ Build -> Settings -> Tool Settings -> MingGW C++ Linker -> Libraries (all the .dll from compiled OpenCV)</p> <ul> <li>libopencv_calib3d230 </li> <li>opencv_ffmpeg </li> <li>libopencv_contrib230</li> <li>libopencv_core230 </li> <li>libopencv_features2d230 </li> <li>libopencv_flann230</li> <li>libopencv_gpu230 </li> <li>libopencv_highgui230 </li> <li>libopencv_imgproc230</li> <li>libopencv_legacy230 </li> <li>libopencv_ml230 </li> <li>libopencv_objdetect230</li> <li>libopencv_video230</li> </ul> <p>C/C++ Build -> Settings -> Tool Settings -> MingGW C++ Linker -> Search Path ("C:\opencvbin\bin" where the Dll are)</p> <p>C/C++ Build -> Settings -> Tool Settings -> GCC C++ Compiler -> Includes "C:\OpenCV2.3\build\include"</p> <p>Any suggestions?</p> <p>Thank you!</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload