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
compile hid-data host software sample
-
- Posts: 6
- Joined: Mon Jan 12, 2009 11:04 am
compile hid-data host software sample
Last edited by dehghanimeh on Sun Oct 25, 2009 6:29 pm, edited 1 time in total.
-
- Posts: 6
- Joined: Mon Jan 12, 2009 11:04 am
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
$ 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