Note that there are some explanatory texts on larger screens.

plurals
  1. POSetup OpenCV-2.3 for Visual Studio 2010
    primarykey
    data
    text
    <p>I'm trying to use opencv 2.3 with Visual Studio 2010 Express. My code is from example: </p> <pre><code>#include "stdafx.h" #include &lt;highgui.h&gt; int _tmain(int argc, _TCHAR* argv[]) { int c; // allocate memory for an image IplImage *img; // capture from video device #1 CvCapture* capture = cvCaptureFromCAM(1); // create a window to display the images cvNamedWindow("mainWin", CV_WINDOW_AUTOSIZE); // position the window cvMoveWindow("mainWin", 5, 5); while(1) { // retrieve the captured frame img=cvQueryFrame(capture); // show the image in the window cvShowImage("mainWin", img ); // wait 10 ms for a key to be pressed c=cvWaitKey(10); // escape key terminates program if(c == 27) break; } return 0; } </code></pre> <p>What have I done so far?</p> <ul> <li>Added <code>build\bin</code> and one of <code>build\{x86|x64}\{vc9\vc10\mingw}\bin</code> to my system path (to use DLLs).</li> <li>Added <code>build\{x86|x64}\{vc9\vc10\mingw}\lib</code> or <code>build\{x86|x64}\{vc9\vc10\mingw}\staticlib</code> as library directories to my linker settings.</li> <li>Added <code>build\include</code> and <code>build\include\opencv</code> as include directories to my compiler settings.</li> </ul> <p>And the result is: </p> <blockquote> <p><strong>1>LINK : fatal error LNK1104: cannot open file 'c:\OpenCV2.3\build\x86\vc10\lib.obj'</strong></p> </blockquote> <p>There's no <code>lib.obj</code> in OpenCV folders. I've only unziped <code>OpenCV-2.3.0-win-superpack.exe</code>, without using CMake software.</p> <p>What am I doing wrong?</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