https://github.com/thp/psmoveapi
マニュアルに詳しく書いてるので読んだ方が良い
https://readthedocs.org/projects/psmoveapi/downloads/pdf/stable/
git clone --recursive https://github.com/thp/psmoveapi.git
--recursiveを付けないと、libusbなどのexternalがcloneされないので注意。 https://karoten512.hatenablog.com/entry/2017/11/09/013845
いくつかのsubmoduleがgit://プロトコルになっているので、環境によってはcloneできない可能性がある。 https://maku77.github.io/git/settings/https-instead-of-git.html を参考にするか、.git/configを書き換えて強制的にhttpsを使用するようにしておくと良い。
WindowsではVS Developer Command Promptを使用する。
VS promptならmsbuild.exeのパスが通っている。
psmoveapi\scripts\visualcに移動して、build_msvc.bat 2017 x64
※ Microsoft.cpp.default.propsが無いと言われる。
→ Visual studio Build toolsをインストールする。
パスを通しておく。$env:VCTargetsPath = "C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\MSBuild\Microsoft\VC\v160"