Ask Your Question
0

How to find "lopencv_flann246.lib".

asked 2013-11-14 13:54:38 -0600

cedric100 gravatar image

Hi, I am new in the use of OpenCV and I have never succeded compiling the following code.

//www.youyube.com/watch?v=cgo0UitHfp8

include <iostream>

include "cv.h"

// #include "cv_bis.hpp"

include "highgui.h"

using namespace cv;

int main() { //Create matrix to store image. Mat image; //initialize capture.

VideoCapture cap;
cap.open(0);

//create window to store image.
namedWindow("window",1);

while(1)
{

    //copy webcam stream to image.

    cap>>image;

    //print image screen.
    imshow("window",image);

    //delay 33ms.
    waitKey(33);

}

return 0;

}

The debugger informs that the library "lopencv_flann246.lib" is not found as shown below


ld.exe||cannot find -lopencv_flann246.lib| ||=== Build finished: 1 errors, 0 warnings ===|


The point is that I checked on my laptop and I have never found it. I tried downloading OpenCV again, but it does not change anything.

Do I actually need this library ? - If yes, where can I download this library ? - If no, how do I make the computer ignoring this research ?

I hope it is handlable,

PS: I had no idea what to put in the tags, so, I put the most relevant (I do not know what it is made for, can anyone explain me ?).

Thank you by advance,

Kind regards,

Cédric.

edit retag flag offensive close merge delete

Comments

Btw, I would like to know who is the responsible of the rules OpenCV questions in order to make sure I do not do any mistakes. and to know all the questions that are relevant to this forum. If this forum is for advanced questions, please, inform me which forum is for very elementary questions on OpenCV like mine. Thank you by advance.

PS: I study in the UK since only one year. Therefore, sorry if my english is not excellent.

cedric100 gravatar imagecedric100 ( 2013-11-14 14:06:17 -0600 )edit

no prob at all.

just learn to love the '101010' button to format your code properly here

berak gravatar imageberak ( 2013-11-25 05:27:50 -0600 )edit

What do you mean? I do not understand.

cedric100 gravatar imagecedric100 ( 2013-11-25 05:42:42 -0600 )edit

1 answer

Sort by » oldest newest most voted
0

answered 2013-11-24 21:36:05 -0600

cedric100 gravatar image

I ended up using Visual C++ instead of code blocks and this mistake does not appear anymore.

edit flag offensive delete link more

Comments

yes, you probably had the libs wrong. *.lib is for vs, *.a for mingw

berak gravatar imageberak ( 2013-11-25 05:26:40 -0600 )edit

Question Tools

Stats

Asked: 2013-11-14 13:54:38 -0600

Seen: 196 times

Last updated: Nov 24 '13