PDA

View Full Version : opencv and cvcam.h



musa_yilmaz
17th February 2010, 14:58
hi,
i am new at linux ant qt,
i downloaded opencv2.0 from sourceforge.net
and installed like below :
1 > cd opencv
2 > ./configure
3 > make
4 > make install

later, in qt creater i can use "cv.h" or "highgui.h" but i can not use "cvcam.h".
what should i do ? what is my wrong ?

thanks,

axeljaeger
17th February 2010, 15:17
Why can't you use it? What is the exact error message that you get?

musa_yilmaz
17th February 2010, 15:29
i want to use its functions like "cvcamGetCamerascount()" but i cant include it ?

musa_yilmaz
23rd February 2010, 16:34
anybody help me please ?

axeljaeger
23rd February 2010, 16:36
Give proper error description and we will help you.

musa_yilmaz
23rd February 2010, 17:22
ok, i installed opencv as above that i wrote before.

i want to make capturing from my camera.
i have to use cvcam.h library and its functions to capturing my camera, but when i declare that
#include "opencv/cvcam.h"
qt gives error: "can not find include file cvcam..." like that.

but i can declare this
#include "opencv/cv.h"
#include "opencv/highgui.h"
and i can use this libraries and its functions.

can i explain my problem ?

thanx..

axeljaeger
23rd February 2010, 17:27
Is there a file cvcam.h next to cv.h and highgui.h in the opencv-folder on your filesystem?

musa_yilmaz
23rd February 2010, 17:59
no, there is not, what should i do ?
did i make an error while installing opencv ?
i am using opensuse v11.2.
i downloaded opencv at http://sourceforge.net/projects/opencvlibrary/

thanks your interest...

axeljaeger
23rd February 2010, 18:03
If the file is not in your filesystem, then the problem is not related to Qt but to that library. The error message from creator perfectly makes sense.

I guess there is maybe different versions of opencv and the example you are trying to compile was written against a different version of opencv so example version and you installed version do not match.

musa_yilmaz
23rd February 2010, 20:34
hmm thanks. i will open new thread for capturing in linux.