I'll add more info here soon, this is still a work in progress and likely to change drastically.
The source code for the module is released under unlicense (see license file), note that the related products used, hidapi, libusb, openhmd and Godot itself all have their own licenses.
Clone this repository using git clone --recursive
so all the needed packages will be cloned together with the source code.
After that build libusb, openhmd and hidapi, using the following commands:
export CORES=$(grep processor /proc/cpuinfo | wc -l)
cd libusb ; ./bootstrap.sh ; ./configure ; make -j $CORES ; cd ..
cd hidapi ; ./bootstrap ; ./configure ; make -j $CORES ; cd ..
cd OpenHMD ; ./autogen.sh ; ./configure ; make -j $CORES ; cd ..
To make things easier, set the GODOT_ROOT
environment variable with the folder that holds the GODOT source code, for example, like this:
export GODOT_ROOT=../godot.git
The you can build by issuing the followin command:
GODOT_HEADERS=$GODOT_ROOT/modules/gdnative/include/ /bin/scons -j $CORES
Last, you can test your build by issuing:
$GODOT_ROOT/bin/godot.x11.tools.64 demo/project.godot
or
godot demo/project.godot