hidapi port to tcl
- Install hidapi first
- git clone git://github.com/signal11/hidapi.git
- sudo apt-get install libudev-dev libusb-1.0-0-dev libfox-1.6-dev
- sudo apt-get install autotools-dev autoconf automake libtool
- ./bootstrap 6 ./configure --enable-testgui --prefix=/usr
- make
- sudo make install
- sudo apt-get install tcl
- sudo apt-get install tcl-dev
- sudo apt-get install swig
- sudo ./build
If you hit a problem to load hidapi_libusb.so.0 export LD_LIBRARY_PATH=:$LD_LIBRARY_PATH libhidapi_libusb.so.0 should be installed in /usr/local.lib or sudo nano /etc/ld.so.conf.d/.conf and add /usr/local/lib
-
Run tclsh hidtest.tcl
-
Consider adding /etc/udev/rules.d/10-hftlite.rules KERNEL="hidraw",SUBSYSTEM="hidraw", MODE="666", GROUP="plugdev"
hidapi_tcl works with 32-bit version of TCL only. Need 32-bit version of tclXX.lib and hidapi.lib to compile with (active state TCL) to build type: tclsh build