From: Francesco <f18...@ya...> - 2010-03-08 23:50:39
|
Hi Mark, 2010/3/9 Mark Jones <hel...@gm...>: > Hello Francesco, I have tried your recommendations (and the new r848 > installer) on the Sun VirtualBox Windows XP x32 virtual machine. This > results in "Usbpicprog Error: Could not initialize libusb: Operation > not supported or unimplemented on this platform". good. At least this gives a clear indication of what's failing inside the windows_init() function of libusb; the relevant snippet of code corresponding to the LIBUSB_ERROR_NOT_SUPPORTED code (which in turns corresponds to the error description you got) is: // Detect OS version memset(&os_version, 0, sizeof(OSVERSIONINFO)); os_version.dwOSVersionInfoSize = sizeof(OSVERSIONINFO); windows_version = WINDOWS_UNSUPPORTED; if ((GetVersionEx(&os_version) != 0) && (os_version.dwPlatformId == VER_PLATFORM_WIN32_NT)) { if ((os_version.dwMajorVersion == 5) && (os_version.dwMinorVersion == 1)) { windows_version = WINDOWS_XP; } else if (os_version.dwMajorVersion >= 6) { windows_version = WINDOWS_VISTA_AND_LATER; } } if (windows_version == WINDOWS_UNSUPPORTED) { usbi_err(ctx, "This version of Windows is NOT supported"); r = LIBUSB_ERROR_NOT_SUPPORTED; goto init_exit; } this means that your system seems not supported by WinUSB (or incorrectly detected maybe). If you open an MSDOS prompt and type "ver", what do you get? Are you sure that your virtual machine is WinXP and not Win2000 ? > Note that the r778 software will run, on a new XP x32 VM, even without > libusb-win32 installed, but only if the libusb0.dll file was copied > into the same folder as usbpicprog.exe. ok but this doesn't help now since we have completely moved away from libusb-win32 0.1 and the libusb-1.0 (which is what we're using now) windows support was written from scratch and uses a completely different approach from libusb-win32 0.1. > HOWEVER... I am not convinced that it is even possible to run > UsbPicProg in a Sun VirtualBox VM, because the VirtualBox USB filter > is not passing the connected UPP hardware to the VM. (It doesn't "see" > it.) strange. Btw I'm using Vmware Player (which is free) and under that system UsbPicProg works fine in a virtual WinXP SP3 and is also able to connect to the hardware since Vmware can forward the USB traffic to the virtual machine. > Thus, even if the UPP software would install properly in the VM, > at this time, the hardware cannot be accessed. I will gladly help in > testing the installer further, however. ok, many thanks! > P.S. The uninstall.exe file will work to uninstall UPP if manually > executed, but so far, I have not seen any uninstall entries created in > Control Panel --> Add/Remove Programs. good point. An entry is missing. I'll look into fixing this. > This is for both the Win7 x32 > host and XP x32 guest OSes. ok, so you can confirm that it works under a Win7 x32 ? ;) Thanks, Francesco |