Skip to contentSkip to conversation

Problem installing driver

DISCUSSION Mr Momcilo Medic 2 participants 2 messages Nov 20, 2009 Media (V4L/DVB)

lore
Share & tools
lore
#0 lore raw

Hello,

I am Momcilo Medic from Serbia, and I was advised to write you mail with my problem. I am trying to install simple driver and it returns an error. In attachment is error message as well as driver I am trying to install.

I am pretty much a newbie for Linux, so if I left something out please do tell and I will send as many info as you need.

Thanks in advance,
Momcilo.

[root@Devourer driver_src]# make -C /lib/modules/2.6.30.9-96.fc11.x86_64/build/ M=pwd
make: Entering directory `/usr/src/kernels/2.6.30.9-96.fc11.x86_64'
LD /usr/src/smartcam-1.4.0/driver_src/built-in.o
CC [M] /usr/src/smartcam-1.4.0/driver_src/smartcam.o
/usr/src/smartcam-1.4.0/driver_src/smartcam.c:563: warning: initialization from incompatible pointer type /usr/src/smartcam-1.4.0/driver_src/smartcam.c:599: error: ‘VID_TYPE_CAPTURE’ undeclared here (not in a function) /usr/src/smartcam-1.4.0/driver_src/smartcam.c:601: warning: initialization from incompatible pointer type make[1]: *** [/usr/src/smartcam-1.4.0/driver_src/smartcam.o] Error 1
make: *** [_module_/usr/src/smartcam-1.4.0/driver_src] Error 2
make: Leaving directory `/usr/src/kernels/2.6.30.9-96.fc11.x86_64'

#1 lore raw

Hi Momcilo,

That error means the code is unable to find the kernel sources containing all the definitions from v4l2. Within the driver directory, look for a file named Makefile or Rules.make or Makefile.rules. In one of those, there should be a variable pointing to the kernel sources in your Linux distribution (usually in /usr/src/linux, consult the particular documentation in case you need to install the package or download from www.kernel.org). Set the variable to your particular kernel and recompile.

Regards,

Quoted 11 lines · Mr Momcilo Medic

Hello,

I am Momcilo Medic from Serbia, and I was advised to write you mail with my problem. I am trying to install simple driver and it returns an error. In attachment is error message as well as driver I am trying to install.

I am pretty much a newbie for Linux, so if I left something out please do tell and I will send as many info as you need.

Thanks in advance,
Momcilo.

Signature · 8 lines
Santiago Nunez-Corrales, Eng.
RidgeRun Engineering, LLC

Guayabos, Curridabat
San Jose, Costa Rica
+(506) 2271 1487
+(506) 8313 0536
http://www.ridgerun.com