Installing kernel headers for ubuntu

Sorry for the duplicate posts - I didn’t see the post show up and thought there must have been an issue.

Sorry for the duplicate posts - I didn't see the post show up and thought
there must have been an issue.

You weren't registered, and thus the message was under moderation..

Hi,
I am trying to build gstreamer-plugins-bad with the ubuntu 12.10 image on
the beagle bone and it was complaining that the <linux/uvcvideo.h> header
was missing. I grabbed the kernel source from kernel.org and moved the
include/linux folder into /usr/include (I moved the original one aside to
/usr/include/linux.orig) but now it complains that

#warning "Attempt to use kernel headers from user space, see
http://kernelnewbies.org/KernelHeaders&quot;

Looking at where this error is emitted from, __EXPORTED_HEADERS__ isn't
defined. This would make sense since I didn't build the kernel and install
it.

I'm wanting to find out what the correct process is for installing the
headers so I can get uvcvideo.h?

Grab: v3.2.0 from kernel.org

apply patch:
http://rcn-ee.net/deb/wheezy-armhf/v3.2.33-psp26/patch-3.2-psp26.diff.gz

(it was too much of a massive fork, so it's not based on v3.2.33, but
instead v3.2.0 + fork + stable patch + more fork...

copy defconfig as .config
http://rcn-ee.net/deb/wheezy-armhf/v3.2.33-psp26/defconfig

Regards,