Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Problem to compile driver for quickcam...
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Multimedia
View previous topic :: View next topic  
Author Message
Saturn
Tux's lil' helper
Tux's lil' helper


Joined: 31 May 2002
Posts: 83

PostPosted: Sun Sep 08, 2002 4:53 pm    Post subject: Problem to compile driver for quickcam... Reply with quote

Hi,

I went to http://digilander.libero.it/demarchidaniele/qcamvc/quickcam-vc.html and I have downloaded quickcam-vc-1.0.5.tar.bz2 file.

No problem to ./configure but when I do make, I get this error:

make[1]: Entering directory `/home/eric/quickcam-vc-1.0.5/src'
gcc -c -march=athlon -O2 -mpreferred-stack-boundary=2 -D__SMP__ -DCONFIG_SMP -DLINUX -D__KERNEL__ -DMODULE -DEXPORT_SYMTAB -DMODVERSIONS -Wall -O2 -Wno-trigraphs -fomit-frame-pointer -fno-strict-aliasing -pipe -DQCAMVCVERSION=\"1.0.5\" -Wstrict-prototypes -pipe -mpreferred-stack-boundary=2 -DCONFIG_VIDEO_QCAMVC_USB_MODULE -DKMOD -I/usr/src/linux/include qcamvc.c -o qcamvc.o
cc1: bad value (athlon) for -march= switch
make[1]: *** [qcamvc.o] Error 1
make[1]: Leaving directory `/home/eric/quickcam-vc-1.0.5/src'
make: *** [driver] Error 1

What does it mean?

Thanks
Back to top
View user's profile Send private message
kirill
Apprentice
Apprentice


Joined: 01 Aug 2002
Posts: 183
Location: Finland

PostPosted: Sun Sep 08, 2002 5:12 pm    Post subject: Re: Problem to compile driver for quickcam... Reply with quote

Saturn wrote:
Hi,

I went to http://digilander.libero.it/demarchidaniele/qcamvc/quickcam-vc.html and I have downloaded quickcam-vc-1.0.5.tar.bz2 file.

No problem to ./configure but when I do make, I get this error:

make[1]: Entering directory `/home/eric/quickcam-vc-1.0.5/src'
gcc -c -march=athlon -O2 -mpreferred-stack-boundary=2 -D__SMP__ -DCONFIG_SMP -DLINUX -D__KERNEL__ -DMODULE -DEXPORT_SYMTAB -DMODVERSIONS -Wall -O2 -Wno-trigraphs -fomit-frame-pointer -fno-strict-aliasing -pipe -DQCAMVCVERSION=\"1.0.5\" -Wstrict-prototypes -pipe -mpreferred-stack-boundary=2 -DCONFIG_VIDEO_QCAMVC_USB_MODULE -DKMOD -I/usr/src/linux/include qcamvc.c -o qcamvc.o
cc1: bad value (athlon) for -march= switch
make[1]: *** [qcamvc.o] Error 1
make[1]: Leaving directory `/home/eric/quickcam-vc-1.0.5/src'
make: *** [driver] Error 1


Code:
cc1: bad value (athlon) for -march= switch

The compiler doesn't recognise -march=athlon. Are you running Gentoo 1.2 and gcc 2.95.3? If yes I suggest you to start over again and edit Makefile after ./configure has completed. There you should change athlon to i686 or something more appropriate.

What is a real mystery why does it think your compiler is able to optimise for athlon. Do you have any CFLAGS set in the _environment_?
_________________
--kirill
Back to top
View user's profile Send private message
Saturn
Tux's lil' helper
Tux's lil' helper


Joined: 31 May 2002
Posts: 83

PostPosted: Sun Sep 08, 2002 7:35 pm    Post subject: Reply with quote

Ok, I changed athlon for i686 in the Makefile.conf file.
Now I get another problem when I want to install (make install) :

[root@mymachine quickcam-vc-1.0.5]# make install
make[1]: Entering directory `/home/eric/quickcam-vc-1.0.5/src'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/eric/quickcam-vc-1.0.5/src'

Connectix QuickCam VC Video 4 Linux driver.
qcamvc.o module version 1.0.5 was successfully compiled.
Type "make install" to finish.

mkdir -p /lib/modules/2.4.18/misc
rm -f /lib/modules/2.4.18/misc/qcamvc*.o
cp modules/*.o /lib/modules/2.4.18/misc
cp: cannot stat `modules/*.o': No such file or directory
make: *** [install] Error 1


What is wrong this time?!

Thanks
Back to top
View user's profile Send private message
m.mascherpa
Bodhisattva
Bodhisattva


Joined: 22 May 2002
Posts: 139
Location: italy

PostPosted: Sun Sep 08, 2002 9:32 pm    Post subject: Reply with quote

Saturn wrote:
Ok, I changed athlon for i686 in the Makefile.conf file.
Now I get another problem when I want to install (make install) :

[root@mymachine quickcam-vc-1.0.5]# make install
make[1]: Entering directory `/home/eric/quickcam-vc-1.0.5/src'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/eric/quickcam-vc-1.0.5/src'

Connectix QuickCam VC Video 4 Linux driver.
qcamvc.o module version 1.0.5 was successfully compiled.
Type "make install" to finish.

mkdir -p /lib/modules/2.4.18/misc
rm -f /lib/modules/2.4.18/misc/qcamvc*.o
cp modules/*.o /lib/modules/2.4.18/misc
cp: cannot stat `modules/*.o': No such file or directory
make: *** [install] Error 1


What is wrong this time?!

Thanks


it says it can't copy the module in the directory /lib/modules/2.4.18/misc because it can't find the source file.
check out the compile directory and its subdirectories for some qcamvc*.o file and copy it manually to the /lib/modules/2.4.18/misc directory, it should work anyway. :)
_________________
mush keeps the dream alive
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Multimedia All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum