Problem compiling Camshift in Ubuntu

asked 2014-04-09 02:16:46 -0500

Inaki gravatar image

Hi, I need your hepl. I´m new using this.

I need to compile a main program in ubuntu (main.cpp, wrote in c++).

Ihave no problem compiling programs that no depend on camshift, doing, for example:

"g++ main.cpp -lopencv_core -lopencv_highgui -lopencv_imgproc -o main"

But now, trying to compile a program that calls camshift, I have an error:

"undefined reference to cvCamshift "

I don´t know how what library I have to call! Pease, hepl! Thanks in advance!!

edit retag flag offensive close merge delete

Comments

Probably you have to link any of these lib -lopencv_video, -lopencv_videostab

Haris gravatar imageHaris ( 2014-04-09 02:22:21 -0500 )edit

Thanks!!! It worked!! thank you Haris!

Inaki gravatar imageInaki ( 2014-04-09 09:19:59 -0500 )edit

You are welcome.

Haris gravatar imageHaris ( 2014-04-09 09:22:03 -0500 )edit