QuickCam Team Forums

Full Version: Can't find the library
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello,
I'm really new in using Linux and I need to control focus, pan and tilt in a Sphere AF camera. I'm writting in C++ and I intent to use opencv for image adquisition but I don't know what I have to do to be able to use the libwebcam library in my C++ programs. I've always programmed using Matlab, an now C++ appears as a low-level language to me Sad

I could run the cmake and make comands following the indications in "unable to compile libwebcam-0.1.1" (posted below). But, I can't find the library in usr/local/lib. What am I missing?

As I said, I'm not so skilled in Linux, I hope someone could help me Wink
Well, I could compile the library libwebcam and I already can find its files in "usr/local/lib":
ls /usr/local/lib/libweb*
/usr/local/lib/libwebcam.so /usr/local/lib/libwebcam.so.0.1.1

But now, when I tried to compile the test.c file An error is produced:

gcc test.c -o Test -lwebcam -L/usr/local/lib
test.c:28:20: error: webcam.h: No existe el fichero รณ directorio

If manually move an paste the file webcam.h (located at libwebcam/Common/include/) then test.c compiles and runs without problems (well, this only after I move some 'int' definitions out of the for loops).

I guess there must be some linking problem with the name of the library but I really don't know what to do. Please help!
Reference URL's