|
From: Graeme G. <gr...@ar...> - 2006-05-05 08:26:32
|
I've made a little more progress in understanding why I'm having so many troubles getting libusb running. I was under the impression that libusb0.sys needed the DDK to be built, and since I hadn't configured this, it wouldn't be built. It seems that libusb0.sys is built anyway, and this is what the operating system is choking on. If I substitute libusb0.sys from the binary distribution, it works OK, and I'm able to happily hack away at libusb0.dll. I'm using libusb-win32 version 0.1.10.0. I've got MingW 3.2.0-rc-3 installed. I've got the Latest XP DDK installed. I'm on a Windows 2k box. I don't understand how running "gmake DDK_PATH=<DDKDIR>" (where <DDKDIR> os "D:/WINDDK" in my case) is going to work. I can' find a reference to DDK_PATH anywhere, and the build doesn't fail if the path is wrong. It appears that the driver is being linked against MingW/liblibntoskrnl.a, rather than anything from the DDK. The libusb0.sys file that results is exactly the same length as the one in the binary distribution, but the binaries differ in 97 bytes (some presumably time stamp, but not all.) Could the version of MingW I'm using be the problem ? Any other ideas ? thanks, Graeme Gill. |