Re: Make Error (please help i need my webcam to work)...



"ephman" <ephsjunk@xxxxxxxxx> writes:

> hi,
>
> sorry my bad, you're right, i actually thought i did include the
> thread. if we get this fixed i'll post the fix to the other places
> i've posted this issue to.

Ok, I won't mention that you're top posting and not trimming.

> thank you for your help again. maybe we're getting someplace, maybe
> not... i created that symlink to the sources makefile in the
> /lib/modules/2.6.12-10-686/build, and a new issue arose. looks like
> there's supposed to be a hidden config file in that directory. no idea
> what it should be though. here's the output, maybe it'll help shed
> some light on whether making this webcam work possible.
>
> root@wintermute:/home/ephman/nw802-2.4/nw802-2.4# make
> ln -sf /lib/modules/`uname -r`/build/drivers/usb/media/usbvideo.h .
> ln -sf /lib/modules/`uname -r`/build/drivers/usb/media/usbvideo.c .
> make -C /lib/modules/`uname -r`/build SUBDIRS=`pwd` modules
> make[1]: Entering directory `/lib/modules/2.6.12-10-686/build'
> Makefile:485: .config: No such file or directory
> Makefile:530: /lib/modules/2.6.12-10-686/build/arch/i386/Makefile: No
> such file or directory
> make[1]: *** No rule to make target
> `/lib/modules/2.6.12-10-686/build/arch/i386/Makefile'. Stop.
> make[1]: Leaving directory `/lib/modules/2.6.12-10-686/build'
> make: *** [default] Error 2
> root@wintermute:/home/ephman/nw802-2.4/nw802-2.4#

Without going thru the steps myself it's hard to go much further.
It looks like as soon as it got into the build directory, it expected
a .config file to be there. Perhaps you created a symlink to the
wrong place?

Did you look at line 485 in the Makefile? Is it looking for a file
named .config or something else, it might be looking for $(VARNAME).config,
(if you didn't have VARNAME set). Knowing what it's looking for
might tell you where the soft link should be.

There should be a README and INSTALL file in the driver source
did you read them?

I'm confused as to why you needed to use a 2.4 driver for a 2.6
system. Where's the 2.6 source code? Doesn't Ubuntu support
the device? Here's someone getting a Logitec Quickcam
working with Ubuntu:

http://ubuntuforums.org/archive/index.php/t-863.html

but it looks like a different driver.

> any help again is so appreciated.
>
> thanks,
> ephman
>
>
> Dan Espen wrote:
>> "ephman" <ephsjunk@xxxxxxxxx> writes:
>>
>> > hi,
>> >
>> > thanks again, but like i said this might be a tough one to figure out.
>> > i went down the roads you suggested, infact i even installed the
>> > kernel's headers. no avail. i am missing a file in the build
>> > directory called modules, infact there aren't any files in that dir
>> > anyhow. so i'm at a total loss. i don't want to have to ditch a
>> > perfectly good quickcam, but maybe i might.
>>
>> It's conventional courtesy to include the original text in a reply
>> so that we don't have to rely on memory or using Google Groups
>> to figure out what you are replying to.
>>
>> You didn't seem to understand my reply.
>> Under build, there should be a file called Makefile.
>> Inside the Makefile would be a rule called 'modules'.
>>
>> See this:
>>
>> http://www.linuxquestions.org/questions/showthread.php?t=345804
>>
>> Looks like you have to create a soft link into the kernel source.
>
>
>
> hi,
>
> i'm having a real tough time trying to install this nw802 video driver
> for my dark ring logitech quickcam. this is the output for when i make
> (ha ha ha). any ideas how i can fix this???
>
> root@wintermute:/home/ephman/nw802-2.4/nw802-2.4# make
> ln -sf /lib/modules/`uname -r`/build/drivers/usb/media/usbvideo.h .
> ln -sf /lib/modules/`uname -r`/build/drivers/usb/media/usbvideo.c .
> make -C /lib/modules/`uname -r`/build SUBDIRS=`pwd` modules
> make[1]: Entering directory `/lib/modules/2.6.12-10-686/build'
> make[1]: *** No rule to make target `modules'. Stop.
> make[1]: Leaving directory `/lib/modules/2.6.12-10-686/build'
> make: *** [default] Error 2
> root@wintermute:/home/ephman/nw802-2.4/nw802-2.4#
>
> thanks for the bandwidth,
> ephman
>
> Reply
>
>
> Dan Espen
> Dec 26, 5:53 pm show options
> Newsgroups: comp.os.linux.misc
> From: Dan Espen <dan...@xxxxxxxxxxxxxxxxxxxxx> - Find messages by this
> author
> Date: Mon, 26 Dec 2005 17:53:10 -0500
> Local: Mon, Dec 26 2005 5:53 pm
> Subject: Re: Make Error (please help i need my webcam to work)...
> Reply | Reply to Author | Forward | Print | Individual Message | Show
> original | Report Abuse
>
> - Hide quoted text -
> - Show quoted text -
> "ephman" <ephsj...@xxxxxxxxx> writes:
>> hi,
>
>> i'm having a real tough time trying to install this nw802 video driver
>> for my dark ring logitech quickcam. this is the output for when i make
>> (ha ha ha). any ideas how i can fix this???
>
>> root@wintermute:/home/ephman/nw802-2.4/nw802-2.4# make
>> ln -sf /lib/modules/`uname -r`/build/drivers/usb/media/usbvideo.h .
>> ln -sf /lib/modules/`uname -r`/build/drivers/usb/media/usbvideo.c .
>> make -C /lib/modules/`uname -r`/build SUBDIRS=`pwd` modules
>> make[1]: Entering directory `/lib/modules/2.6.12-10-686/build'
>> make[1]: *** No rule to make target `modules'. Stop.
>> make[1]: Leaving directory `/lib/modules/2.6.12-10-686/build'
>> make: *** [default] Error 2
>> root@wintermute:/home/ephman/nw802-2.4/nw802-2.4#
>
> Looks to me like you are trying to install a module written
> for a 2.4 kernel on a system with a 2.6 kernel.
> If so, that's not going to work.
>
> You need to tell us what distribution you are running
> and more about what you are trying to do.
>
> Reply
>
>
> ephman
> Dec 26, 6:41 pm show options
> Newsgroups: comp.os.linux.misc
> From: "ephman" <ephsj...@xxxxxxxxx> - Find messages by this author
> Date: 26 Dec 2005 15:41:38 -0800
> Local: Mon, Dec 26 2005 6:41 pm
> Subject: Re: Make Error (please help i need my webcam to work)...
> Reply | Reply to Author | Forward | Print | Individual Message | Show
> original | Report Abuse
>
> hi,
>
> yes you're correct, i am trying to install a module written for a 2.4
> kernel eventhough i'm running a 2.6 kernel running ubuntu-breezy.
> here's the story (i'll make it short).
>
> i have a logitech quickcam that uses a nw802 driver. now the driver
> was written for 2.4, however there's a patch for 2.6 that seems to
> apply properly if you take a look at the output below.
>
> root@wintermute:/home/ephman/nw802-2.4# cvs co nw802-2.4
> cvs checkout: Updating nw802-2.4
> U nw802-2.4/Changelog
> U nw802-2.4/DS3303u.init
> U nw802-2.4/LICENSE
> U nw802-2.4/Makefile
> U nw802-2.4/Makefile.26
> U nw802-2.4/README
> U nw802-2.4/SpaceCam.init
> U nw802-2.4/Twinkle.init
> U nw802-2.4/cvideopro.init
> U nw802-2.4/d-link-350c.init
> U nw802-2.4/kritter.init
> U nw802-2.4/mustek_300_mini.init
> U nw802-2.4/nw800.init
> U nw802-2.4/nw801.init
> U nw802-2.4/nw802.c
> U nw802-2.4/nw802.init
> U nw802-2.4/nw8xx_jpgl.c
> U nw802-2.4/nw8xx_jpgl.h
> U nw802-2.4/nw8xx_regedit.c
> U nw802-2.4/patch-2.6
> U nw802-2.4/proscope.init
> U nw802-2.4/trust_space.init
> U nw802-2.4/usbvideo.c
> U nw802-2.4/usbvideo.h
> root@wintermute:/home/ephman/nw802-2.4# cd nw802-2.4
> root@wintermute:/home/ephman/nw802-2.4/nw802-2.4# cp Makefile.26
> Makefile
> root@wintermute:/home/ephman/nw802-2.4/nw802-2.4# patch -p0 < patch-2.6
> patching file nw802.c
> Hunk #10 succeeded at 770 with fuzz 2.
> root@wintermute:/home/ephman/nw802-2.4/nw802-2.4# make clean
> rm -f usbvideo.h usbvideo.c *.o *.ko *~ *.mod.c
> root@wintermute:/home/ephman/nw802-2.4/nw802-2.4# make
> ln -sf /lib/modules/`uname -r`/build/drivers/usb/media/usbvideo.h .
> ln -sf /lib/modules/`uname -r`/build/drivers/usb/media/usbvideo.c .
> make -C /lib/modules/`uname -r`/build SUBDIRS=`pwd` modules
> make[1]: Entering directory `/lib/modules/2.6.12-10-686/build'
> make[1]: *** No rule to make target `modules'. Stop.
> make[1]: Leaving directory `/lib/modules/2.6.12-10-686/build'
> make: *** [default] Error 2
> root@wintermute:/home/ephman/nw802-2.4/nw802-2.4#
>
> anything that you think that would help would be great. i've been
> doing a ton of searching and don't seem to find people with this same
> issue, so solving it might be tough i'm afraid.
>
> thanks for the bandwidth,
> ephman
>
> Reply
>
>
> Dan Espen
> Dec 26, 8:58 pm show options
> Newsgroups: comp.os.linux.misc
> From: Dan Espen <dan...@xxxxxxxxxxxxxxxxxxxxx> - Find messages by this
> author
> Date: Mon, 26 Dec 2005 20:58:28 -0500
> Local: Mon, Dec 26 2005 8:58 pm
> Subject: Re: Make Error (please help i need my webcam to work)...
> Reply | Reply to Author | Forward | Print | Individual Message | Show
> original | Report Abuse
>
> - Hide quoted text -
> - Show quoted text -
> "ephman" <ephsj...@xxxxxxxxx> writes:
>> hi,
>
>> i am trying to install a module written for a 2.4
>> kernel eventhough i'm running a 2.6 kernel running ubuntu-breezy.
>> here's the story (i'll make it short).
>
>> i have a logitech quickcam that uses a nw802 driver. now the driver
>> was written for 2.4, however there's a patch for 2.6 that seems to
>> apply properly if you take a look at the output below.
>
>> root@wintermute:/home/ephman/nw802-2.4# cvs co nw802-2.4
>> cvs checkout: Updating nw802-2.4
> ...
>> U nw802-2.4/usbvideo.h
>> root@wintermute:/home/ephman/nw802-2.4# cd nw802-2.4
>> root@wintermute:/home/ephman/nw802-2.4/nw802-2.4# cp Makefile.26
>> Makefile
>> root@wintermute:/home/ephman/nw802-2.4/nw802-2.4# patch -p0 < patch-2.6
>> patching file nw802.c
>> Hunk #10 succeeded at 770 with fuzz 2.
>> root@wintermute:/home/ephman/nw802-2.4/nw802-2.4# make clean
>> rm -f usbvideo.h usbvideo.c *.o *.ko *~ *.mod.c
>> root@wintermute:/home/ephman/nw802-2.4/nw802-2.4# make
>> ln -sf /lib/modules/`uname -r`/build/drivers/usb/media/usbvideo.h .
>> ln -sf /lib/modules/`uname -r`/build/drivers/usb/media/usbvideo.c .
>> make -C /lib/modules/`uname -r`/build SUBDIRS=`pwd` modules
>> make[1]: Entering directory `/lib/modules/2.6.12-10-686/build'
>> make[1]: *** No rule to make target `modules'. Stop.
>> make[1]: Leaving directory `/lib/modules/2.6.12-10-686/build'
>> make: *** [default] Error 2
>> root@wintermute:/home/ephman/nw802-2.4/nw802-2.4#
>
>> anything that you think that would help would be great. i've been
>> doing a ton of searching and don't seem to find people with this same
>> issue, so solving it might be tough i'm afraid.
>
> Ok. Sorry, I'm not an ubuntu user.
> In my /lib/modules/`uname -r`/
> directory, there is no 'build' subdirectory
> so I don't know what this Makefile is looking for.
> However, it looks like it expects the directory
> 'build' to contain a file named 'Makefile' and inside that
> makefile there should be a rule named 'modules'.
> It's complaining it can't find the rule.
>
> See if you even have the file.
>
> If not, you might be missing the kernel source.
>
> Reply
>
>
> ephman
> Dec 26, 11:25 pm show options
> Newsgroups: comp.os.linux.misc
> From: "ephman" <ephsj...@xxxxxxxxx> - Find messages by this author
> Date: 26 Dec 2005 20:25:14 -0800
> Local: Mon, Dec 26 2005 11:25 pm
> Subject: Re: Make Error (please help i need my webcam to work)...
> Reply | Reply to Author | Forward | Print | Individual Message | Show
> original | Report Abuse
>
> hi,
>
> thanks again, but like i said this might be a tough one to figure out.
> i went down the roads you suggested, infact i even installed the
> kernel's headers. no avail. i am missing a file in the build
> directory called modules, infact there aren't any files in that dir
> anyhow. so i'm at a total loss. i don't want to have to ditch a
> perfectly good quickcam, but maybe i might.
>
> thanks,
> ephman
>
> Reply
>
>
> Dan Espen
> Dec 27, 9:44 am show options
> Newsgroups: comp.os.linux.misc
> From: Dan Espen <dan...@xxxxxxxxxxxxxxxxxxxxx> - Find messages by this
> author
> Date: Tue, 27 Dec 2005 09:44:42 -0500
> Local: Tues, Dec 27 2005 9:44 am
> Subject: Re: Make Error (please help i need my webcam to work)...
> Reply | Reply to Author | Forward | Print | Individual Message | Show
> original | Report Abuse
>
> "ephman" <ephsj...@xxxxxxxxx> writes:
>> hi,
>
>> thanks again, but like i said this might be a tough one to figure out.
>> i went down the roads you suggested, infact i even installed the
>> kernel's headers. no avail. i am missing a file in the build
>> directory called modules, infact there aren't any files in that dir
>> anyhow. so i'm at a total loss. i don't want to have to ditch a
>> perfectly good quickcam, but maybe i might.
>
> It's conventional courtesy to include the original text in a reply
> so that we don't have to rely on memory or using Google Groups
> to figure out what you are replying to.
>
> You didn't seem to understand my reply.
> Under build, there should be a file called Makefile.
> Inside the Makefile would be a rule called 'modules'.
>
> See this:
>
> http://www.linuxquestions.org/questions/showthread.php?t=345804
>
> Looks like you have to create a soft link into the kernel source.
.



Relevant Pages