I am using opencv with python on raspberry pi so according to tutorials on the internet I need the V4L2 driver. I'm following this tutorial to install the driver https://www.ics.com/blog/raspberry-pi-camera-module#.VAaCHqM0_YQ
However when I compile I get this error. I don't know what's the problem and have never ran into this problem before. How do I fix this. Thanks.
make[3]: Entering directory '/home/pi/v4l-utils/utils/v4l2-compliance'
CXX v4l2-test-input-output.o
v4l2-test-input-output.cpp: In function ‘int checkInput(node*, const v4l2_input&, unsigned int)’:
v4l2-test-input-output.cpp:368:3: error: expected primary-expression before ‘.’ token
v4l2-test-input-output.cpp:369:3: error: expected primary-expression before ‘.’ token
v4l2-test-input-output.cpp: In function ‘int checkOutput(node*, const v4l2_output&, unsigned int)’:
v4l2-test-input-output.cpp:733:3: error: expected primary-expression before ‘.’ token
v4l2-test-input-output.cpp:734:3: error: expected primary-expression before ‘.’ token
Makefile:438: recipe for target 'v4l2-test-input-output.o' failed
make[3]: *** [v4l2-test-input-output.o] Error 1
make[3]: Leaving directory '/home/pi/v4l-utils/utils/v4l2-compliance'
Makefile:373: recipe for target 'all-recursive' failed
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory '/home/pi/v4l-utils/utils'
Makefile:470: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/home/pi/v4l-utils'
Makefile:398: recipe for target 'all' failed
make: *** [all] Error 2
The line numbers have changed somewhat in the 2+ years since this question was posted. It could have easily had more bugs back then with Raspbian 7 Wheezy on a Raspberry Pi 2 or classic Pi.
One correction to the webpage would be that it's better to run ./bootstrap.sh rather than autoreconf. I also write libjpeg-dev to avoid dependency problems with the too-specific libjpeg62-dev. Then the build and installation works fine today on Raspbian 9 Stretch (gcc 6.3):
sudo apt-get install autoconf gettext libtool libjpeg-dev
git clone git://git.linuxtv.org/v4l-utils.git
cd v4l-utils
./bootstrap.sh
./configure
make
sudo make install
Related
This is my first question in stack overflow and hope I make it clear.
I am trying to install a program (gmtsar) in fedora 32. However, the compilation was not complete and two errors return at the end.
I ran the following commands:
sudo -i
cd /usr/local
git clone --branch 6.0 https://github.com/gmtsar/gmtsar GMTSAR
cd GMTSAR
autoconf
./configure --with-orbits-dir=/usr/local/orbits
make
make install
after make and mak install the following errors return:
collect2: error: ld returned 1 exit status
make[2]: *** [Makefile:44: envi_slc_decode] Error 1
make[2]: Leaving directory '/usr/local/GMTSAR/preproc/ENVI_preproc/ENVI_SLC_decode'
make[1]: *** [Makefile:8: all] Error 2
make[1]: Leaving directory '/usr/local/GMTSAR/preproc/ENVI_preproc'
make: *** [Makefile:37: preprocess] Error 2
I followed the same procedures in ubuntu 16.04 and the compilation was complete without errors.
Can anyone help me understand why I got these errors and how to fix them, please?
i've been working on this for days, and I really don't have any clue to what's going on
I'm trying to install gearman on windows and followed EXACTLY what's on this link:
http://www.phpvs.net/2010/11/30/installing-gearman-and-gearmand-on-windows-with-cygwin/
However, no luck. I've installed libevent and i'm on installation of gearman:
I've only managed to execute ./configure on cygwin.
After that, using make :
make -j2 all-am
make[1]: Entering directory '/cygdrive/c/gearman'
CXX libgearman/libgearman_libgearman_la-error.lo
libgearman/error.cc: In function 'gearman_return_t gearman_universal_set_perror(gearman_universal_st&, gearman_return_t, int, const char*, const char*, const char*, ...)':
libgearman/error.cc:218:83: error: 'strerror_r' was not declared in this scope
errmsg_ptr= strerror_r(universal._error.system_error(), errmsg, sizeof(errmsg));
^
Makefile:6247: recipe for target 'libgearman/libgearman_libgearman_la-error.lo' failed
make[1]: *** [libgearman/libgearman_libgearman_la-error.lo] Error 1
make[1]: Leaving directory '/cygdrive/c/gearman'
Makefile:3050: recipe for target 'all' failed
make: *** [all] Error 2
This comes on, and I don't know what I've done wrong. I need help on this. Thanks!
I'm attempting to compile GMP 5.1.3 with MinGW on a 64 bit Windows 7 machine as a prerequisite to setting up pycrypto. To configure GMP I used ./configure --prefix=C:/Python27/Lib/site-packages/gmp-5.1.3. When I enter the make command, I get the error:
../libtool: line 1109: lib: command not found
make[2]: *** [libmpn.la] Error 127
make[2]: Leaving director '/c/Python27/Lib/site-packages/gmp-5.1.3/mpn'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/c/Python27/Lib/site-packages/gmp-5.1.3'
make: *** [all] Error 2
I've been fishing around Google and reviewing the instructions for GMP to no avail. Found lots of maybe similar problems, but nothing that directly relates. Though I have the sneaking suspicion that the problem is right in front of me and I've just been staring at the screen too long.
I'm trying to install ufasoft miner on my Debian machine, but after entering make it shows this message:
make[1]: Entering directory `/root/ufasoft_coin-0.75'
CXX el/libext/bignum.o
In file included from el/libext/bignum.cpp:18:0:
./el/bignum.h: In member function ?void Ext::BigInteger::swap(Ext::BigInteger&)?:
./el/bignum.h:310:8: error: ?mpz_class? has no member named ?swap?
make[1]: *** [el/libext/bignum.o] Error 1
make[1]: Leaving directory `/root/ufasoft_coin-0.75'
make: *** [all] Error 2
Check your installed GMP version.
For me, ufasoft_coin-0.75 compiles fine against the latest gmp-5.1.3 (With --enable-cxx)
I'm having a problem installing a driver for my Silabs USB to UART bridge.
I download my driver from here:
http://www.silabs.com/products/mcu/Pages/USBtoUARTBridgeVCPDrivers.aspx
I'm running Ubuntu 12.04 32bit Kernel Linux 3.5.0-27-generic
The instructions say that make (your cp2010x driver)
cp cp2010x.ko to /libmodules/<kernel>/kernel/driver/usb/serial
insmod /libmodules/<kernel>/kernel/driver/usb/serial/usbserial.ko
insmod xp2010x.ko
However, I get this error when I try to call make:
root#grace:/home/admin/Desktop/usb# make
make -C /lib/modules/3.5.0-27-generic/build M=/home/admin/Desktop/usb modules
make[1]: Entering directory `/usr/src/linux-headers-3.5.0-27-generic'
CC [M] /home/admin/Desktop/usb/cp210x.o
/home/admin/Desktop/usb/cp210x.c:164:12: error: ‘usb_serial_probe’ undeclared here (not in a function)
/home/admin/Desktop/usb/cp210x.c:165:16: error: ‘usb_serial_disconnect’ undeclared here (not in a function)
/home/admin/Desktop/usb/cp210x.c: In function ‘cp210x_init’:
/home/admin/Desktop/usb/cp210x.c:989:2: error: implicit declaration of function ‘usb_serial_register’ [-Werror=implicit-function-declaration]
/home/admin/Desktop/usb/cp210x.c:996:3: error: implicit declaration of function ‘usb_serial_deregister’ [-Werror=implicit-function-declaration]
cc1: some warnings being treated as errors
make[2]: *** [/home/admin/Desktop/usb/cp210x.o] Error 1
make[1]: *** [_module_/home/admin/Desktop/usb] Error 2
make[1]: Leaving directory `/usr/src/linux-headers-3.5.0-27-generic'
make: *** [all] Error 2
I am new to Linux. I've Googled the error a lot but I can't find any answers that works.
According to this forum post, those drivers have actually been a part of the kernel since March 2009. You can see the file at drivers/usb/serial/cp210x.c (here is a link to the file in the latest stable version of the kernel).