how to include usb.h ? [Archive] - C Board

PDA

View Full Version : how to include usb.h ?


costi
03-09-2008, 10:33 AM
hello forum!!!

i have no idea about c. so i dont know how to fix this:
i want to install a prgramm via make and there is a include for "usb.h" somwhere and this line causes the error "file not found".

so i guess i have to edit Makefile in order to tell gcc how usb.h is?
what should i do?


thank you

pheres
03-10-2008, 11:07 AM
at first locate usb.h on your filesystem:

#locate usb.h


The go through the makefiles and try to find the place where it defines additional include directories. All directories which shows up there should also be visibe inside the compiler output behind the string "-I".
Add the directory you found in step one to the makefile.
Run make distclean.
Run Make again.

Try until it works :)

costi
03-11-2008, 07:46 AM
..or just install libusb-dev

(-;