Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>I found out the problem so I think I should post an answer here for the benefit of others who may have experienced the same problem.</p> <p>Basically the binaries provided for OpenCv 2.2 by default do NOT include the Qt new functions. To enable it, one needs to download the OpenCv source and use CMake to generate makefiles and source that include the Qt new functions and compile the source from scratch. </p> <p>Here are roughly the steps to do:</p> <ol> <li>First, install QT using the SDK from here: <a href="http://qt.nokia.com/downloads/" rel="noreferrer">http://qt.nokia.com/downloads/</a> . NOTE: You will need to add the QT libs and header files to your system path and to your linker path so that your compiler can locate them. It is NOT simply download and install. For windows, see: <a href="http://developer.qt.nokia.com/doc/qt-4.8/install-win.html" rel="noreferrer">http://developer.qt.nokia.com/doc/qt-4.8/install-win.html</a> to find out how to add the environment variables. You will need to set them up for CMake to detect QT and generate the proper files. For linux users, see: <a href="http://blog.sudobits.com/2010/06/30/how-to-install-qt-on-ubuntu-10-04/" rel="noreferrer">http://blog.sudobits.com/2010/06/30/how-to-install-qt-on-ubuntu-10-04/</a></li> <li>Download and install CMake from here: <a href="http://cmake.org/cmake/resources/software.html" rel="noreferrer">http://cmake.org/cmake/resources/software.html</a> .</li> <li>Download OpenCV's source code for your OS from here: <a href="http://opencv.willowgarage.com/wiki/" rel="noreferrer">http://opencv.willowgarage.com/wiki/</a></li> <li>Now run the GUI of CMake and use it to select the folder where you have extracted the OpenCV source. Select the type of OS you are compiling for i.e. Unix Makefiles, Visual Studio solution, XCode etc.</li> <li>Now a list of options should appear. There will be an option for QT as well as QT with openGL. Select the first and the one with openGL if you require it. Next, click the "configure" button followed by "generate" button in CMake. The necessary project files would then be generated. </li> <li>Depending on the type of project you created (Unix Makefiles, Visual Studio project etc.), you can now go to the folder where they are generated by CMake and compile the project. For e.g. if you chose CMake to generate Visual Studio solution, there would be a Visual Studio solution file in the folder. Open it and select Build All. If you chose Unix Makefiles just call "make" at the command line followed by "sudo make install".</li> <li>Now all you need is the libraries in the /lib folder and the header files in the /include folder. Copy this 2 folders to whereever you wish to place them. For e.g. on Ubuntu, after you have typed "sudo make install" they would have been automatically copied to /usr/local/lib and /usr/local/include. For windows user, they would be in the folder you specified in CMake.</li> <li>To link your project (be it visual studio or using make in unix), you have to tell your linker where to find the libs and include files. You specify them as you would when you downloaded the OpenCV binaries.</li> </ol> <p>Thats it. You should now have a working OpenCV with QT.</p> <p>Instructions on how to compile from scratch is given on OpenCv's webpage here: <a href="http://opencv.willowgarage.com/wiki/InstallGuide" rel="noreferrer">http://opencv.willowgarage.com/wiki/InstallGuide</a>.</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.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      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