View previous topic :: View next topic |
Author |
Message |
Saturn Tux's lil' helper
Joined: 31 May 2002 Posts: 83
|
Posted: Sun Sep 08, 2002 4:53 pm Post subject: Problem to compile driver for quickcam... |
|
|
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 |
|
|
kirill Apprentice
Joined: 01 Aug 2002 Posts: 183 Location: Finland
|
Posted: Sun Sep 08, 2002 5:12 pm Post subject: Re: Problem to compile driver for quickcam... |
|
|
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 |
|
|
Saturn Tux's lil' helper
Joined: 31 May 2002 Posts: 83
|
Posted: Sun Sep 08, 2002 7:35 pm Post subject: |
|
|
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 |
|
|
m.mascherpa Bodhisattva
Joined: 22 May 2002 Posts: 139 Location: italy
|
Posted: Sun Sep 08, 2002 9:32 pm Post subject: |
|
|
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 |
|
|
|