Problem installing driver

2009-11-20 Thread 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.


  

smartcam.c
Description: Binary data
[r...@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'


Re: Problem installing driver

2009-11-20 Thread Santiago Nunez-Corrales

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,

Mr Momcilo Medic wrote:

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.


  



--
Santiago Nunez-Corrales, Eng.
RidgeRun Engineering, LLC

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


--
To unsubscribe from this list: send the line unsubscribe linux-media in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html