compile hid-data host software sample

General discussions about V-USB, our firmware-only implementation of a low speed USB device on Atmel's AVR microcontrollers
Post Reply
dehghanimeh
Posts: 6
Joined: Mon Jan 12, 2009 11:04 am

compile hid-data host software sample

Post by dehghanimeh » Mon Jan 12, 2009 12:01 pm

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
Last edited by dehghanimeh on Sun Oct 25, 2009 6:29 pm, edited 1 time in total.

christian
Objective Development
Objective Development
Posts: 1443
Joined: Thu Nov 09, 2006 11:46 am

Post by christian » Wed Jan 21, 2009 7:46 pm

Please post more info, e.g. the error messages you get.

dehghanimeh
Posts: 6
Joined: Mon Jan 12, 2009 11:04 am

Post by dehghanimeh » Thu Jan 29, 2009 11:30 pm

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

christian
Objective Development
Objective Development
Posts: 1443
Joined: Thu Nov 09, 2006 11:46 am

Post by christian » Fri Jan 30, 2009 6:08 pm

Just remove the "-lusb" from Makefile.windows. It is not required.

Post Reply