compile driver with gcc
Forum: Programming and Scripting
Topic: compile driver with gcc
started by: pethun
Posted by pethun on Dec. 28 2006,18:18Hi all,
I need help with compiling a driver. I try to compile a driver for my webcam. The driver is qc-usb-0.6.5.
All was loaded with MyDSL extension tool.
I cd to the qc-usb-0.6.5 directory and sudo make all and get:
make: cc: Command not found
make: *** qc-driver.0 Error 127
Please if there is someone who can help and explain whats wrong. It seems like gcc still isn't loaded? What do I do wrong or are there more .dsl extensions that must be loaded?
Posted by roberts on Dec. 28 2006,19:27cc is/should be a link to gcc
Say that gcc is in /usr/bin. Use "which gcc" to find out location.
sudo ln -s /usr/bin/gcc /usr/bin/cc
This should provide you your "cc" command.
Posted by pethun on Dec. 29 2006,11:55Thanks Roberts
That made the trick! Now I sucessfully compiled my driver! But it still doesen't work! I think I need to load v4l drivers. Is video4linux included or do I need to load them through Mydsl? I made my share if googeling but no sucess?
Posted by pethun on Dec. 29 2006,13:14I got the driver to work!
For others interested I'v just used the included script quickcam.sh and then it worked. Now only for next challenge to have it permanently loaded!