> The most recent one. So 30f17054ddec8a5dea243075971ea9c3d6a73347 (i think,
> not quite sure what a git hash is. Fairly new to github.)
Yes, that commit hash matches the latest release (psmoveapi 4.0.6), so
that seems alright.
I do not currently have a Windows machine available for testing, but
maybe we can track this problem down anyway. Additionally, we have the
CI build of the latest release (also built on x64 using Visual Studio
2017) available for comparison:
https://ci.appveyor.com/project/thp/psmoveapi/build/1.0.514/job/u5h9cgl2eg3obhxf
There is already a problem in the first line of your log. Visual
Studio's vcvarsall.bat setup script was not found. I am not sure if this
has to do with the fact that you are already running this from the
Developer Command Prompt (which makes calling this script superfluous).
Can you check where in your installation the vcvarsall.bat is located?
Does the error still occur if you run the script from a normal command
prompt, i.e. not the VS 2017 Developer Command Prompt?
On to the libusb issues. As noted in the log, the patch could not be
applied possibly because libusb was not checked out. Please have a look
in psmoveapi's external/ directory. There should be a couple of
subdirectories, including libusb-1.0/. If they are missing or are empty,
you need to fetch these external repositories first. From the psmoveapi
root directory run
git submodule update --init
to do that.