Try the changes to the code I made in pull request 95.
Arch OS issue
Haven’t been able to get your program to run yet, any ideas on how to solve this
error: open: No such device
Even though I was using sudo the trouble shooting section in this article solved my issue https://wiki.archlinux.org/index.php/Wiimote