Opencv:Error

Feb 24, 2013 1 Replies

Hi, I get this error when I install OpenCV-2.40 for arm: /usr/local/bin/../lib/gcc/arm-none-linux-gnueabi/4.6.3/../../../../arm-none



-linux-gnueabi/bin/ld: warning: libv4l2.so.0, needed by /usr/local/bin/../l ib/gcc/arm-none-linux-gnueabi/4.6.3/../../../../arm-none-linux-gnueabi/lib/ libv4l1.so, not found (try using -rpath or -rpath-link) /usr/local/bin/../lib/gcc/arm-none-linux-gnueabi/4.6.3/../../../../arm-none



-linux-gnueabi/lib/libv4l1.so: undefined reference to `v4l2_get_control' /usr/local/bin/../lib/gcc/arm-none-linux-gnueabi/4.6.3/../../../../arm-none



-linux-gnueabi/lib/libv4l1.so: undefined reference to `v4l2_ioctl' /usr/local/bin/../lib/gcc/arm-none-linux-gnueabi/4.6.3/../../../../arm-none



-linux-gnueabi/lib/libv4l1.so: undefined reference to `v4l2_read' /usr/local/bin/../lib/gcc/arm-none-linux-gnueabi/4.6.3/../../../../arm-none



-linux-gnueabi/lib/libv4l1.so: undefined reference to `v4l2_dup' /usr/local/bin/../lib/gcc/arm-none-linux-gnueabi/4.6.3/../../../../arm-none



-linux-gnueabi/lib/libv4l1.so: undefined reference to `v4l2_munmap' /usr/local/bin/../lib/gcc/arm-none-linux-gnueabi/4.6.3/../../../../arm-none



-linux-gnueabi/lib/libv4l1.so: undefined reference to `v4l2_fd_open' /usr/local/bin/../lib/gcc/arm-none-linux-gnueabi/4.6.3/../../../../arm-none



-linux-gnueabi/lib/libv4l1.so: undefined reference to `v4l2_set_control' /usr/local/bin/../lib/gcc/arm-none-linux-gnueabi/4.6.3/../../../../arm-none



-linux-gnueabi/lib/libv4l1.so: undefined reference to `v4l2_log_file' /usr/local/bin/../lib/gcc/arm-none-linux-gnueabi/4.6.3/../../../../arm-none



-linux-gnueabi/lib/libv4l1.so: undefined reference to `v4l2_close' /usr/local/bin/../lib/gcc/arm-none-linux-gnueabi/4.6.3/../../../../arm-none



-linux-gnueabi/lib/libv4l1.so: undefined reference to `v4l2_mmap' collect2: ld returned 1 exit status



Please Help me.Why I get this error??


It has been a while since your post, but I see no answers.

First, I think there are several groups where you will get your answer fast. There is a Yahoo group and a Google group and a OpenCV support group.

Either you do not have the V4l2 library installed or it has a path different than what the compiler is expecting. If it is installed, you can fix the path in the calling source code. There should be a line before this identifying the code being compiled. If not, the compiler is sitting its configuration. Check its configuration file. Add the correct path to it. Search for libv4l1.so It may have a prefix and you may need a wild card.

I would recommend 4.7 gnueabihf if you can use it. Version 4.7 is a more efficient compiler with the ARM and the hard float (hf) executes float routines about 10 times as fast as soft float (gnueabi)

Join the Discussion

Have something to add? Share your thoughts — no account required.

Didn't find your answer?

Ask the community — no account required