LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (https://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   compile drivers help! (https://www.linuxquestions.org/questions/linux-hardware-18/compile-drivers-help-365515/)

Itachi 09-21-2005 04:30 AM

compile drivers help!
 
Hi,
I'm a linux newbie.

i have a few .h and .c drivers files from a retailer for a camera.
can someone guide me on how and where to compile these files to?

i'm using red hat btw.

Thanks in advance!

SkyEye 09-21-2005 05:09 AM

Do a "ls" and see wheather theres a "Makefile" or something like that. If so I shall tell you the typical steps. But read the READMEs and Manuals available, they will contain the information you need. And look for a file "configure" with eXecute permissions set.

The following would typically work (assuming that you are currently in that directory.)
Code:

./configure
Lokk in the readmes for more options and parameters. After cofiguring finishes successfully,
Code:

make
When its also finished successfully
Code:

make install
Be warned, these are only generic. Always refer to the documentation related.

Itachi 09-21-2005 07:49 AM

There's no make file or Readme, only .c and .h files. and there is no main() in any of the .c files.
what should i do in this case?


All times are GMT -5. The time now is 06:53 PM.