Jump to content
Sign in to follow this  
jim

Topic: Installing libUVC

Recommended Posts

I am attempting to build a stereo vision system using two Microsoft HD 5000 LifeCam webcams. These are UVC cams that I use regularly under Ubuntu 12.10. It seems the Lubuntu image on the pcDuino does not include libUVC so I have tried to install it without success. Per the instructions on http://www.ideasonboard.org/uvc/ I have gone tohttp://www.linuxtv.org/wiki/index.php/How_to_Obtain,_Build_and_Install_V4L-DVB_Device_Drivers and followed the '"Basic" Approach' instructions. I had to install a number of other programs and Perl packages but I have hit a dead end. When I execute the build script I receive the following error:


******************
* Start building *
******************
make -C /home/ubuntu/media_build/v4l allyesconfig
make[1]: Entering directory `/home/ubuntu/media_build/v4l'
make[2]: Entering directory `/home/ubuntu/media_build/linux'
Applying patches for kernel 3.0.8+
patch -s -f -N -p1 -i ../backports/api_version.patch
patch -s -f -N -p1 -i ../backports/pr_fmt.patch
patch -s -f -N -p1 -i ../backports/v3.1_no_export_h.patch
patch -s -f -N -p1 -i ../backports/v3.1_no_dma_buf_h.patch
patch -s -f -N -p1 -i ../backports/v3.1_no_pm_qos.patch
patch -s -f -N -p1 -i ../backports/no_atomic_include.patch
patch -s -f -N -p1 -i ../backports/v4l2-compat-timespec.patch
Patched drivers/media/dvb-core/dvbdev.c
Patched drivers/media/v4l2-core/v4l2-dev.c
Patched drivers/media/rc/rc-main.c
make[2]: Leaving directory `/home/ubuntu/media_build/linux'
./scripts/make_kconfig.pl /lib/modules/3.0.8+/build /lib/modules/3.0.8+/build 1
Preparing to compile for kernel version 3.0.8
File not found: /lib/modules/3.0.8+/build/.config at ./scripts/make_kconfig.pl line 33, line 4.
make[1]: *** [allyesconfig] Error 2
make[1]: Leaving directory `/home/ubuntu/media_build/v4l'
make: *** [allyesconfig] Error 2
can't select all drivers at ./build line 451.

From what I have read I need to install the Linux headers and source. The common approach seems to be to execute the command:

sudo apt-get install linux-headers-`uname -r` linux-source

which resolves to:

sudo apt-get install linux-headers-3.0.8 linux-source

or:

sudo apt-get install linux-headers-3.0.8+ linux-source

I'm not really sure which. Regardless linux-headers-3.0.8 nor linux-headers-3.0.8+ exist in the repository. I noticed, however, when I installed the linux-source package that 3.2.0.38.46 was installed so I installed linux-headers-3.2.0-38 but it did not solve the problem.

Can anyone point me in the right direction?

Share this post


Link to post
Share on other sites
 

I am attempting to build a stereo vision system using two event management Microsoft HD 5000 LifeCam webcams. These are UVC cams that I use regularly under Ubuntu 12.10. It seems the Lubuntu image on the pcDuino does not include libUVC so I have tried to install it without success. Per the instructions on http://www.ideasonboard.org/uvc/ I have gone tohttp://www.linuxtv.org/wiki/index.php/How_to_Obtain,_Build_and_Install_V4L-DVB_Device_Drivers and followed the '"Basic" Approach' instructions. I had to install a number of other programs and Perl packages but I have hit a dead end. When I execute the build script I receive the following error:


******************
* Start building *
******************
make -C /home/ubuntu/media_build/v4l allyesconfig
make[1]: Entering directory `/home/ubuntu/media_build/v4l'
make[2]: Entering directory `/home/ubuntu/media_build/linux'
Applying patches for kernel 3.0.8+
patch -s -f -N -p1 -i ../backports/api_version.patch
patch -s -f -N -p1 -i ../backports/pr_fmt.patch
patch -s -f -N -p1 -i ../backports/v3.1_no_export_h.patch
patch -s -f -N -p1 -i ../backports/v3.1_no_dma_buf_h.patch
patch -s -f -N -p1 -i ../backports/v3.1_no_pm_qos.patch
patch -s -f -N -p1 -i ../backports/no_atomic_include.patch
patch -s -f -N -p1 -i ../backports/v4l2-compat-timespec.patch
Patched drivers/media/dvb-core/dvbdev.c
Patched drivers/media/v4l2-core/v4l2-dev.c
Patched drivers/media/rc/rc-main.c
make[2]: Leaving directory `/home/ubuntu/media_build/linux'
./scripts/make_kconfig.pl /lib/modules/3.0.8+/build /lib/modules/3.0.8+/build 1
Preparing to compile for kernel version 3.0.8
File not found: /lib/modules/3.0.8+/build/.config at ./scripts/make_kconfig.pl line 33, <IN> line 4.
make[1]: *** [allyesconfig] Error 2
make[1]: Leaving directory `/home/ubuntu/media_build/v4l'
make: *** [allyesconfig] Error 2
can't select all drivers at ./build line 451.

From what I have read I need to install the Linux headers and source. The common approach seems to be to execute the command:

sudo apt-get install linux-headers-`uname -r` linux-source

which resolves to:

sudo apt-get install linux-headers-3.0.8 linux-source

or:

sudo apt-get install linux-headers-3.0.8+ linux-source

I'm not really sure which. Regardless linux-headers-3.0.8 nor linux-headers-3.0.8+ exist in the repository. I noticed, however, when I installed the linux-source package that 3.2.0.38.46 was installed so I installed linux-headers-3.2.0-38 but it did not solve the problem.

Can anyone point me in the right direction?

 

thanks for sharing

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×