Page 1 of 1

compile hid-data host software sample

Posted: Mon Jan 12, 2009 12:01 pm
by dehghanimeh
hi
I want to create usb hid-data device
but I can't compile the host sample on win or linux.
please help me about how can I comile it with mingw or vs6.
thank

Posted: Wed Jan 21, 2009 7:46 pm
by christian
Please post more info, e.g. the error messages you get.

Posted: Thu Jan 29, 2009 11:30 pm
by dehghanimeh
I use win xp pro and install DDK.

$ cd commandline

Mehdi@MEHDI-XP ~/examples/hid-data/commandline
$ make -f MakeFile.windows
gcc -o hidtool.exe hidtool.o hiddata.o -lhid -lusb -lsetupapi
C:\AVR\MinGW\bin\..\lib\gcc\mingw32\3.4.5\..\..\..\..\mingw32\bin\ld.exe: cannot find -lusb
collect2: ld returned 1 exit status
make: *** [hidtool] Error 1

Posted: Fri Jan 30, 2009 6:08 pm
by christian
Just remove the "-lusb" from Makefile.windows. It is not required.